Name :Immediate output
Symbol:OUT_IMMEDIATELY
Illustrate:
You can use the Output Now function to immediately output a specified value to a Q-zone address, but only one BOOL address
Image:
Parameter:
| Parameter | Statement | Type | Description |
|---|---|---|---|
| ADDR | Input | UDINT | Q output address, for example, %QBm |
| OFFSET | Input | USINT | The Q address is offset, for example, %QXm.n, and the input value should be less than 8 |
| VALUE | Input | BOOL | The value is output immediately, 1 is output if TRUE, and 0 is output if FALSE |
| OUT | Output | BOOL | The function returns a value, 1 for success and 0 for failure |
Example:
LD:
ST:
Interpretation:
ADDR为1,表示Q区输出地址为%QB1,OFFSET为2,表示Q区地址偏移为2,输出地址为%QX1.2,VALUE为TRUE表示输出值为1。