Reading a word in an FB written in SCL and getting the bits

userxyz

Member
Join Date
May 2002
Location
any
Posts
2,768
Hello,

I need to know how to covert a Word red with an Input Parameter in a FB made in SCL. How can I get all the bits in that word ?
Can I read the seperate bits from a word in an HMI Panel (Comfort Panel).

Everything in Tia Portal

Kind regards,
C
 
Hello,

I need to know how to covert a Word red with an Input Parameter in a FB made in SCL. How can I get all the bits in that word ?
Can I read the seperate bits from a word in an HMI Panel (Comfort Panel).

Everything in Tia Portal

Kind regards,
C

What PLC is it?
 
I need to know how to covert a Word red with an Input Parameter in a FB made in SCL. How can I get all the bits in that word ?
Can I read the seperate bits from a word in an HMI Panel (Comfort Panel).

You would do it the same as you would have in Simatic Manager, I would assume.

The easiest way to do it is to simply have the HMI look at the Instance DB and read the values directly.

However, I would recommend creating a separate structure with all the HMI relevant tags for the FB, especially if the HMI needs to write anything,
 

Similar Topics

How can I reading 0-65535 value reading from PIW258 address? I want to reading position parameter from Control Techniques Unidrive M600-M800...
Replies
5
Views
3,217
I am communicating with AB PLC through Ether net and able to read the N words. Want to read B as words but not able to read them as words. Able to...
Replies
3
Views
3,233
I’m struggling to read the individual bits of a word with a Siemens S7-200 PLC. With other PLC types this wouldn’t be an issue but I don’t have...
Replies
9
Views
5,239
Hi All, Just a question that is PLC and SCADA related. I am using Wonderwares Intouch 9.5 and a Siemens S7-300 PLC, i have a word that stores...
Replies
4
Views
3,034
Hi, I am new to contrologix's. I want to read few bits of tag type real. Consider 'Out_real' tag declared as real. I want to read 14, 20, 31st...
Replies
8
Views
9,718
Back
Top Bottom