Skip to content

RS232 with RS UNI

Hello, 

 

I want to make program which do RS232 communication from AXC F 2152 with RS UNI H1 to the other PLC device.

I read RS UNI document "db_en_axl_f_rs_uni_1h_8533_en_05.pdf". But I don't understand.

 

Could I get more information?

I use ST language on PLCnext Engineer and want to use Transparent protocol

 

IKU ANDO

Comments

  • Hello,

    I hope I can help.

    It is probably best to start with the "AXL_SerialComms" function block library for PLCnext Engineer, which you can download here:

    https://www.plcnextstore.com/#/171

    The AXL_RSUNI_PD function block handles all the low level communication with the serial module. The documentation for the library includes an example that should help you get started.

    If you need help with this, or have any other questions, please let us know.

    ~ Martin.

  • Thank you.

    I try it.

  • Why does the example use a separate function block for sending and receiving data? Isn't it all done in a single FB?

    I'm trying to receive weight data from a balance via RS232 using end to end protocol. (Data from balance is 15 bytes + carriage Return and Line feed delimiters) The data transfer is partially working but every few seconds the input data becomes misaligned in the array for a few transmissions before it is corrected. I am pulling the data directly from the relevant array positions in the arrInputPD as the arrRcvData only updates periodically then all bytes return to null. The uiRCVDataLength output also fluctuates during this period of misalignment. Normally the incoming data is 15 bytes long (correct based on device data format) but then jumps around before returning to 15. Any recommendations would be appreciated as I am very inexperienced with controls programming (filling in for someone who left without notice while we hire a new programmer)
  • I'll ask someone from your local Phoenix Contact office to get in touch with you. Someone there should be able to work through these specific issues with you and get your comms working smoothly.
  • Thank you for your quick response. I look forward to speaking with someone.
Sign In or Register to comment.