Nano Ball System communication driver is the driver to communicate with normal controller.
<Figure 1> is read setting example of NAM IL S-302CR communication driver.
<Figure 1> Read setting example of Nano Ball System 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.
In protocol option part, you can set the following: delay time of write after( 0 ~ 5000 milli second, default = 50 ), whether to check FCC for readed packet( 1 = check, 0 = don't check, defualt = 1 ). Each argument is a comma-delimited.
Nano Ball System communication driver read schedule
Read schedule setting parameters are as follows:
1) Station – 0 ~ 99 station number of controller.
2) Command 1 – command = 0 ~ 99 command 1 number.
2) Command 2 – command = 0 ~ 99 command 2 number.
4) Save start address for Communication Server – Saving start address of Communication Server.
5) Read size – fixed to 1. ( reading data size = always 6 )
Read schedule example)
READ, 19, 22, 27, 0, 1,
READ, 20, 22, 27, 10, 1,
READ, 21, 22, 27, 20, 1,
Nano Ball System communication driver store the same data in WORD, DWORD, FLOAT, STRING memory, but the data format are different.
If you click the icon in protocol option part at <Figure 1>, you can see the dialog box such as <Figure 2>. you can also set read schedule by using this part.
<Figure 2> Example of Nano Ball System communication driver¡¯s Option dialog box |
You can set read schedule by using , , button and listbox of <Figure 2>.
Also, you can set delay time of write after and whether to check FCC for readed packet by using the part of 'Write after Sleep Time', 'Compare Frame Check Code(FCC)' shown in <Figure 2>.
<Figure 3> Example of Nano Ball System 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 'mode', 'time', etc by using 'write settings'.
Digital Write
Digital write and analog write have the same setting parameters except output value.
Analog Write
Analog write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION 0 ~ 99 station number of controller.
3) ADDRESS 0 ~ 99 command 1 number.
4) Extra1 0 ~ 99 command 2 number.
5) Extra2 don't care.
Write example 1)
PORT:0, station:19, ADDRESS:0023, Extra1: 23, Extra2 : 0
The setting parameter shown above is Number setting( 0 ~ 9999 ) example. ( command 1 = 23, command 2 = 23 )
Write example 2)
PORT:0, station:19, ADDRESS:0021, Extra1: 21, Extra2 : 0, Output value = 200
The setting parameter shown above is Start command setting( setting value = 200 ) example. ( command 1 = 21, command 2 = 21 )
Write example 3)
PORT:0, station:19, ADDRESS:0027, Extra1: 27, Extra2 : 0
The setting parameter shown above is Time value setting( 0 ~ 9999 ) example. ( command 1 = 27, command 2 = 27 )
Write example 4)
PORT:0, station:19, ADDRESS:0024, Extra1: 24, Extra2 : 0
The setting parameter shown above is Ball value setting( 0 ~ 9999 ) example. ( command 1 = 24, command 2 = 24 )