FX Series Programmable Controllers | Basic Program Instructions 2 |
2.Basic Program Instructions
2.1What is a Program?
A program is a connected series of instructions written in a language that the PLC can understand. There are three forms of program format; instruction, ladder and SFC/STL. Not all programming tools can work in all programming forms. Generally hand held programming panels only work with instruction format while most graphic programming tools will work with both instruction and ladder format. Specialist programming software will also allow SFC style programming.
LD X10
OUT Y7
AND M38
SET S5
LD X21
OUT T01
K40
Instruction format | Ladder Format | SFC Format |
2.2Outline of Basic Devices Used in Programming
There are six basic programming devices. Each device has its own unique use. To enable quick and easy identification each device is assigned a single reference letter;
-X: This is used to identify all direct, physical inputs to the PLC.
-Y: This is used to identify all direct, physical outputs from the PLC.
-T: This is used to identify a timing device which is contained within the PLC.
-C: This is used to identify a counting device which is contained within the PLC.
-M and S: These are used as internal operation flags within the PLC.
All of the devices mentioned above are known as ‘bit devices’. This is a descriptive title telling the user that these devices only have two states; ON or OFF, 1 or 0.
Detailed device information:
•Chapter 4 contains this information in detail. However, the above is all that is required for the rest of this chapter.