Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CspmIT/mas-agua-front/llms.txt
Use this file to discover all available pages before exploring further.
Overview
PLC Profiles define connections to Siemens programmable logic controllers (LOGO 7, LOGO 8, S7-1200) and map PLC memory bytes and bits to InfluxDB fields.Accessing PLC Configuration
Navigate to Configuration > Perfil PLC to manage PLC profiles.Supported PLC Models
LOGO 7
Siemens LOGO! 7 series
LOGO 8
Siemens LOGO! 8 series
S7-1200
Siemens S7-1200 series
Creating a PLC Profile
Configure PLC Connection
PLC model:
LOGO_7- Siemens LOGO! 7LOGO_8- Siemens LOGO! 8S7_1200- Siemens S7-1200
PLC IP address (valid IPv4 format, e.g., “192.168.1.100”)
Service name (single word, no spaces, minimum 3 characters)
PLC rack number (positive integer)
PLC slot number (positive integer)
Define Memory Points
Specify byte ranges to read from PLC memory:
- Enter Inicio (start byte)
- Enter Fin (end byte)
- Click Agregar puntos
- Repeat to add multiple ranges
{0, 10} and {20, 25} will read bytes 0-10 and 20-25.Map Variables to Bits
For each variable:
Byte number (from configured point ranges)
Bit position (0-7) within the byte
Data type:
BOOL- Boolean (1 bit)BYTE- Unsigned byte (8 bits)INT- Signed integer (16 bits)UINT- Unsigned integer (16 bits)FLOAT- Floating point (32 bits)STRING- String dataLONG- Signed long (32 bits)ULONG- Unsigned long (32 bits)DOUBLE- Double precision (64 bits)
InfluxDB field name for this variable
Example Configuration
Profile Status Management
PLC profiles have three states:Status 0: Inactive
- Profile configured but not collecting data
- Can be edited or deleted
- Toggle switch to activate
Status 1: Active
- Profile actively reading PLC data and reporting to InfluxDB
- Cannot be edited or deleted (must deactivate first)
- Toggle switch to deactivate
Status 2: Pending Upload
- Profile created but service files not uploaded to server
- Click Subir to complete deployment
Managing Profiles
Activate Profile
- Locate profile with Status = Inactive
- Click the status toggle switch
- Confirm activation
Deactivate Profile
- Locate active profile
- Click the status toggle switch
- Confirm deactivation
Edit Profile
- Ensure profile is inactive (Status = 0)
- Click Editar button
- Modify configuration
- Click Editar perfil
Active profiles must be deactivated before editing.
Delete Profile
- Ensure profile is inactive
- Click Eliminar button
- Confirm deletion
Validation Rules
The form enforces these validation rules (fromsrc/modules/ProfilePLC/schemas/varsPLC.js:17):
topic
- Minimum 3 characters
- Must be string
influx
- Must be one of:
Sensors_Morteros_Interna,Sensors_Externos,externos
PLCModel
- Must be one of:
LOGO_7,LOGO_8,S7_1200
ip
- Must be valid IPv4 address (regex validated)
- Example:
192.168.1.100
serviceName
- Minimum 3 characters
- Single word (no spaces)
- Alphanumeric characters only
rack
- Positive integer
- Numeric value required
slot
- Positive integer
- Numeric value required
points
startPointmust be ≤endPoint- Both must be positive integers
Byte and Bit Allocation
Constraints
- Maximum bits available = (total bytes in ranges) × 8
- Each byte has 8 bits (0-7)
- Bit positions within a byte cannot be reused
Bit Availability
The interface shows only available bits for each byte:API Endpoints
| Endpoint | Method | Purpose |
|---|---|---|
/plc/create | POST | Create new PLC profile |
/plc/edit | POST | Update existing profile |
/plc/list | GET | Get all profiles |
/plc/service/:id | GET | Get specific profile details |
/plc/activate/:id | GET | Activate profile |
/plc/deactivate/:id | GET | Deactivate profile |
/plc/delete/:id | GET | Delete profile files |
Troubleshooting
Connection Errors
Connection Errors
- Verify PLC IP address is reachable
- Check rack and slot numbers match PLC hardware
- Ensure firewall allows connection on required ports
Data Not Appearing in InfluxDB
Data Not Appearing in InfluxDB
- Verify profile status is Active (Status = 1)
- Check correct InfluxDB bucket is selected
- Validate topic and field names
Cannot Edit Profile
Cannot Edit Profile
- Profile must be deactivated first
- Check profile status in the table

