5/4/2020 8:39 PM | |
Joined: 7/30/2015 Last visit: 7/24/2024 Posts: 9 Rating: (0) |
as I understand it is not a simple method. Is there anyone doing a sample application? |
5/5/2020 10:57 AM | |
Joined: 4/28/2015 Last visit: 9/20/2022 Posts: 1278 Rating: (298) |
Hi, in the end it is not too difficult. There are different options and here in the forum are quite a few answers available on cyclic communication and adding user defined data. As you have a G120C I assume you want to do a speed controlled application and additionally you want to hand over the AI value to the PLC. The drive and the PLC communicate via so called cyclic telegrams. There are standard telegrams available like telegram 1 for example. With that telegram you can switch on the drive and give a certain speed setpoint. What you get back is simply the state of the drive and the actual speed. To control that from the PLC's user program there are ready-to-use function blocks available like the SINA_SPEED FB (for telegram 1). So with that function you can simply do a communication between PLC and drive with basic functionality. Now you additionally want to add tha analogue value to transfer it via the cyclic telegram from the drive to the PLC. This can be done by adding supplementary data to your standard telegram. So on the drive side you have several additional words to send (or receive) other data to the PLC - those additional words can be used now to send for example the analogue value to the PLC - therefore you would need to connect parameter r755 to p2051[x]. What you need to do on the PLC side is to get this data by the system function "GETIO" and put it to a variable (e.g. a variable of data type word in a global DB).
Attached please find a short instruction that I just done using TIA V15.1 with some explaining screenshots and my example project. I hope this helps also for others here in the forum for the future as those questions come up from time to time. AttachmentDataExchange.zip (245 Downloads) |
Last edited by: RB91 at: 05/05/2020 11:31:40Best regards, |
|
This contribution was helpful to5 thankful Users |
Follow us on