We are considering to read N variables from a PLC. The update rate will be a challenge and we're therefor considering to pack the bits into DWORDS and then use dp functions to extract the bits from the words
(Our license will be 'unlimited' so there can not be any commercial issues)
Example:
We transfer a word 'ReadWord' containing bits for 'ModeAuto' and an alarm called 'PumpFailure'. This means that the dp element 'ModeAuto' will have a dp function connected to 'ReadWord'. 'PumpFailure' will have a dp function connected to 'ReadWord'
The DP element 'ReadWord' will become invalid when we loose the connection to the PLC (This needs to be configured in the S7+ driver).
What dp function to I configure so that 'PumpFailure' becomes 'bad' then 'ReadWord' has the status bad. ( I believe that you can not choose '.._original.._bad' in the PARA )
Thanks for your answer
share the fun
Frenk Mulder
How to incorporate quality into a dp function
- fmulder
- Posts:330
- Joined: Wed Feb 03, 2010 9:46 am
How to incorporate quality into a dp function
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: How to incorporate quality into a dp function
I didn't test it but I'm pretty sure that you can connect to the statusbits in a dp function.
E.g. the following configuration should be possible:
p1 = DP1.value:_online.._value
p2 = DP1.value:_online.._userbit1
p3 = DP2.value:_online.._value
p4 = DP2.value:_online.._userbit1
You have to configure all attributes for the same element one after the other as shown in the example above.
Best Regards
Leopold Knipp
Senior Support Specialist
E.g. the following configuration should be possible:
p1 = DP1.value:_online.._value
p2 = DP1.value:_online.._userbit1
p3 = DP2.value:_online.._value
p4 = DP2.value:_online.._userbit1
You have to configure all attributes for the same element one after the other as shown in the example above.
Best Regards
Leopold Knipp
Senior Support Specialist
- gschijndel
- Posts:376
- Joined: Tue Jan 15, 2019 3:12 pm
Re: How to incorporate quality into a dp function
The license should never be a reason to pack bits in dwords. Does your PLC not have enough subscriptions available to read all bits without packing them?
Transferring statusbits is only possible with statistical dp functions.
Transferring statusbits is only possible with statistical dp functions.