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,695
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,821
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
125
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
201
Hello. I have a few machines that use Kinetix 300 (each machine has two drives). Both drives on one of the machine keep losing IP address. They...
Replies
2
Views
103
Back
Top Bottom