15 IEC Instruction List
쎲
The “Instruction List” editor is a free text editor.
쎲
No line addresses are released.
쎲
Functions and function blocks can be called.
쎲
In addition to the IEC networks MELSEC networks can be included.
쎲
Comments can be included within (* *)
쎲
By means of the Windows functionality a program can be written for example in WinWord
and then be copied via the clip board into GX IEC Developer.
15.1 Example of IEC Instruction List (IL)
LD X4 (* Interrogation X4 *)
ANDN M5 (* ANDN M5 *)
ST Y20 (* Assignment OUT to Y20 *)
LD TEST (* Load TEST into accu *)
BCD_TO_INT (* Convert accu *)
ST RESULT (* Write accu to RESULT *)
15.1.1 Some useful tips
To Perform : “ + D0 D1 D2 ” in IEC IL, becomes:
LD D0
ADD D1
ST D2
To Perform : “ + D0 D1 D2 ” and then “ + D2 K50 D3 ” becomes:
LD D0
ADD D1,D2,50
ST D3
Use of an “_E” function can simplify still further. To Perform : “ + D0 D1 D2 ” and then “ + D2
K50 D3 ” from a conditional input X0 becomes:
LD X0
ADD_E D0,D1,D2,50,D3
This is because the ADD_E function has an Enable Output (ENO) feature.
Training Manual GX IEC Developer 15 - 1
IEC Instruction List Example of IEC Instruction List (IL)