Hello all,
I need to stablish a [b]Modbus RTU RS485[/b] communication with various devices, being the [b]AXC F 2152[/b] with an Axioline [b]AXL SE RS485[/b] the Master. I'm reading the documentation of the Modbus RTU library and trying to assembly an example program to see how i'm going to do it once i get to the real project, i still dont have the hardware so i can't really try it. My questions are the next: Being the PLC the master, if i want to read for example holding registers from a certain slave, according to the docs i would just use the [b]MB_RTU_FC3[/b], assign the correct parameters and i would start receiving data from that device right? If i want then to read from another slave, and i add another time this [b]MB_RTU_FC3[/b], do i need to use another udt variable for the [b]arrReadData[/b] and [b]udtMbData[/b] variables in this one? Or are the same from the other FC? I guess for the [b]arrReadData[/b] should be a different one if i dont want that data to get lost from one slave read to the other one, but for the [b]udtMbData[/b] i'm not so sure, in the docs it says: [b]"The block communicates via this structure with the FC Blocks"[/b] This make me think it could be the same one for all the blocks that i use in the program. Could you send me some help with this? Thank you very much in advance! Kind Regards, Nacho