·414·
Installation manual
CNC 8055
CNC 8055i
7.
CONCEPTS
SOFT: V02.2X
Open communication
Send 1 message and wait for the response with timeout
Pressing the F key sends 2 integers with the numbers $10000000 and $20000000 and waits for the
answer that must be the same data that was sent.
Wait a maximum of 1 second since it sends the message until it receives the answer.
Set the following serial line parameters as follows:
RCVMAXCAR (P11) = 8
RCVENDTI (P12) = 1000
DFU B0R560 = CNCWR($10000000,COMBUFL 1 2,M1)
= CNCWR($20000000,COMBUFL 1 6,M1)
= CNCWR(8,COMBUFW 1 0,M1) ;2 long means a message length of 8 bytes
= WRITE 1
= READ 2
; Read the data from the buffer and leave it in registers at the end of reception.
DFU READEND= NOT JMP L1000
( ) = CNCRD(COMBUFW 2 0,R100,M1)
= CNCRD(COMBUFL 2 2,R101,M1)
= CNCRD(COMBUFL 2 6,R102,M1)
= CNCRD(RCVSTAT,R110,M1) ; reception status
; Verify (compare) that the data received has the same value as the ones sent.
CPS R100 EQ 8
AND CPS R101 EQ $10000000
AND CPS R102 EQ $20000000 = NOT SET ERR7
B0R110 = ERR100 ; Parity errors
B2R110 = ERR101 ; Timeout error
B6R110 = ERR102; Reception error
L1000