Y_PK22_UN_NotDone
Reports the first instance of which EM and which CM has not finished the Current Acting State. If all modules are done, it will return 999 for both values.
Parameters
| * | Parameter | Data Type | Description | Default |
|---|---|---|---|---|
| VAR_IN_OUT | ||||
| E | UnitMachine |
#60397
|
Structure containing information about the machine's current state and operation modes for all EMs and CMs | |
| VAR_IN | ||||
| B | Enable | BOOL | The function will continue to execute while the enable is held high | FALSE |
| VAR_OUTPUT | ||||
| B | Valid | BOOL | Indicates that the outputs of the function are valid | |
| B | Error | BOOL | Set high if error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low. | |
| B | ErrorID | UINT | If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low. | |
| B | EM | INT | The first instance of an EM that has not finished the Current Acting State. If all are finished, 999 will be returned. | |
| B |
CM | INT | The first instance of a CM that has not finished the Current Acting State. If all are finished, 999 will be returned. |
|
Error Description:
See the
Function Block ErrorID List.