EasyManua.ls Logo

Fagor CNC 8055i FL EN - Logic Action Instructions

Fagor CNC 8055i FL EN
732 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Installation manual
CNC 8055
CNC 8055i
PLC PROGRAMMING
10.
SOFT: V02.2X
·467·
Action instructions
10.5.5 Logic action instructions
= AND, = OR, = XOR
To perform logic operations: AND, OR and XOR between register contents or between a register
content and a number. The result is always stored in a register.
Their programming formats are:
Registers (R1/559) or numbers expressed in decimal, hexadecimal or binary format can be defined
as first or second operand.
The destination register indicates where the result of the operation will be deposited and will be
defined by means of a register (R1/559).
The mark M2003 is called zero flag and indicates whether the result of an AND, OR, XOR, operation
equals zero, in which case it follows that M2003=1.
Examples with: R200 = B1001 0010
R201 = B0100 0101
= RR, = RL
Used to rotate registers clockwise (RR) or counterclockwise (RL). There are two types of rotations:
type 1 (RR1 or RL1) and type 2 (RR2 or RL2).
Rotation type 1 (RL1 or RR1):
It inserts a "0" at the least significant bit (RL1) or at the most significant bit (RR1), pushing the other
bits of the register. The first or last bit is lost.
Rotation type 2 (RL2 or RR2):
Circular rotation of the register in the indicated direction.
Their programming formats are:
AND
OR
XOR
R1/559
#
R1/559
#
R1/559
()=AND R200 R201 R202 R202=B0 M2003=1
()=OR R200 R201 R203 R203=B11010111 M2003=0
()=XOR R200 R201 R204 R204=B11010111 M2003=0
()=AND B1111 R201 R205 R205=B00000101 M2003=0
()=OR R200 B1111 R206 R206=B10011111 M2003=0
()=XOR B1010 B1110 R207 R207=B00000100 M2003=0
Origin Nr of repetitions Target
RR1
RR2
RL1
RL2
R1/559 R1/559
0/31
R1/559

Table of Contents

Related product manuals