11/17/2021 12:47 PM | |
Joined: 6/12/2012 Last visit: 2/8/2024 Posts: 165 Rating:
|
Hello, I have a CU240E-2 PN that is controlled by a PLC s7-1200 trough PZD words. I would like to add an extra command, in the runtime advanced, by writing to the application function, free blocks, logic function OR1. I have configured it to be acyclic, but will this new S7 connection mess with the PZD from PLC? AttachmentG120.zip (359 Downloads) |
Thanks, |
|
11/18/2021 5:35 PM | |
Joined: 6/12/2012 Last visit: 2/8/2024 Posts: 165 Rating:
|
So, I have tested and I can see the speed value directlly from the drive. So I know that the runtime is receiving data from the drive. I cannot send a ON command to the drive. I tried to write 1 to D20050.DBD0 (OR1 Unsigned double word), but it did not work and even tried to write 100 to DB2900.DB0, but did not work. The drive is configured for profinet command. I think I have to link the input 0 from OR1 to some parameter, but don't not witch one, since the PZD words come from the PLC. AttachmentDrive Data.zip (381 Downloads) |
Thanks, |
|
11/18/2021 6:03 PM | |
Joined: 4/28/2015 Last visit: 9/20/2022 Posts: 1278 Rating:
|
I thougth the first input of the OR function is assigned to the PZD (Control word 1 - the bit that is usually directly assigned to OFF1 command). And the second OR input you write directly from the HMI 0 or 1. I think to set a BiCo to "1" you need to write the value "1111 1111 1111 1111" acyclically -> not a 100% sure - please check it in the function manual for communication under acyclic communication. And the output of the OR function will be connected to OFF1 (p840). If you work with data sets you can also skip the OR function and keep the connection of the PZD to p840[0]. And for p840[1] you can try to write it acyclically - don't know if this works. Be aware to always have a 0-> 1 positive edge at OFF1. Please check out this application example for HMI direct access to SINAMICS: https://support.industry.siemens.com/cs/de/en/view/109481157 There it is shown how to control the drive from the HMI directly. |
Best regards, |
|
11/19/2021 5:40 PM | |
Joined: 6/12/2012 Last visit: 2/8/2024 Posts: 165 Rating:
|
Hi Robert, Regarding p0840 its index updates only with CDS and not with data sets. |
Thanks, |
|
Follow us on