0% found this document useful (0 votes)
3 views17 pages

7

The document outlines data manipulation instructions for PLCs, including data transfer and comparison operations. It details various commands such as MOV, MVM, and arithmetic functions like ADD and SUB, as well as sequencer instructions for controlling repeatable operations. Additionally, it explains the concepts of source, destination, and masking in data transfer processes.

Uploaded by

divi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views17 pages

7

The document outlines data manipulation instructions for PLCs, including data transfer and comparison operations. It details various commands such as MOV, MVM, and arithmetic functions like ADD and SUB, as well as sequencer instructions for controlling repeatable operations. Additionally, it explains the concepts of source, destination, and masking in data transfer processes.

Uploaded by

divi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Data Manipulation and Transfer

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.

Two broad categories: data transfer and


data comparison.
Move/Logical Menu tab
• MOV (Move) —Moves the source value to the
destination.
• MVM (Masked Move) —Moves data from a source
location to a selected portion of the destination.
• AND (And) —Performs a bitwise AND operation.
• OR (Or) —Performs a bitwise OR operation.
• XOR (Exclusive Or) —Performs a bitwise XOR
operation.
• NOT (Not) —Performs a bitwise NOT operation.
• CLR (Clear) —Sets all bits of a word to zero.
MOV INSTRUCTION
Masked move (MVM) instruction

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.

• Mask —Is the bit pattern through which the sequencer


instruction moves source data to the destination
address. Recall that in the mask bit pattern, a 1 passes
values while a 0 blocks the data flow
• Source —Is the address of the input word or file
• Destination —Is the address of the output word or fi le
to which the SQO moves the data from its sequencer fi
le
Length —Is the number of steps of the
sequencer file starting at position 1. Position 0 is
the start-up position. The instruction resets
(wraps) to position 1 at each cycle completion.
The actual fi le length will be 1 plus the fi le
length entered in the instruction.
A sequencer program can be event-driven or
time-driven.
An event-driven sequencer operates similarly to
a mechanical stepper switch that increments by
one step for each pulse applied to it.
A time-driven sequencer operates similarly to a
mechanical drum switch that increments
automatically after a preset time period. Eg:
Traffic Light Control

You might also like