ACR120 Card Reader communication driver is the driver to communicate with ACR 120 Card Reader of Dot Origin Ltd. in U.K.
Note) ACR120 Card Reader communication driver support 'Binary' mode.
So, please set 'Binary' Mode at ACR 120 Card Reader equipment.(by bin or ...)
<Figure 1> is read setting example of ACR120 Card Reader communication driver.
<Figure 1> Read setting example of ACR120 Card Reader communication driver |
Device part of <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively.
Also input card key value : 000000000000h ~ FFFFFFFFFFFFh(default = FFFFFFFFFFFF) by using option part.
Note) Available communication speed of ACR120 Card Reader = 9600, 19200, 38400, 115200,
parity bit, data bit, stop bit = fixed to 0, 8, 1.
ACR120 Card Reader communication driver¡¯s read schedule
Read schedule setting parameters are as follows:
1) Equip ID – ID = 0 ~ 255.(Default = 1)
2) Read Command – r = Read Block 0 ~ 2), rv = Read Block Value 0 ~ 2. (Refer to <Table 1>)
3) Read Sector – Sector = 0 ~ 39.
Sector = 0 ~ 3 or 0 ~ 15, 0 ~ 39 (by card type).
4) Save Start Address for Communication Server – save start address.
5) Read Size – fixed to 1. (Refer to <Table 1>)
Read schedule example)
READ, 1, rv, 0, 0, 1,
READ, 1, rv, 1, 20, 1,
<Table 1> is a description of read commands and save contents of ACR120 Card Reader communication driver.
Read Command | Content | Store Values | Remarks |
r |
Read Block 0 ~ 2 | Start Addr + 0 : card presence (1 = presence, 0 = no presence) Start Addr + 1 : card number (double word data) Start Addr + 2 : log in status (1 = log in) Start Addr + 3 : 1st double word data of Block 0 Start Addr + 4 : 2nd double word data of Block 0 Start Addr + 5 : 3rd double word data of Block 0 Start Addr + 6 : 4th double word data of Block 0 Start Addr + 7 : 1st double word data of Block 1 Start Addr + 8 : 2nd double word data of Block 1 Start Addr + 9 : 3rd double word data of Block 1 Start Addr + 10 : 4th double word data of Block 1 Start Addr + 11 : 1st double word data of Block 2 Start Addr + 12 : 2nd double word data of Block 2 Start Addr + 13 : 3rd double word data of Block 2 Start Addr + 14 : 4th double word data of Block 2 |
If don;t presence card ACR 120 Card Reader, Start Addr + 0 ~ 2 = 0
Start Addr + 3, Start Addr + 7, Start Addr + 11 save Block's 16 byte string data to 'STRING' memory of Communication Server. (only ASCII data) |
rv |
Read Block Value 0 ~ 2 | Start Addr + 0 : card presence (1 = presence, 0 = no presence) Start Addr + 1 : card number (double word data) Start Addr + 2 : log in status (1 = log in) Start Addr + 3 : double word value of Block 0 Start Addr + 4 : double word value of Block 1 Start Addr + 5 : double word value of Block 2 |
When use 'Block Value' |
<Table 1> Read commands and save contents of ACR120 Card Reader communication driver |
ACR120 Card Reader communication driver store the same data in WORD, DWORD, FLOAT, STRING memory, but the data format are different.
Note) Because of Manufacturer Block at Block 0 can't write.
Also each 4th Block is key value saving area, so can not read or write.
If don;t presence card ACR 120 Card Reader, Start Addr + 0 ~ 2 are saved '0 value'.
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 ACR120 Card Reader communication driver¡¯s Option dialogue box |
¡®Login Key¡¯ area at <Figure 2>, you can input 'Card key value'(000000000000h ~ FFFFFFFFFFFFh).
You can set read schedule by using , , button and listbox of <Figure 2>.
<Figure 3> Example of ACR120 Card Reader 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> is shown.
You can write card data to ACR 120 Card Reader by writing settings.
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 Equipment ID = 0 ~ 255.(Default = 1)
3) Address Sector = 0 ~ 39(10 digit).
Sector = 0 ~ 3 or 0 ~ 15, 0 ~ 39 (by card type).
4) Extra1 Write command = r, rv, w0, w1, w2, wv0, wv1, wv2, +0, +1, +2, -0, -1, -2, pw, pf, pon, poff, x, bin. (Refer To<Table 2>)
5) Extra2 Write command : r, rv = save start address of read data.
Write command : w0, w1, w2 = 0 ~ 3 writing pos(double word, 4 byte).
<Table 2> is a description of write commands and range of the write value for ACR120 Card Reader communication driver.
Write Command |
Content |
Remarks(Output Value) |
r | Read Block 0 ~ 2 | Refer to <Table 1> |
rv | Read Block Value 0 ~ 2 | |
w0, w1, w2 | Write Block 0 ~ 2 (double word) | Extra2 = 0 ~ 3 writing pos(double word) |
wv0, wv1, wv2 | Write Block Value 0 ~ 2 (double word) | |
+0, +1, +2 | add of Block Value 0 ~ 2 | When set by Block Value |
-0, -1, -2 | subtraction of Block Value 0 ~ 2 | |
pw | Write of User Port | 0 = LED : off, Buzzer : off 1 = LED : on, Buzzer: off 2 = LED : off, Buzzer: on 3 = LED : on, Buzzer: on |
pf | Write of Flip Port (Firmware version = 24S or higher) |
0 = No Action 1 = 2 Sec LED on 2 = 0.8 Sec Buzzer on 3 = 2 Sec LED on, 0.8 Sec Buzzer on |
pon | Antenna power ON of Card Reader |
|
poff | Antenna power OFF of Card Reader |
|
x | Reset of ACR120 Card Reader |
|
bin | Chaned to Binary mode | When set ASCII mode |
<Table 2> Write commands and range of the write value for ACR120 Card Reader communication driver |
Write example 1)
PORT : 0 STATION : 1 ADDRESS : 0001 EXTRA1 : w0 EXTRA2 : 0
The setting parameter shown above is an example of write 'Block 0', Sector 1, 1st double word data for ACR120 Card Reade connected with 0 port, 1 equipment ID.
(Write Command of 'w0, w1, w2' read 16 byte data. After write double word data.)
Write example 2)
PORT : 0 STATION : 1 ADDRESS : 0001 EXTRA1 : w0 EXTRA2 : 2
The setting parameter shown above is an example of write 'Block 0', Sector 1, 3rd double word data for ACR120 Card Reade connected with 0 port, 1 equipment ID.
(Write Command of 'w0, w1, w2' read 16 byte data. After write double word data.)
Write example 3)
PORT : 0 STATION : 1 ADDRESS : 0003 EXTRA1 : w2 EXTRA2 : 3
The setting parameter shown above is an example of write 'Block 2', Sector 3, 4th double word data for ACR120 Card Reade connected with 0 port, 1 equipment ID.
(Write Command of 'w0, w1, w2' read 16 byte data. After write double word data.)
Write example 4)
PORT : 0 STATION : 1 ADDRESS : 0002 EXTRA1 : wv0 EXTRA2 :
The setting parameter shown above is an example of 'Block Value' setting of 'Block 0', Sector 2 for ACR120 Card Reade connected with 0 port, 1 equipment ID.
Write example 5)
PORT : 0 STATION : 1 ADDRESS : 0002 EXTRA1 : wv1 EXTRA2 :
The setting parameter shown above is an example of 'Block Value' setting of 'Block 1', Sector 2 for ACR120 Card Reade connected with 0 port, 1 equipment ID.
Write example 6)
PORT : 0 STATION : 1 ADDRESS : 0000 EXTRA1 : pw EXTRA2 :
The setting parameter shown above is an example of 'Write of User Port'(LED/Buzzer setting, Refer to <Table 2>) for ACR120 Card Reade connected with 0 port, 1 equipment ID.
<Figure 4> shows the appearance of ACR120 Card Reader equipment.
<Figure 4> Appearance of ACR120 Card Reader equipment