This commit is contained in:
parent
4484ed15fb
commit
71c556b75c
2 changed files with 7 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
includes
|
includes
|
||||||
{
|
{
|
||||||
#include "ModbusCommon.cin"
|
#include "ModbusTcpCommon.cin"
|
||||||
}
|
}
|
||||||
|
|
||||||
variables
|
variables
|
||||||
|
@ -26,6 +26,11 @@ on start
|
||||||
ModbusInit("192.168.1.3", 502);
|
ModbusInit("192.168.1.3", 502);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
on key 'r'
|
||||||
|
{
|
||||||
|
ModbusReadBits(0, 512);
|
||||||
|
}
|
||||||
|
|
||||||
on key 'a'
|
on key 'a'
|
||||||
{
|
{
|
||||||
byte x[16] = {1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0};
|
byte x[16] = {1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0};
|
||||||
|
|
Loading…
Reference in a new issue