MAHA1256 communication driver is the driver to communicate with controller of Daehan Control Technology in Korea.
<Figure 1> is read setting example of MAHA1256 communication driver.
<Figure 1> Read setting example of MAHA1256 communication driver |
Device part of <Figure 1> input Com Port(COM1), Baud Rate(19200), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively. ( fixed to 19200, 0, 8, 1 )
MAHA1256 communication driver read schedule
Read schedule setting parameters are as follows:
1) Station – node number of controller. ( display node = 45 )
2) Read command – don't care.
3) Read start address – don't care.
4) Save start address for Communication Server – Saving start address of Communication Server.
5) Read Size – fixed to 160.
Read schedule example)
READ, 49, 0, 0, 0, 160,
READ, 49, 0, 0, 200, 160,
Readed data of MAHA1256 communication driver are as follows.
0 ~127 : analog input(variable)
128~159 - Status input(variable)
You can set MAHA1256 controller by using 'writing settings'.
Digital Write
Digital write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION node number of controller. ( display node = 45 )
3) ADDRESS writing address when B write command.( 45 node number : 0000 ~ 01FF, normal node : 0000 ~ 03E7)
4) Extra1 command.
B = normal output,
N = node change command,
S = real output command by stacked form 'B' command.
5) Extra2 block number when display node(45).
Write example 1)
PORT:0, station:49, ADDRESS:0000, Extra1: B, Extra2 : 0
The setting parameter shown above is a control(On, Off) example for 0(1st) point address, 49 node number MAHA1256 controller.
Analog Write
Analog write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION node number of controller. ( fixed to 45 )
3) ADDRESS 0000 ~ 001F writing address.
4) Extra1 command.
A = analog output,
B = status output,
N = node change command,
S = real output command by stacked form 'A' or 'B' command.
5) Extra2 block number.
Write example 1)
PORT:0, station:45, ADDRESS:0000, Extra1: A, Extra2 : 0
The setting parameter shown above is setting example for 0(1st) analog display address, 45 node number MAHA1256 controller.