Skip to content

how to use the example project of AXL_ComSerial 8 Lib to send data?

I have a AXC F 2152, a AXL SE DO16/1, a AXL SE DI16/1, a AXL SE RS485. I has installed the AXL_ComSerial_8 Library. But when I write the example project into the plc and run it, the iState will be 40. Then strDiag tell me that error is "Timeout while sending data".

like this!

this is the project.

it's not work on my plc.😥😥😥

Comments

  • I have the same issue, just with a AXL SE RS232 Component. Do i need to connect the created Variables to the Module?

    If the answer is "yes", then to which of the 18 Inputs or 18 Outputs do i connect which variable?

  • So i solved my problem it was probably not the same but i wanted to receive Data from an Sensor and also got stuck at iState 40. I had no data to send so i deleted iState 40 from the ExampleMaschine _1 Function Block from the Example for the RS232 Module. I deleted iState50 aswell, because i didnt need to check my received data. Also changed iMode in the variable table to 1 because i was using the AXL SE RS232 (1181787) Module. Lastly i changed "udtExample.arrAXL_RSUNI[2].uiRcvDataLength    = UINT#200" to :   " <= UINT#200" and binded the Variables "arrInput_PD2" and "arrOutput_PD2" to the Octetstring DI160 and DO160 in the RS232 Module. Everthing is now working so far.

Sign In or Register to comment.