7
7
Instructions
Data Manipulation
• The data manipulation instructions allow the
movement, manipulation, or storage of data in
either single- or multiple-word groups from
one data memory area of the PLC to another.
Where there is a 1 in the mask, data will pass from the source to the
destination.
Where there is a 0 in the mask, data in the destination will remain in their last
state.
Data Compare Instructions
Compare numerical values.
Math Instructions
• Allows to perform arithmetic functions on values
stored in memory words or registers
• CPT (Compute) —Evaluates an expression and stores
the result in the destination.
• ADD (add) —Adds source A to source B and stores
the result in the destination.
• SUB (Subtract) —Subtracts source B from source A
• and stores the result in the destination.
• MUL (Multiply) —Multiplies source A by source B
• and stores the result in the destination
Sequencer Instructions
Used to control machines that have a stepped
sequence of repeatable operations.
Programmed sequencers can perform the
same specific on or off patterns of outputs
that are need to be continuously repeated.
• SQO (Sequencer Output) —Is an output
instruction that uses a file to control various
output devices
• File: The file contains the data that will be transferred
to the destination address when the instruction
undergoes a false-to-true transition. Each word in the
file represents a position, starting with position 0 and
continuing to the file length.