·416·
Installation manual
CNC 8055
CNC 8055i
7.
CONCEPTS
SOFT: V02.2X
Open communication
Slave CNC programming:
Set the following serial line parameters as follows:
RCVMAXCAR (P11) = 8
RCVENDTI (P12) = 0
CY1
() = SET M1000
END
PRG
IMA
; Stage 0
; Command to read 1 message
M1000 AND READRDY = READ 1
= RES M1000 = SET M1001 ; Go to stage 1
; Stage 1
; Wait for end of message reception
M1001 AND READEND = CAL L1000
= RES M1001 = SET M1002 ; Go to stage 2
; Stage 2
; Send message
M1002 AND WRITERDY = CAL L1001
= WRITE 2
= RES M1002 = SET M1003 ; Go to stage 3
; Stage 3
; Wait for end of transmission
M1003 AND WRITERDY = RES M1003 = SET M1000 ; Go to stage 0
REA
END ; end of PRG
; Copy the received data into marks M3000.. M3063
L1000
() = 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
; Copy marks M3100..M3163 into the buffer to send them
L1001
() = 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