Installation manual
CNC 8055
CNC 8055i
CONCEPTS
7.
SOFT: V02.2X
·415·
Open communication
Continuous communication between 2 CNC's where one is the
master and the other the slave
Two CNC's continuously exchange 64 PLC marks when pressing the F key at the master.
Master CNC programming:
Set the following serial line parameters as follows:
RCVMAXCAR (P11) = 8
RCVENDTI (P12) = 500
It must receive the answer in 500 ms.
PRG
IMA
; Beginning of the process when pressing the F key
DFU B0R560 = SET M1000
; Stage 0
; Send message
M1000 AND WRITERDY = CAL L1000
= WRITE 2
= RES M1000 = SET M1001 ; Go to stage 1
; Stage 1
; Wait for end of transmission
M1001 AND WRITERDY = RES M1001 = SET M1002 ; Go to stage 2
; Stage 2
; Command to read 1 message
M1002 AND READRDY = READ 1
= RES M1003 = SET M1000 ; Go to stage 3
; Stage 3
; Wait for end of message reception
M1003 AND READEND = CAL L1001
= RES M1003 = SET M1000 ; Go to stage 0
REA
END ; end of PRG
; Copy marks M3100..M3163 into the buffer to send them
L1000
() = MOV M3100 R300
= MOV M3132 R301
= CNCWR(8,COMBUFW 2 0,M1)
= CNCWR(R300,COMBUFL 2 2,M1)
= CNCWR(R301,COMBUFL 2 6,M1)
END
; Copy the received data into marks M3000.. M3063
L1001
() = CNCRD(COMBUFL 1 2,R300,M1)
= CNCRD(COMBUFL 1 6,R301,M1)
= MOV R300 M3000
= MOV R301 M3032
= CNCRD(RCVSTAT,R310,M1) ; reception status
B6R310 = SET ERR102; Reception error
END