Adam5000 New Communication Driver is the driver to communicate with ADAM 5000 Series controller of
. in Taiwan.
<Figure 1> is read setting example of ADAM5000 New communication driver.
<Figure 1> Read setting example of ADAM5000 New communication driver |
Device part of <Figure 1> input Com Port(COM1), Baud Rate(115200), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively. (According to controller's setting)
Also whether to use the Checksum(0: don't use, 1 : use, default = 0) is set by using option part.
Adam5000 New communication driver¡¯s read schedule
Read schedule setting parameters are as follows:
1) Node ID – Node ID of controller = 0 ~ 255.
2) Read command – Command = AIN0 ~ AIN7, AI DI, DO ¡¦ . ( Refer to <Table 1>)
3) Read slot no. – slot no. of Adam5000.
4) Save Start Address for Communication Server – Saving start address of Communication Server.
5) Read Size – Size = Fix to 1.(Refer to <Table 1>)
Read schedule example)
READ, 1, AI, 0, 0, 1,
READ, 1, DI, 1, 10, 1,
READ, 1, DI, 2, 11, 1,
READ, 1, DI, 3, 12, 1,
<Table 1> is a description of read command and contents of Adam5000 New communication driver.
Read Command | Contents | Remarks |
AIN0 ~ AIN7 |
Read of one AI channel value |
|
AI |
Read of all AI channel value |
5017/5018 = 8 channel |
RTD |
Read of all RTD channel value |
|
DI |
Read of all DI slot value |
equal structure |
DO |
Read of all DO slot value |
|
etc,.... |
Send command to Adam5000(add to CR code) |
|
<Table 1> Read commands type and contents of Adam5000 New communication driver |
Adam5000 New communication driver store the same data in WORD, DWORD, FLOAT memory, but the data formats are different.
If you click the icon in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part.
<Figure 2> Example of Adam5000 New communication driver¡¯s Option dialogue box |
You can also set read schedule by using , , button and listbox of <Figure 2>.
<Figure 3> Example of Adam5000 New communication driver¡¯s read schedule Add/Edit dialogue box |
When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> will be shown.
You can set 'mode, date/time, ... ' by using write commands.
Bit write
Bit write and word write have the same setting parameters except output value(0 or 1).
Word write
Word write setting parameters are as follows:
1) PORT : Port no. (0 ~ 255)
2) STATION : 0 ~ 255 Node ID.
3) Address : 0 ~ 7 Slot no.
4) Extra1 : Write command,
AO : Analog output,
DO : Digital output,
etc : Send command to Adam5000. (add to CR code)
5) Extra2 : 0 ~ 15 channel no.
Write example 1)
PORT : 0 STATION : 1 ADDRESS : 0003 EXTRA1 : DO EXTRA2 : 0
The setting parameter shown above is an example of write for slot 3(4th), channel 0(1st) DO of ADAM5000 connected with 0 port and 1 Node ID.
Write example 2)
PORT : 0 STATION : 1 ADDRESS : 0003 EXTRA1 : DO EXTRA2 : 5
The setting parameter shown above is an example of write for slot 3(4th), channel 5(6th) DO of ADAM5000 connected with 0 port and 1 Node ID.
Write example 3)
PORT : 0 STATION : 1 ADDRESS : 0001 EXTRA1 : AO EXTRA2 : 2
The setting parameter shown above is an example of write for slot 1(2nd), channel 2(3rd) AO of ADAM5000 connected with 0 port and 1 Node ID.
Block write
ADAM5000 New communication driver don¡¯t support ¡®Block write¡¯.
In the following ways, you can connect communication cable and main power line to Adam5000.
Connection of communication cable
Following figure shows connection of RS-485 communication cable to Adam5000. (Refer to <Figure 4>)
Adam5000 Computer ( RS-485 )
DATA + ----------------------- +
DATA - ----------------------- -
Also you can connect RS-232C cable to RS-232C(cross cable connection) connector(bottom) to ADAM500.
<Figure 4> Appearance of Adam5000 connected communication cable and main power |
Connection of main power line
Main power connect 5 ~ 30V DC to +Vs, GND connector like <Figure 4>.
4. Setting of Node ID
Adam5000 has 1 ~ 8(number) dip switch at bottm.
You can set Node ID this dip switch to 0 ~ 255.
example 1) all DIP switch = OFF -> Node ID = 0.
example 2) 1 DIP = ON, other = OFF -> Node ID = 1.
example 3) 1, 2 DIP switch ON, other = OFF -> Node ID = 3.
example 4) all DIP switch ON -> Node ID = 255.
In the following ways, you can set baud rate and check sum of Adam5000.
(1) Turn off ADAM5000 controller.
(2) Please short 'INIT*' and 'GND' connector in the bottom of power input.. (Refer to <Figure 4>)
(3) Wait about 7 second after power on to ADAM5000 controller.
(4) Communicate baud rate equal '9600, 0, 8, 1,' and 'Node ID equal '0'.
(5) You can set baud rate and use of check sum by write setting. Write setting's 'Extra1' format = %0000xxyy.
xx = Baud rate, Refer to <Table 2>
yy = Use of check sum, 00 : don't use, 40 : use
ex) %00000A40 : 115200 bps, using check sum
(6) Turn off ADAM5000 controller.
(7) Disconnect 'INIT*' connector.
(8) Wait about 7 second after power on to ADAM5000 controller.
(9) Complete baud rate and use of check sum.
Setting value | Baud rate |
03 |
1200 bps |
04 |
2400 bps |
05 |
4800 bps |
06 |
9600 bps |
07 |
19200 bps |
08 |
38400 bps |
09 |
57600 bps |
0A |
115,200 bps |
<Table 2> The setting value each baud rate of Adam5000 |