19.6.2.4 Variable mapping
(1) Timing chart of when variable mapping is used
Set the writing instruction code corresponding to an object to be changed in Instruction code. At this time,
set Ins ID and Attr ID of the object in Writing data in hexadecimal. After that, turn on Instruction code
execution demand (Control DI 10, bit 1).
When Instruction code execution demand (Control DI 10, bit 1) is turned on, the mapping position for
which the object corresponding to the writing instruction code has been defined is handled as the object
set in Writing data. After the writing is completed, Instruction code execution completion (Status DO 10,
bit 1) turns on.
The following figure shows the reflection timing in the mapping with the variable mapping.
In consideration of the timing above, for data sent by the upper side, the upper side sets new object data
in User defined data when the upper side receives the on state of Instruction code execution completion
from the driver. After the setting is completed, turn off Instruction code execution demand. When the
upper side receives the off state of Instruction code execution completion from the driver, the new object
data is applied to User defined data.
User defined data retains the old object data until the upper side receives the off state of Instruction code
execution completion. When the upper side receives the off state, the new object data is set in User
defined data.