■ Specifying the start I/O number of intelligent function module
When accessing the buffer memory or I/O signals of the intelligent function module, specify the start I/O number using the
index register.
By receiving the start I/O number as an input variable, the same function block can be shared in multiple intelligent function
modules without changing the start I/O number.
Ex.
To access the I/O signals of the intelligent function module
Use the index register.
[Sequence program]
[FB program]
Ex.
To access the buffer memory of the intelligent function module
Input the start I/O number of the target intelligent function module in the index register.
Shift the four bits in the value to the right by using the SFR instruction, or use the quotient obtained by dividing the value by 16.
Specify the value of
i_Start_IO_NO.
Access the I/O signals by using
the index register.
Ò
Ó
Access the buffer memory.
3 PROGRAM ORGANIZATION UNITS
3.4 Precautions
3
33