Sepasoft MES Module Suite
PLC Commands and States
When creating a phase and selecting Exposed = True, parameters are available for configuration and can be accessed in the Ignition Tag Browser.
Because PLCs are not the best at handling string values, ordinal values for command and state parameters were added as a convenience.
More information:
PLC Commands
There are two batch parameters that can be used to issue commands. The Command parameter is the textual command and the Command Number is the ordinal (Integer) version. You can issue a command using either one. Setting the Command parameter to Hold, causes the Unit Procedure to be held. The same can be done by setting the Command Number parameter to 4.
Command ordinal values:
- None, 0
- Start, 1
- Pause, 2
- Resume, 3
- Hold, 4
- Restart, 5
- Stop, 6
- Reset, 7
- Abort, 8
PLC Monitoring
There are two batch parameters that can be used to monitor and change states. The State parameter is the textual command and the State Number is the ordinal (Integer) version.
The user can change the state using either one. Setting State to Complete stops the phase. The same result is produced by setting State_Number to 3.
The PLC sets State_Number to 17. The batch engine waits in that state until the PLC changes it. When the state becomes Idle (1), the batch engine writes Start (Command_Number 1).
State ordinal values:
- Unknown, 0
- Idle, 1
- Running, 2
- Complete, 3
- Restarting, 4
- Resetting, 5
- Pausing, 6
- Paused, 7
- Holding, 8
- Held, 9
- Stopping, 10
- Stopped, 11
- Aborting, 12
- Aborted, 13
- Permissive Start, 17
Sepasoft MES Module Suite