Instruction list for S7-300 - DCE FEL ČVUT v Praze
Instruction list for S7-300 - DCE FEL ČVUT v Praze
Instruction list for S7-300 - DCE FEL ČVUT v Praze
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Examples of Addressing Examples of Addressing<br />
Examples of Addressing<br />
Addressing Examples Description<br />
Direct Addressing<br />
L +27 Load 16-bit integer constant<br />
“27” into ACCU1<br />
L L#–1 Load 32-bit integer constant<br />
“–1” into ACCU1<br />
L 2#1010101010101010 Load binary constant into<br />
ACCU1<br />
L DW#16#A0F0_BCFD Load hexadecimal constant into<br />
ACCU1<br />
L ’END’ Load ASCII character into<br />
ACCU1<br />
L T#500 ms Load time value into ACCU1<br />
L C#100 Load count value into ACCU1<br />
L B#(100,12) Load 2-byte constant<br />
L B#(100,12,50,8) Load 4-byte constant<br />
L P#10.0 Load area-internal pointer into<br />
ACCU1<br />
L P#E20.6 Load area-crossing pointer into<br />
ACCU1<br />
L –2.5 Load real number into ACCU1<br />
L D#1995–01–20 Load date<br />
L TOD#13:20:33.125 Load time of day<br />
Addressing Examples Description<br />
Direct Addressing<br />
A I 0.0 ANDing of input bit 0.0<br />
L IB 1 Load input byte 1 into ACCU1<br />
L IW 0 Load input word 0 into<br />
ACCU1<br />
L ID 0 Load input double word 0 into<br />
ACCU1<br />
Indirect Addressing of Timers/Counters<br />
SP T [LW 8] Start timer; the timer number is<br />
in local word 8<br />
CU C [LW 10] Start counter; the counter number<br />
is in local data word 10<br />
Area-Internal Memory-Indirect Addressing<br />
A I [LD 12]<br />
Example: L P#22.2<br />
T LD 12<br />
A I [LD 12]<br />
AND operation: The address of<br />
the input is in local data double<br />
word 12 as pointer<br />
A I [DBD 1] AND operation: The address of<br />
the input is in data double<br />
word 1 of the DB as pointer<br />
A Q [DID 12] AND operation: The address of<br />
the output is in data double<br />
word 12 of the instance DB as<br />
pointer<br />
A Q [MD 12] AND operation: The address of<br />
the output is in memory marker<br />
double word 12 of the instance<br />
DB as pointer<br />
<strong>S7</strong>-<strong>300</strong> <strong>Instruction</strong> List <strong>S7</strong>-<strong>300</strong> <strong>Instruction</strong> List<br />
16 EWA 4NEB 710 6087-02 EWA 4NEB 710 6087-02<br />
17