7
3 Commands
3.1 Load and Assign Commands
3.1.1 LOAD (L)
Abbreviation for the PLC-Editor:
Execution time [µs]
Number of bytes
Logic execution with LOAD command
Operands: M, I, O, T, C
Operation:
The addressed operand is copied into the Accumulator. A load command is always used at the start
of a logic chain, in order to enable subsequent gating commands. The same function is achieved
when the gating commands A, O, XO are used at the start of a logic chain, however this should
only be used when compatibility with the TNC 355 is required.
Example:
Input I4 and Input I5 is to be gated with AND and the result assigned to Output O2. Thus the logic
state of Input I4 is loaded into the Accumulator to enable subsequent gating commands.
Initial state:
Line Instruction
Bit
1
L I4
2
A I5
3
= O2
Line 1: The operand contents are loaded into the Logic Accumulator.
Line 2: The contents of the Logic Accumulator and Input I5 are gated with AND.
Line 3: The gating result is assigned to output O2.
7-36
TNC 407/TNC 415/TNC 425
L (LOAD)
Logic
0.2 to 0.7
4
Input
I4 = 1
Input
I5 = 0
Output
O2 = ?
Accumulator Contents
31
. . .
... x x x x x x X x x x x x x x
... x x x x x x 1 x x x x x x x
... x x x x x x 0 x x x x x x x
... x x x x x x 0 x x x x x x x
3 Commands
Byte/Word
Double
0.5 to 0.8
0.2 to 0.7
6
4
7
0
Constant
0.0 to 0.3
6
Operand-Contents
1
0
0
01.98