EasyManua.ls Logo

Fagor CNC 8060 - Page 256

Fagor CNC 8060
900 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...
·256·
Installation manual
CNC 8060
CNC 8065
4.
PLC PROGRAMMING.
(REF: 1402)
Action instructions.
= NGU R 1/1024
Complements the bits of a register.
It changes the state of each one of the 32 bits of a register.
= NGS R 1/1024
Register sign change.
Changes the sign of the register.
= ADS, = SBS, = MLS, = DVS, = MDS
Arithmetic operations.
for adding (ADS), subtracting (SBS), multiplying (MLS), dividing (DVS) and calculating the
module or remainder of a division (MDS).
Its programming format is:
"Operation" "1st operand" "2nd operand" "Result".
The operands may be: Registers, CNC-PLC communication registers and numbers
(#) in the ±2147483647 range or between 0 and $FFFFFFFF.
The result of the operation may be stored in a register or in a CNC-PLC
communication register.
Examples with R100=1234 and R101=100.
I15 = NGU R152
If input "I15 is =1", the PLC changes the state of the 32 bits of register R152.
R152 before: 0001 0001 0001 0001 0001 0001 0001 0001
R152 after: 1110 1110 1110 1110 1110 1110 1110 1110
I16 = NGS R89
If input "I16 = 1", the PLC changes the sign of the contents of register R89.
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/1024
R CNC-PLC
#
R1/1024
R CNC-PLC
#
R1/1024
R CNC-PLC
() = 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
() = MLS SANALOG 10000 R115
= DVS R115 32767 R115 ; Spindle speed command in mV.

Table of Contents

Other manuals for Fagor CNC 8060

Related product manuals