PML_AdminTime
This function block should be called cyclically and it then fills the following Admin-PackTags:
- PlcDateTime
- AccTimeSinceReset
- ModeCurrentTime[ ]
- ModeCumulativeTime[ ]
- StateCurrentTime[ ][ ]
- StateCumulativeTime[ ][ ]
The length of time that the machine was in different states for is thus recorded. In the further process, this allows conclusions to be drawn about the machine efficiency. To ensure that the times are calculated correctly, it is a prerequisite that the UnitCurrent and StateCurrent Status-PackTags have already been written coherently.
Inputs
VAR_INPUT
bReset : BOOL;
stOptions : ST_AdminTimeOptions;
END_VAR
Name | Type | Description |
---|---|---|
bReset | BOOL | A signal at this input resets the recorded times |
stOptions | ST_AdminTimeOptions | Additional options of the function block |
Inputs/Outputs
VAR_IN_OUT
stAdmin : ST_PMLa;
stStatus : ST_PMLs;
END_VAR
Name | Type | Description |
---|---|---|
stAdmin | ST_PMLa | Transfer of the Admin-PackTags |
stStatus | ST_PMLs | Transfer of the Status-PackTags |
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v3.1 Build 4018 and higher | PC (i386) | Tc3_PackML_V2 |