Instructions - Timer
Delay
Description: Delays for the set value. After the set time is reached, the program continues running.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| logout | bool | Yes | Whether commented out; true: this instruction will not be executed in the job file; false: not commented, executable | false |
| paraTime | object | Yes | Delay duration | |
| paraTime.data | double | No | Delay value; value range (0,9999]; unit s | 500.0 |
| paraTime.value | int | No | Variable value (backup) | 0 |
| paraTime.secondvalue | int | No | Variable value (backup) | 0 |
| paraTime.varname | string | No | Variable name (filled when using variable) | "" |
| type | int | Yes | TIMER is 7 in the enumeration sequence | 7 |
| userParamInt | int | No | Customer custom in secondary development, currently no meaning | 0 |
| userParamString | string | No | Customer custom in secondary development, currently no meaning | "" |
Command Word: TIMER
JSON Example:
json
{
"logout": false,
"paraTime": {
"data": 500.0,
"secondvalue": 0,
"value": 0,
"varname": ""
},
"type": 7,
"userParamInt": 0,
"userParamString": ""
}