MEGA DDC communication driver is the driver to communicate with DDC controller of Nara control in Korea.
<Figure 1> is read setting example of MEGA DDC communication driver.
<Figure 1> Read setting example of MEGA DDC communication driver |
Device part of <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.
Also you can set 'delay time between packet'( 0 ~ 100, default = 50) by using option part.
Note) MEGA DDC controller need the delay time between packet about 20 milli second.
MEGA DDC communication driver read schedule
Read schedule setting parameters are as follows:
1) Slot number – 0 ~ 255 slot number of controller.
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 1. ( according to number of input/output in slot )
Read schedule example)
READ, 0, 0, 0, 0, 1,
READ, 1, 0, 0, 30, 1,
READ, 2, 0, 0, 60, 1,
READ, 3, 0, 0, 90, 1,
<Table 1> is data saving address and contents of MEGA DDC communication driver.
Data saving address |
Contents |
Remarks |
Start addr + 0 |
current value of 1st channel |
save WORD/DWORD/FLOAT memory also, save at STRING memory |
Start addr + 1 |
current value of 2nd channel |
|
Start addr + 2 Start addr + 3 ¡¦ |
¡¦ |
|
<Table 1> Data saving address and contents of MEGA DDC communication driver |
MEGA DDC communication driver for MCC 2060 store the same data in WORD, DWORD, FLOAT memory, but the data format are different.
Also, save point type string of each slot to STRING memory.
If you click the icon in protocol option part at <Figure 1>, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part.
<Figure 2> Example of MEGA DDC communication driver¡¯s Option dialog box |
You can set read schedule by using , , button and listbox of <Figure 2>.
You can also set delay time between packet by using the part of 'Delay Time' in <Figure 2>.
<Figure 3> Example of MEGA DDC communication driver¡¯s read schedule Add/Edit dialog box |
When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.
You can set MEGA DDC controller by using 'writing settings'.
Digital Write
Digital write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION 0 ~ 255 slot number of controller.
3) ADDRESS decimal unit channel number.
4) Extra1 write command.
space, DIGITAL : digital output, ( DOUT command )
ANALOG : analog output, ( AOUT command )
other : write command. ( don't use INIT : memory erase of controller )
5) Extra2 don't care.
Write example 1)
PORT:0, station:0, ADDRESS:0000, Extra1:DIGITAL, Extra2 : 0
The setting parameter shown above is a control(On/Off) example of 0(1st) digital channel, 0(1st) slot.
Write example 2)
PORT:0, station:0, ADDRESS:0001, Extra1:DIGITAL, Extra2 : 0
The setting parameter shown above is a control(On/Off) example of 1(2nd) digital channel, 0(1st) slot.
Analog Write
Analog write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION 0 ~ 255 slot number of controller.
3) ADDRESS decimal unit channel number.
4) Extra1 write command.
space, ANALOG : analog output, ( AOUT command )
DIGITAL : digital output, ( DOUT command )
other : write command. ( don't use INIT : memory erase of controller )
5) Extra2 don't care.
Write example 1)
PORT:0, station:1, ADDRESS:0000, Extra1:ANALOG, Extra2 : 0
The setting parameter shown above is setting example of 0(1st) analog channel, 1(2nd) slot.
Write example 2)
PORT:0, station:2, ADDRESS:0005, Extra1:ANALOG, Extra2 : 0
The setting parameter shown above is setting example of 5(6th) analog channel, 2(3rd) slot.
Note) MEGA DDC controller can write only Mask channel. Non mask channel can mask by write command such as follows.
PEQ slot No. channelNo Y ( Y = EQ No MASK, N = NEQ, M = EQ MSAK )
example) PEQ 0 0 Y ( changing to Mask status for 0 slot, 0 channel )
Connection of main power and communication cable are as follows.
Connection of main power
Please connect 110 ~ 220 V AC main power to L1, L2 connector such as <Figure 4>. ( DC main power = D+, D- connector )
<Figure 4> Connection example of communication cable and main power to MEGA DDC |
Connection of RS-232C communication cable
Please connect direct RS-232C communication cable to 9pin connector of MEGA DDC such as <Figure 5>.
MEGA DDC ( 9pin connector ) computer ( 9pin connector )
<Figure 5> Connection diagram of RS-232C communication cable for MEGA DDC |
Note) Communication cable for MEGA DDC controller have to connect DTR, RTS signal, namely short pin 4 and pin 6, pin 7 and pin 8( 9pin connector) such as <Figure 5>.
( If don't connect RTS, DTR signal, the communcation port may occur 'Down' )
Connection of RS-485 communication cable
Please connect RS-485 communication cable to D+ ( 1 ), D-( 2 ), D+ ( 3 ), D-( 4 ) connector of MEGA DDC.