xLadder user manual-V2.0.0.6

10.5.2 CAN, serial port initialization instructions

UART_Init CAN_Init

CAN_Init instruction is used to initialize the CAN port.  EN : If the input value is 1,the instruction will initialize the CAN port.

PORT : port number , 0~1 。

BR : CAN port baud rate

UART_Init instruction is used to initialize the serial port.  EN : If the input value is equal to 1,the instruction will initialize the serial port.

PORT : port number , 0 - 2 。 BR : Serial port baud rate.

 DBIT : The number of serial data bit.

 PR : Serial port check bit , 0=No parity , 1=Odd check , 2=Parity check

SBIT : Stop bit

 DONE : success=1 , fail=0 You can also set these parameters in the programming software.

As shown in the following picture:

255

Made with FlippingBook - Online magazine maker