Convert word type in boolean

Find and share HowTos to various installations / configurations!
4 posts • Page 1 of 1
orla090978
Posts:55
Joined: Thu Jan 03, 2019 2:05 pm

Convert word type in boolean

Post by orla090978 »

Dear all,

From PLC I receive a tag in word format via S7+ driver.
I'd like to split this word in 16 tags boolean to use these bit splitted.
How to convert these tags in WinCCOA?
Is it recommended to create a script or create a para.pnl ad hoc?
Does it afflict performances?

Thanks a lot
Best regards

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Convert word type in boolean

Post by leoknipp »

There are several possibilities to split a word into its bits:
-- Address configuration with a subindex for the address (if supported by the driver)
-- Address configuration on the node of type "struct" + datatype (driver splits the word automatically in its bits)
-- Using a dp function
-- Writing a script

Please have a look at the following post in another thread:
viewtopic.php?f=16&t=10450&p=965100&hil ... ct#p965100

Best Regards
Leopold Knipp
Senior Support Specialist

orla090978
Posts:55
Joined: Thu Jan 03, 2019 2:05 pm

Re: Convert word type in boolean

Post by orla090978 »

Thanks for fast reply.

Do you know if S7 + driver support subindex configuration?
Do you know if DP function can slow the system performance?

Have you an idea about script (always for this purpose) and when it shall be triggered?

Thanks a lot.

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Convert word type in boolean

Post by gschijndel »

The S7Plus driver does not seem to support subindexes, but perhaps slice access is possible.

A DP function will increase the event manager startup time a little bit.

4 posts • Page 1 of 1