32.23.1.1 Calculating the Number of Steps When Setting Operands
- SDOR/SDOW/DGMT/DGSL
The following describes the specifiable content of Operands (S1
to S10 and D1 to D5).
The number of steps in I/O Driver instructions depends on the
specification method and the number of operands used. The following
describes how to calculate the number of steps.
3 + Number of steps in operand S1 + ... + Number of steps in
operand S10 + Number of steps in operand D1 + ... + Number of steps
in operand D5 = Total number of steps in one instruction
Explanation of SDOR, SDOW, DGMT and DGSL
Instructions
(For the number of steps in an operand, refer to the operand
settings as follows.)
3 Steps + {Object = 1 Step} + {SubIdx = 1
Step} + {NodeID = 1 Step} + {Length = 1 Step} + {Offset = 1 Step} +
{ErrorCode = 1 Step} = 9 Steps
3 Steps + {Object = 1 Step} + {SubIdx = 1
Step} + {NodeID = 1 Step} + {Length = 1 Step} + {Offset = 1 Step} +
{ErrorCode = 1 Step} = 9 Steps
3 Steps + {Status = 1 Step} + {Event = 1
Step} = 5 Steps
3 Steps + {NodeID = 1 Step} + {Diagnostics =
1 Step} = 5 Steps
The first three steps are the number of steps required by all
I/O Driver Instructions. Be sure to add these three steps for I/O
Driver Instructions.
|