TURCK I nc. 3000 Campus Dr i ve Mi nneapol i s, MN 55441 Appl i cat i on Suppor t : 1- 800- 544- 7769 Fax: ( 763) 553- 0708 www. t ur ck. com 3
1 Introduction
1. 1 About t hi s St ar t up Gui de Thi s st ar t - up gui de cont ai ns st ep by st ep i nf or mat i on t o begi n usi ng t he RFI D- S sl i ce. Thi s sl i ce can be used wi t h any PLC t o i nt er f ace wi t h t he RFI D syst emvi a st andar d pr ocess dat a. Thi s gui de assumes t hat t he r eader i s f ami l i ar wi t h t hei r par t i cul ar PLC and Net wor k syst emi n r egar ds t o r eadi ng i nput s and wr i t i ng out put s.
RFI D- S St ar t up Gui de
TURCK I nc. 3000 Campus Dr i ve Mi nneapol i s, MN 55441 Appl i cat i on Suppor t : 1- 800- 544- 7769 Fax: ( 763) 553- 0708 www. t ur ck. com 4 2 Data Map The dat a map of t he RFI D- S modul e i s as f ol l ows. Thi s i s j ust t he sl i ce dat a, de- pendi ng on t he net wor k used, t her e may be addi t i onal dat a f or t he gat eway or ot her sl i ces t hat wi l l come bef or e t he RFI D- S dat a. To gener at e t he compl et e node' s dat a map use t he St at i on Repor t f unct i on i n I O Assi st ant 3.
Done Sl i ce i s r eady t o r ecei ve command. Thi s bi t wi l l be of f unt i l pr evi ous command bi t i s t ur ned of f .
Busy Sl i ce i s cur r ent l y pr ocessi ng command. Thi s i s nor mal l y on when t r anscei ver i s wai t i ng f or a t ag t o be pr esent ed.
Er r or Sl i ce has encount er ed an er r or dur i ng l ast command. Ref er t o Er r or _Cat and Er r or _Desc f or det ai l s.
Tr ans_Conn Tr anscei ver i s cor r ect l y connect ed and communi cat i ng wi t h t he sl i ce.
Tr ans_On Tr anscei ver has been t ur ned on by sl i ce.
TP Tag pr esent ; Tag i s pr esent i n t r anscei ver f i el d. LED on t r anscei ver wi l l bl i nk r api dl y.
TFR Tag Ful l y Read; Tag has been pr esent i n t r anscei ver f i el d l ong enough so t hat ent i r e t ag memor y has been st or ed i n buf f er . Thi s bi t does not need t o be on t o i ndi cat e a command has been compl et ed.
Er r or _Cat and Er r or _Desc These t wo byt es make up t he speci f i c er r or code. These i nput s ar e onl y val i d whi l e t he " Er r or " bi t i s on. Ref er t o sect i on 2. 1. 3 f or speci f i c descr i pt i ons of er r or codes.
Read Dat a Byt es Dat a r ead f r omt he t ag
RFI D- S St ar t up Gui de
TURCK I nc. 3000 Campus Dr i ve Mi nneapol i s, MN 55441 Appl i cat i on Suppor t : 1- 800- 544- 7769 Fax: ( 763) 553- 0708 www. t ur ck. com 5 2.1.2 Output Map
Tr anscei ver Tur ns on and of f t r anscei ver . Used onl y i f t wo t r anscei ver s ar e cl ose enough t o cr oss t al k. Ot her wi se t hi s bi t shoul d be set t o an " Al ways On" . I f t r anscei ver i s of f , LED wi l l bl i nk sl owl y ( def aul t ) , and be sol i d i f t r anscei ver i s on.
Next I f t ur ned on whi l e command i s pr ocessed, t he next command r un wi l l r e- qui r e a new t ag i d t o ent er t he f i el d.
Tag_I D Tur n on t o r ead t he Uni que I dent i f i er ( UI D) f r omt ag. These ar e al - ways uni que f or ever y t ag i n t he wor l d.
Read Tur n on t o r ead dat a f r oma t ag.
Wr i t e Tur n on t o wr i t e dat a t o a t ag.
Tag_I nf o Tur n on t o r ead i nf or mat i on about t ag i n f i el d, i ncl udi ng t ag manuf act ur er and memor y avai l abl e i n t ag. See sect i on 2. 1. 4 f or det ai l s.
Tr ans_I nf o Tur n on t o r ead i nf or mat i on about t r anscei ver connect ed t o t he channel . I t can r et ur n dat a such as t ype of t r anscei ver , har dwar e and sof t - war e r evi si ons. See sect i on 2. 1. 5 f or det ai l s.
Reset Tur ni ng t hi s on wi l l r eset any i n- pr ocess or queued commands.
Byt eCount These 3 bi t s r epr esent t he number of byt es t o Read or Wr i t e o 000 = 1 byt e o 001 = 2 byt es o 010 = 3 byt es o 011 = 4 byt es o 100 = 5 byt es o 101 = 6 byt es o 110 = 7 byt es o 111 = 8 byt es
Addr ess Addr ess on t he t ag t o r ead f r om/ wr i t e t o.
Wr i t e Dat a Byt es Dat a t o be wr i t t en t o t he t ag.
RFI D- S St ar t up Gui de
TURCK I nc. 3000 Campus Dr i ve Mi nneapol i s, MN 55441 Appl i cat i on Suppor t : 1- 800- 544- 7769 Fax: ( 763) 553- 0708 www. t ur ck. com 6
Thi s command i s i ni t i at ed on t he r i si ng edge of t he i nput bi t . The command i s exe- cut ed when a t ag i s pr esent i n t he ai r i nt er f ace. The command r et ur ns 8 byt es of i nf or mat i on t o t he " Read_Dat a" byt es.
Byt e 0: Number of Memor y bl ocks Byt e 1: Number of Byt es per bl ock Byt e 2: DSFI D Byt e 3: AFI Byt e 4: I CI D Byt es 5- 7: Al ways " 0"
RFI D- S St ar t up Gui de
TURCK I nc. 3000 Campus Dr i ve Mi nneapol i s, MN 55441 Appl i cat i on Suppor t : 1- 800- 544- 7769 Fax: ( 763) 553- 0708 www. t ur ck. com 7
2.1.5 Trans Info Command Details
Thi s command i s i ni t i at ed on t he r i si ng edge of t he i nput bi t . The command i s exe- cut ed i mmedi at el y. The command r et ur ns 8 byt es of i nf or mat i on t o t he " Read_Dat a" byt es, and t he cont ent i s dependent on t he val ue of " Addr ess" .
TURCK I nc. 3000 Campus Dr i ve Mi nneapol i s, MN 55441 Appl i cat i on Suppor t : 1- 800- 544- 7769 Fax: ( 763) 553- 0708 www. t ur ck. com 8
3 Typical RFID-S Application Steps
Thi s sect i on hi ghl i ght s t he basi c st eps r equi r ed t o use t he RFI D syst emwi t h t he RFI D- S sl i ce by demonst r at i ng how t o wr i t e t o a t ag or r ead f r oma t ag. For mor e det ai l on t he commands t hat can be r un wi t h t he RFI D- S sl i ce, see t he " RFI D- S User Gui de" .
1. Wi r e t r anscei ver t o RFI D- S.
BL67 and BL Compact BL20
RFI D- S St ar t up Gui de
TURCK I nc. 3000 Campus Dr i ve Mi nneapol i s, MN 55441 Appl i cat i on Suppor t : 1- 800- 544- 7769 Fax: ( 763) 553- 0708 www. t ur ck. com 9
2. Pr ovi de 24VDC t o U SYS and U L f or BL20 gat eways, V I and V O f or BL67 and BLCom- pact . The t r anscei ver s ar e power ed by U L and V O , so t hese must be power ed i n or der f or t he RFI D syst emt o wor k. 3. I f t r anscei ver i s wi r ed cor r ect l y, t he LED wi l l be bl i nki ng sl owl y and t he " Tr ans_Conn" i nput wi l l t ur n on. I f t he LED i s sol i d on, does not bl i nk when a t ag i s pr esent , and " Tr ans_Conn" does not t ur n on, t hen t he t wo dat a l i nes need t o be r ever sed. LED Location
RFI D- S St ar t up Gui de
TURCK I nc. 3000 Campus Dr i ve Mi nneapol i s, MN 55441 Appl i cat i on Suppor t : 1- 800- 544- 7769 Fax: ( 763) 553- 0708 www. t ur ck. com 10
4. Tur n on t he t r anscei ver by t ur ni ng on t he " Tr anscei ver " out put bi t .
5. The t r anscei ver LED wi l l be sol i d gr een and t he " Tr ans_On" bi t wi l l t ur n on. In Byte Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 n Done Busy Error Trans_Conn Trans_On TP TFR Reserved n+1 ErrorCode(LSB) n+2 ErrorCode(MSB) n+3 Reserved n+4 ReadDataByte1 n+11 ReadDataByte8
6. When a t ag i s i n t he f i el d, t he LED wi l l bl i nk r api dl y and t he " TP" bi t wi l l t ur n on i ndi cat i ng a t ag i s pr esent .
LED' s Bl i nk Rapi dl y
RFI D- S St ar t up Gui de
TURCK I nc. 3000 Campus Dr i ve Mi nneapol i s, MN 55441 Appl i cat i on Suppor t : 1- 800- 544- 7769 Fax: ( 763) 553- 0708 www. t ur ck. com 11
7. To r ead or wr i t e, f i l l i n t he " Byt eCount " bi t s t hat cor r espond wi t h t he num- ber of byt es you need t o r ead or be wr i t t en t o. Remember : 000 = 1 byt e 001 = 2 byt es 010 = 3 byt es 011 = 4 byt es 100 = 5 byt es 101 = 6 byt es 110 = 7 byt es 111 = 8 byt es
8. Fi l l i n t he " Addr ess" byt es wi t h t he memor y addr ess on t he t ag t o be r ead or wr i t t en t o.
9. Ver i f y t he " Done" bi t i s on, i ndi cat i ng t he RFI D i s r eady f or a command. I f i t i s not on, ver i f y t hat al l command bi t s ar e t ur ned of f .
10. To r ead, t ur n on t he " Read" bi t . To wr i t e, t ur n on t he " Wr i t e" bi t . Leave t hi s bi t on unt i l t he " Done" bi t t ur ns of f .
12. The " Busy" bi t t ur ns of f when t he command has compl et ed. I f t he Read/ Wr i t e bi t was t ur ned of f , t hen t he " Done" bi t wi l l be t ur ned on.