Modbus bitwise operations

hello, I have a 16-bit register and I only want to read 1 bit of the 16, how can I do this?

To work with single bits you can use the & and | operators.
This is detailed in the T3000 help document which you can get to through T3000->Help

This is a demo for BIT operations.

Here is a TXT format of the demo which you can cut & paste into your project. All variables are global variables which you can see entered in the ‘Label’ field in Var50 through Var65.

10 REM BIT0 → BIT16
20 BIT0 = 12345 & 1
30 BIT1 = 12345 & 2 / 2
40 BIT2 = 12345 & 4 / 4
50 BIT3 = 12345 & 8 / 8
60 BIT4 = 12345 & 16 / 16
70 BIT5 = 12345 & 32 / 32
80 BIT6 = 12345 & 64 / 64
90 BIT8 = 12345 & 128 / 128
100 BIT9 = 12345 & 256 / 256
110 BIT10 = 12345 & 512 / 512
120 BIT11 = 12345 & 1024 / 1024
130 BIT12 = 12345 & 2048 / 2048
140 BIT13 = 12345 & 4096 / 4096
150 BIT14 = 12345 & 8192 / 8192
160 BIT15 = 12345 & 16384 / 16384