Posts: 2
Threads: 1
Joined: Aug 2023
Reputation:
0
Hello,can i send from Virtuino to an PLC separate Bits ?
Address Marker 1 = 1001
Addess Bit 0 = 1001.0
od Address 1001.1 usw.
CU Martin
Posts: 367
Threads: 0
Joined: Apr 2022
Reputation:
14
Hi,
I need more information about this.
The script "Bit Converter" can extract a bit from a value and send it to a device.
Posts: 2
Threads: 1
Joined: Aug 2023
Reputation:
0
Posts: 367
Threads: 0
Joined: Apr 2022
Reputation:
14
09-03-2023, 06:46 PM
(This post was last modified: 09-03-2023, 06:54 PM by iliaslamprou.)
Hi,
I think you can write to these addresses using the function 6.
In this case you can use the "Bit Converter".
1. Create a Modbus Variable for the address 1001 using the necessary byte format.
2. Add seven switches to control the Emulator variables V0-V6
3. Add seven "Bit Converter". Select as input the Variables V0 to V6 of the Emulator
Select as output the same Modbus Variable for all "Bit Converter" scripts . This is the Variable for the address 1001.
Select a bit from 0 to 6.
Enable the "Bydirectional" check box.
Input type "Integer"
Now every time you change te button states the app will send a number to the Modbus address. The number will be created by the bit of the button states