220 likes | 470 Views
Chapter 5 PLC Programming Instructions.
E N D
Chapter 5PLC Programming Instructions PLC Programming Diagrams • Processor Files • Program Files • Data Table Files • Data Table File Addresses • Input and Output File Addresses • Status File Addresses • Bit File Addresses • Programming Diagram Logic • Programming Diagram Rules • Bit Instructions • Scan Execution
A hardwired motor control application is depicted by symbols in a ladder diagram.
A PLC motor control application is depicted by instructions in a programming diagram.
The memory of a PLC contains the processor file, which contains the program files and data table files.
There are 256 possible program files, with the function of program files 0, 1, and 2 defaulted by the PLC.
The status of the CPU, all input devices and output components, and all instructions used in the program are found in the 256 data table files.
The instructions within each data table file each have a unique address based on the file identifier and file number.
Input and output terminals are addressed as slot.word/bit or slot/bit. Standard I/O modules have 16 points (terminals) and require 1 word of memory. High-density modules have 32 points and require 2 words of memory.
Information in status files is formatted as word/bit or as a word. The addressing format depends on the contents of the status file.
The default bit file is B3. Bit file addresses are formatted as word/bit, bit, or as a word.
A PLC or programming software will not accept a program when the program does not follow standard rules.
Ladder diagrams depict the flow of current through hardwired devices and components, while PLC program diagrams depict the flow of logic through instructions.
The type of input instruction, XIC or XIO, determines how the rung of a program will operate with a normally open (NO) input device.
The type of input instruction, XIC or XIO, determines how the rung of a program will operate with a normally closed (NC) input device.
The XIC holding contact uses the same address as an OTE instruction but is not a hardwired contact and only exists in the memory of a PLC.
OTL (latch) instructions can only turn a bit ON, and OTU (unlatch) instructions can only turn a bit OFF.
PLCs scan program diagrams in a specific manner, with the placement of instructions impacting scan times.