Does 1) also work for S7+ Driver?If you want to split a 32bit word received from the PLC into its bits you can probably use one of the following solutions, if the bits can be addressed by their sub index (depending on the driver you are using):
1) Using a type array in the datapoint structure
In the datapoint structure define an element of type "bool array". Below this node define the number of elements which are needed, e.g. 32 elements.
When now an _address config is configured at the base element for the bool array the driver automatically writes the bits to the elements in the structure.
2) Addressing by the sub index
Add an _address config to the boolean elements and configure the address + sub index to read a single bit from a bit word. In your case the address is configured at DP_A.DI.D, DP_A.DI.F, ....
Then you do not need the datapoint function to read a single bit.
Best Regards
Leopold Knipp
Senior Support Specialist
dpNames()
- georg.hasibether
- Posts:2
- Joined: Tue Aug 29, 2017 10:05 am
Re: dpNames()
Leopold Knipp wrote:
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: dpNames()
As far as I have seen in the address panel for a S7+ address panel you cannot define a sub index.
Therefore it might not work for the S7+ driver.
Best Regards
Leopold Knipp
Senior Support Specialist
Therefore it might not work for the S7+ driver.
Best Regards
Leopold Knipp
Senior Support Specialist