EasyManua.ls Logo

Fagor CNC 8055i FL EN - Examples of Open Communication

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...
Installation manual
CNC 8055
CNC 8055i
CONCEPTS
7.
SOFT: V02.2X
·413·
Open communication
7.21.4 Examples of open communication
Here are some examples of open communication:
Send 1 message
Pressing the F key sends the ?"HELLO" message through the serial line.
Send 1 message and wait for the response
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. It does not have a wait timeout.
Set the following serial line parameters as follows:
RCVMAXCAR (P11) = 8
RCVENDTI (P12) = 0
DFU B0R560= CNCWR($48,COMBUFB 1 2,M1); 'H'
= CNCWR($45,COMBUFB 1 3,M1); 'E'
= CNCWR($4C,COMBUFB 1,4,M1); 'L'
= CNCWR($4C,COMBUFB 1 5,M1); 'L'
= CNCWR($4F,COMBUFB 1 6.M1) ; 'O'
= CNCWR(5,COMBUFW 1 0,M1); Writ e t h e l e n g th o f t he s t r in g t o be s e n t i n t h e
first word
= WRITE 1 ; Send through the serial line.
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= CNCRD(COMBUFW 2 0,R100,M1)
= CNCRD(COMBUFL 2 2,R101,M1)
= CNCRD(COMBUFL 2 6,R102,M1)
; Verify (compare) that the data received has the same value as the ones sent.
DFU READEND AND CPS R100 EQ 8
AND CPS R101 EQ $10000000
AND CPS R102 EQ $20000000 = NOT ERR7

Table of Contents

Related product manuals