best way to communicate using rs485
i have gotten this working in the past with com_serial_9
i have to say, its very difficult to work with...
is there a better way? how about in a c# function block??
any examples?
i have gotten this working in the past with com_serial_9
i have to say, its very difficult to work with...
is there a better way? how about in a c# function block??
any examples?
Comments
right now i'm stuck using axl_comserial_9 when i try to send or receive it says timeout.
if i turn a constant stream from my serial device, i can see the lights going... until it fills the buffer or something. but if i turn serial device into command mode, i can't send anything
Hello jbliss,
unfortunately we don't have a C# example for RS485 communication. I see in PLCnext Store | AXL_ComSerial latest update: "9 (Build 20220218) - Remove the corrupt sample ACS_9_EXA_AXL_SE_RS485.pcwex and replace it with a working one."
Can you try to use/start this example? If it doesn't work, you can use the "Contact developer" button to send a request to the library developer and/or send a detailed description with screenshots to the support email address: support@phoenixcontact.de
If you would like to implement your own code in C++/C# you have to use the process Data e.g. of AXL RS UNI Modul (Kommunikationsmodul - AXL F RS UNI XC 1H - 2702006 | Phoenix Contact). The length and content of the PD for e.g. "axl_f_rs_uni_xc_1h" module can be found in the manual: Kommunikationsmodul - AXL F RS UNI XC 1H - 2702006 | Phoenix Contact ->Download->Datasheet->db_en_axl_f_rs_uni_xc_1h_106222_en_06.pdf
The following Project can help to implement the access to the process data of AXL-Modul:
BusConductor/BcComponent.cpp at master · PLCnext/BusConductor · GitHub
BR Eduard