Dutchass
Member
i need to substrakt the 3rd bit from a INT in a siemens300.
What is the easyest way?
Example:
the INT has the value 5.
As result i want to have,
Bit 0 = 1
Bit 1 = 0
Bit 2 = 1
Bit 3 = 0
Bit 4 = 0
'
'
'
Bit 15 = 0
The Bit 0 is outputted to q125.0
The Bit 1 is outputted to q125.1
the Bit 2 is outputted to q125.2
'
'
'
What is the easyest way?
Example:
the INT has the value 5.
As result i want to have,
Bit 0 = 1
Bit 1 = 0
Bit 2 = 1
Bit 3 = 0
Bit 4 = 0
'
'
'
Bit 15 = 0
The Bit 0 is outputted to q125.0
The Bit 1 is outputted to q125.1
the Bit 2 is outputted to q125.2
'
'
'
Last edited: