EasyManua.ls Logo

Fagor CNC 8055i FL EN - Page 466

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...
·466·
Installation manual
CNC 8055
CNC 8055i
10.
PLC PROGRAMMING
SOFT: V02.2X
Action instructions
= NGS
Register sign change.
Example: I16 = NGS R89
If input "I16 = 1", the PLC changes the sign of the contents of register R89.
= ADS, = SBS, = MLS, = DVS, = MDS
They may be used to carry out arithmetic operations such as addition (ADS), subtraction (SBS),
multiplication (MLS), division (DVS) and module or remainder of a division (MDS).
Their programming formats are:
The operands may be: Registers, CNC-PLC communication registers and numbers (#) within
±2147483647 or between 0 and $FFFFFFFF.
The result of the operation may be stored in a register or in CNC-PLC communication register
Examples with R100=1234 and R101=100
R89 before 0001 0001 0001 0001 0001 0001 0001 0001
R89 after 1110 1110 1110 1110 1110 1110 1110 1111
ADS
SBS
MLS
DVS
MDS
R1/559
#
R1/559
#
R1/559
() = ADS R100 R101 R102 R102 = 1234 + 100 = 1334
() = SBS R100 R101 R103 R103 = 1234 - 100 = 1134
() = MLS R100 R101 R104 R104 = 1234 x 100 = 123400
() = DVS R100 R101 R105 R105 = 1234 : 100 = 12
() = MDS R100 R101 R106 R106 = 1234 MOD 100 = 34
() = ADS 1563 R101 R112 R112 = 1563 + 100 = 1663
() = SBS R100 1010 R113 R113 = 1234 - 1010 = 224
() = MLS 1563 100 R114 R114 = 1563 x 100 = 156300
() = DVS R100 1000 R115 R115 = 1234 : 1000 = 1
() = MDS 8765 1000 R116 R116 = 8765 MOD 1000= 765
If a division by "0" is performed in the DVS operation, the CNC stops the execution of the PLC program
and it displays the corresponding error message.

Table of Contents

Related product manuals