6F3B0253
7. Instructions
FUN 235
I/O
Direct I/O
Expression
Input − [ I/O (n) A ]− Output
Function
When the input is ON, this instruction immediately updates the external input (XW) and output (YW) registers which are in the range of n registers starting with A.
•For XW register ... reads the data from corresponding input circuit
•For YW register ... writes the data into corresponding output circuit
Execution condition
Input |
| Operation | Output |
OFF | No execution |
| OFF |
ON | Execution |
| ON |
Operand
| Name |
|
| Device |
|
|
|
|
|
| Register |
|
| Constant | Index | ||||
|
| X | Y | R | S | T. | C. | XW | YW | RW | SW | T | C | D | I | J | K |
|
|
n | Register size |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 - 32 |
|
A | Start of |
|
|
|
|
|
| √ | √ |
|
|
|
|
|
|
|
|
|
|
| registers |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
When R010 is ON, the 4 registers starting with XW00 (XW00 to YW03) are updated immediately.
XW00
XW01
YW02
YW03
Input circuit
Output circuit
Basic Hardware and Function 239