2/29/2016 4:03 AM | |
Posts: 10 Rating: (0) |
Hi William_B What do you mean by "Do consider putting an auxilary flag in to trigger the load function (in parallel) with the first scan bit." Thank you |
3/7/2016 4:03 AM | |
Posts: 10 Rating: (0) |
Hi William_B Attached is the last version of my code. I followed your advice, but it did not work :( I am a little frustrated, I know that the SEL 751A relay works via modbus because I tested it with modScan64 software on my computer. The comm load block runs with no error, but the Master block is still given me that 8081 invalid port id error. I made sure I inputted the correct slave ID, check the Rs232 cable, and to me my code made sense, I should be able to read. One interesting finding is that the CM1241 rs2323 communication module on the PLC, Tx and Rx LED do not blink at all when I run the program. I have consulted with a professor at my university and he did not know how to help me. thank you again for your support Hope to hear from you soon. Regards Ygor AttachmentModbus code.zip (374 Downloads) |
3/7/2016 7:55 AM | |
Posts: 10 Rating: (0) |
Hi william_B What do you mean by "review x3 pins hidden from view on the MASTER instruction" I have look over the master block and Cant seem to find the hidden pins? Could you clarify this for me? On another note: I was looking into the S7-1200 manual the section 12.3.5.1 Configuring the communication module. In this example, an S7-1200 CPU communicates to a PC with a terminal emulator through a CM 1241 RS232 module. I have come to realize that I never did any configuration of the CM1241. All I did was detect the modules attached to the PLC, then look up the hardware ID for the module and make the COMM and MASTER blocks respectively. My question know is do I need to Program the PtP communications before using Modbus rtu communication? configure the PORT_CFG. SEND_CFG AND RCV_CFG blocks? because if so, that might be my issue. I have attached the section of the manual so you can refer to what I have said. A thousand thanks for following up to my questions. Attachmentmanuel-plc-siemens-s7-en.pdf (432 Downloads) |
Follow us on