How do I address a single bit out of a word in ST?

All of that can be simplified to:
OutputBit0:= ((InputWORD AND 1) > 0);
OutputBit1:= ((InputWORD AND 2) > 0)
OutputBit8:= ((InputWORD AND 256) > 0)

Good point, That did cut quite a few steps. I think I am good to go now. Thank you for all your help everybody! I very much appreciate you.
 

Similar Topics

Hi, I'm trying to setup a single pc solution to testing and devloping my PLC application. I have written an EthernetIP I/O simulator program...
Replies
6
Views
12,726
This probably just falls under personal preference, but when using RS-Logix 5 what is the advantage or situation when it is better to split...
Replies
4
Views
1,832
Hello everyone, I've had this issue for the last 2 days where I try to assign the profisafe address to an IO block (6ES7 146-6FF00-0AB0) but when...
Replies
5
Views
205
i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
204
Hi, I wanted to ask is there a way to have a visibility expression use the IP address of the HMI (Dynics, not PV) to show certain elements? The...
Replies
3
Views
233
Back
Top Bottom