Introduction
Recommended communication if an exchange of registers between two controllers is to be realized through a serial connection.
Data exchange uses the BCC/31 protocol. Messages are sent on reserved channels 190 ÷199.
When messages arrive on one of the user channels they are placed in a channel queue. Each queue can contain up to 16 positions. When this queue is full new messages will be discarded.
From program R3 it is possible to:
•Initialize the serial channel via the instruction ser_bcc_h_init()
•Read the message present in the queue via the instruction bcc_receive()
•Send any response on the same communication channel on which the request came via the instruction bcc_send()
Instruction
ser_bcc_h_init() |
Initialize the indicated serial channel |
bcc_h_setup() |
Prepares the response |
bcc_send() |
Sends the data packet |
bcc_receive() |
Receives the data packet |
Shell commands
Command to send an ASCII string to a user channel |