3/3/2016 1:01 PM | |
Posts: 6 Rating: (0) |
Hi. I want to bring out values (floating points) from a data-block (DB4 in the simatic step 7) to a CP340. As to day these values goes to an operator panel, and I still want them to do that. However, these values is also necessary to be transfered over to a PC from the cp340. (Serial transfer to a Moxa Nport and further from this via Ethernet transfer to an PC ). How will the process/ setup in the Simatic program be, so that I can with the CP 340 retrieve the same values that goes to the DB4, then forward these to the output of the CP. I assume that it will be possible to use the same data-block (DB4) to collect the values. I have grasped that the P_SEND function that follows the CP340, only can be used once per module. And since I only can used this once, and have three different values with different addresses this can be a bit problematic. As to day the addresses I want to send are: DB4.DBD12 DB4.DBD16 DB4.DBD20 These values comes from “SUB” functions output in FC2 and store the values in DB4. Is there any solution to get these values into the CP340 and out to the Moxa Nport? Any thoughts about how this could be programmed ? Attach is brief sketch of the FC2 and DB4
Best regards Attachmentutganger til database.pdf (74 Downloads) |
3/3/2016 1:25 PM | |
Joined: 6/24/2013 Last visit: 6/1/2024 Posts: 1608 Rating: (415)
|
Hi in what format do you wish to transfer them? to avoid big endian problems you could transfer them as strings (converted to string). we use servo controller with rs232 port and used cp340 for communications. the function which talks to the CP attached. Protocol is ASCI with #3 as an message end (you need set it in hw config. also to do it you need download and install CP340 configuration package). Also if you send messages you need set end of message character (usually #3) regards Piotr Attachment!FB53_RS232.pdf (96 Downloads) |
This contribution was helpful to1 thankful Users |
Follow us on