4/13/2017 2:17 PM | |
Joined: 10/11/2006 Last visit: 12/20/2024 Posts: 5974 Rating: (820)
|
Hello, I don't know what is going wrong in your project. I can just try to give you an idea to create a simple control: I would try to run the speed axis with the SINA_SPEED FB from the new DriveLib. You can download the lib here: https://support.industry.siemens.com/cs/de/en/view/109475044 Attached you find some screenshots of my little example project. This should make it much more easy. Only thing you need to know: Standard telegram 1 is used for this FB. For sending other values from the drive to the PLC you could add an supplementary data telegram to your drive. TIA Portal offers a supplementary telegram 2/6 for example, which means you can send 6 words from the drive to the PLC. So in STARTER you also add this telegram. There input and output direction is the other way round, so you select supplementary data 6/2 there. Then you can connect for example r81 to the free PZD 3+4 in transmit direction. This parameter is Float32 and given directly in %. You need to know that 100% in your PLC are 4000 0000hex for 32 bit float values. The temperature is also in %, but refers to the value in p2006. So if p2006 = 100° and r37 = 45°, your drive sends 45% to the PLC and there you need to convert the value to 4000 0000hex. You can find the information of the reference value in the online help of all parameters. In the PLC you can read out this supplementary data for example with the DPRD_DAT function. Attachmentscreenshots_example_config.zip (187 Downloads) |
With best regards, |
|
This contribution was helpful to1 thankful Users |
4/13/2017 4:52 PM | |
Posts: 3 Rating: (0) |
Excellent, now I can work with it. I really thank you for your help! |
Follow us on