You are on page 1of 35

Configuring the CMF500 EtherNet/IP Communications Interface

Page 1 7/28/2014
Table of Contents
TABLE F CNTENT! """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" #
P$EFACE% """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" &
E'(IPMENT (!E)% """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" &
!FT*A$E $E'(I$E)% """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" &
+"CNFI,($E T-E CMF500 ET-E$NET/IP FIEL)B(! ,ATE*A. """"""""""""""""""""""""""""""""""" &
#"CL/ !ET(P/ !IC0 BA$C)E !CANNE$ !ET(P """""""""""""""""""""""""""""""""""""""""""""""""""""""""" +1
1" """""""""""" C$EATIN, A 2BA$EBNE!3 PLC P$,$AM T $ECEI/E )ATA F$M T-E
CL/&10 BA$C)E !CANNE$" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +4
&" " C$EATIN, A BA$EBNE! PLC P$,$AM T !EN) AN) $ECEI/E )ATA T AN)
F$M A CL/&10 BA$C)E !CANNE$" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" #+
APPEN)I5 A 6 LI!TIN, F PLC $(TINE! """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" #4
Page 2 7/28/2014
TABLE F FI,($E!
Fgure 1 - Network Interface Card propertes (programmng PC)..................................5
Fgure 2 - Congurng the PCs Network Interface Card IP address..............................6
Fgure 3 - Png the CMF500 gateway to conrm proper connecton.............................6
Fgure 4 - Homepage of the CMF500 as seen usng Internet Exporer.......................7
Fgure 5 - Software revson eve /Reboot button...............................................................8
Fgure 6 - Factory Settngs Checkbox and Reboot conrmaton....................................8
Fgure 7 - Gateway resettng (takes about 30 seconds before t returns to the
homepage).................................................................................................................................9
Fgure 8 - Sera Devce Conguraton page nk..................................................................9
Fgure 9 - Port 1 conguraton nk..........................................................................................10
Fgure 10 - Sera Port settngs screen of the CMF500 gateway must match Host
Port settngs of the CLV4xx barcode scanner..............................................................10
Fgure 11 - CMF500 Sera Port Settngs................................................................................11
Fgure 12 - Sera Packet ID Settngs.......................................................................................11
Fgure 13 - PLC Specc Settngs.............................................................................................12
Fgure 14 - EtherNet/IP Settngs...............................................................................................12
Fgure 15 - CLV430 Defaut Host Interf. Screen Sera Comm. Settngs...................14
Fgure 16 - To connect to the CLV barcode scanner through the CMF500 va
TCP/IP for congurng the scanner usng CLV setup, change two settngs n
the "Appcaton TCP Connecton Conguraton" secton........................................14
Fgure 17 - Connected to scanner over EtherNet TCP/IP.................................................15
Fgure 18 - Trgger Parameters Screen..................................................................................16
Fgure 19 - CLV Setup Termna Screen <F7> Trgger On, <F8> Trgger Oh...........16
Fgure 20 - Good barcode data. Read trggered by sera command.........................17
Fgure 21 - Dr nto the Controer Tag Database and copy a tags nto your new
pro|ect.........................................................................................................................................18
Fgure 22 - Com1_RxData s the tag where the raw barcode data comng from
the CMF500 w be wrtten nto the PLC.......................................................................18
Fgure 23 - Receved data tag Com1_RxData expanded to vew the contents of
the ndvdua eements.......................................................................................................19
Fgure 24 - Two rungs of ogc used to manuay cear the receved data regsters
n the PLC..................................................................................................................................19
Fgure 25 - Ths screen shot shows the resut of trggerng the scanner but not
readng a barcode, the error message "NO READ" s dspayed startng at
eement (4)...............................................................................................................................20
Fgure 26 - A good 20 character barcode read. Note that the ncomng data
aways starts at eement (4) of the tag.........................................................................21
Fgure 27 - Copy the User Dened Data Type and the Controer Tags.....................22
Fgure 28 - Cut-and-paste the rungs of ogc......................................................................22
Fgure 29 - Check conguraton of MSG nstructon.........................................................23
Fgure 30 - Command transmt tag TxDataStruct_1..........................................................24
Page 3 7/28/2014
Fgure 31 - Browse to the EtherNet modue and/or manuay enter the
communcatons path...........................................................................................................24
Fgure 32 - Scanner command strngs are congured and stored n STRING tags
.......................................................................................................................................................25
Fgure 33 - The STRING vaue for the End_of_Reading_Gate command strng.......25
Page 4 7/28/2014
Preface%
Ths nstructon s meant to ad those who are tryng to congure EtherNet/IP
communcatons between a SICK CLV4xx barcode scanner and an Aen
Bradey/Rockwe Automaton Logx Famy of Programmabe Automaton
Controers.
E7ui8ment (se9%
PC runnng Wndows XP and functonng EtherNet Network Interface Card
(NIC)
HTML browser (e.g. Internet Exporer)
4-port EtherNet Hub
CMF500-1000 EtherNet/IP gateway
P/N 1041179 ; nstaed n CDM420 connecton box wth power suppy
connected
or
P/N 7122797 ; standaone EtherNet/IP communcatons modue wth power
suppy connected
CDM420 Connecton Box for barcode scanner connectvty
CLV430 barcode scanner connected to CDM420 usng hgh densty 15-pn
connector
Aen Bradey Contro Logx PLC wth 1756-ENBT communcatons modue or
Aen Bradey Compact Logx PLC wth embedded EtherNet/IP communcatons
port
!oft:are $e7uire9%
CLV Setup v4.3 or ater
Web browser
RSLogx 5000 v16
EtherNetIP_RxData.ACD
EtherNetIP_TxRxData.ACD
Physcay connect the PC, CMF500, and PLC to the EtherNet Hub wth standard
EtherNet cabng usng R|45 connectors. Appy power to a three. NOTE:
congure the PLC EtherNet /IP port wth an IP address of 192.168.250.1 (ths w
be used ater).
+" Configure the CMF500 EtherNet/IP Fiel9bus ,ate:a;
1.1. Congure the IP address of the gateway and the PC
1.1.1. The factory defaut IP address of the CMF500 s:192.168.250.250.
Page 5 7/28/2014
1.1.2. Check the programmng PCs network nterface card IP address and
subnet mask (Fgure 1). Change the IP address of the NIC to "xed
address" and enter 192.168.250.10 for the address of the PC. Change
the subnet mask to 255.255.255.0. Ths w put the PC on the same
oca network as the CMF500 (see Fgure 2). Leave the defaut gateway
settng bank. Cck OK.
1.1.3. Once the NIC IP address settngs are saved, open up a termna
wndow and png the CMF500 gateway to test for proper connecton
(see Fgure 3).
Page 6 7/28/2014
1.1.4. To summarze: at ths tme the IP addressng shoud be as foows:
CMF500 - 192.168.250.20
PC - 192.168.250.10
PLC - 192.168.250.1 (need to congure per Aen Bradey)
Subnet mask (for a) 255.255.255.0
Fgure 1 - Network Interface Card propertes (programmng PC).
Page 7 7/28/2014
Fgure 2 - Congurng the PCs Network Interface Card IP address.
Fgure 3 - Png the CMF500 gateway to conrm proper connecton.
Page 8 7/28/2014
1.1.1. If the png fas, doube check cabng, connectons, and a the
addressng competed n steps 1.2 - 1.3. Once a connecton to the
gateway s made (successfu Png), open a browser such as Internet
Exporer and type n the defaut IP address (e.g.:192.168.250.250) of
the gateway to get to the homepage of the devce (see Fgure 4).
Fgure 4 - Homepage of the CMF500 as seen usng Internet Exporer.
1.1.2. Back at the homepage of the gateway check to be sure that the
Software s "EtherNet/IP 3.01" or ater (Fgure 5).
1.1.3. Cck on the "Reboot" button (see Fgure 5).
1.1.4. Check the box to "Set confguration for all ports to factory default
settings" (Fgure 6).
1.1.5. Cck on "Yes: Reboot" button (Fgure 6). It takes about 30 seconds to
compete the reboot process. When compete, the homepage shoud
reappear.
Page 9 7/28/2014
Fgure 5 - Software revson eve /Reboot button.
Fgure 6 - Factory Settngs Checkbox and Reboot conrmaton.
Page 10 7/28/2014
Fgure 7 - Gateway resettng (takes about 30 seconds before t returns to the
homepage).
1.2. Congure the Sera Devce Settngs
1.2.1. Next, back at the home screen, cck on the "Sera Devce
Conguraton" nk (Fgure 8).
Fgure 8 - Sera Devce Conguraton page nk.
Page 11 7/28/2014
1.2.2. Once the Sera Devce Conguraton page comes up, cck on the
"Port 1" nk to change the settngs of the sera port (Fgure 9). The
"Edit Serial Port 1 Confguration screen shoud come up.
Fgure 9 - Port 1 conguraton nk.
1.2.3. Once the "Edt Sera Port 1 Conguraton" screen comes up, check
to make sure that the "Sera Conguraton" settngs dspayed match
those that exst n the scanner by comparng them to the CLV Setup
"Host Interf" screen shown n Fgure 15
Page 12 7/28/2014
Fgure 10 - Sera Port settngs screen of the CMF500 gateway must match Host
Port settngs of the CLV4xx barcode scanner.
1.2.4. Change the settngs to match those shown beow for the Sera
Devce Conguraton (Fgure 11). These settngs shoud match the
CLV4xx scanner host port sera communcatons settngs.
Sera Devce Conguraton
Server Configuration Home
EtherNet Device Configuration
Communication Statistics
PLC Interface Diagnostics
Port 1
Serial Port Settings
Mode: RS-22
!aud: "#$%%
Parit&: none
Data !its: '
Sto( !its: )
*+o,: none
D-R: off
R. -imeout !et,een Pac/ets: 200
Fgure 11 - CMF500 Sera Port Settngs
1.2.5. Next, change the Sera Packet settngs to match Fgure 12.
Serial Packet ID Settings
S-0 R. Detect: one 1&te
Page 13 7/28/2014
S-0 R.: 2
E-0 R. Detect: one 1&te
E-0 R.:
Discard R. P/ts 2ith Errors: yes
Fgure 12 - Sera Packet ID Settngs
1.2.6. Change the PLC specc settngs to match those shown n Fgure 13.
No changes to the Application Specifc Settings secton are
necessary uness t s desred to communcate va EtherNet TCP/IP to
the scanner usng CLV setup software.
PLC Specific Settings
S-0 -. 3((end: one 1&te
S-0 -.: 2
E-0 -. 3((end: one 1&te
E-0 -.:
Stri( R. S-04E-0 Chars: yes
Fgure 13 - PLC Specc Settngs
1.2.7. Change the EtherNet/IP Settngs to match those shown n Fgure 14.
No further changes to the factory defaut settngs are necessary.
EtherNet/IP Settings
R. 5-o PLC6 -ransfer Method: 2rite to -ag4*i+e
PLC IP 3ddress: )728)$'82"%8)%
PLC Contro++er S+ot Num1er: 0 5i8e8 %6 N9-E: Must
agree ,ith the actua+ (h&sica+ setu( of &our s&stem8
Ma.imum PLC :(date Rate 5msec6: 40
R. Produced Data -ag4*i+e Name: Com);R.Data
Fgure 14 - EtherNet/IP Settngs
1.2.8. The PLC IP Address n the "EtherNet/IP Settngs" secton (Fgure 14)
shoud match the IP address of the 1756-ENBT EtherNet IP brdge
resdng n the Aen Bradey ControLogx backpane or the EtherNet
port of the CompactLogx processor.
1.2.9. The "PLC Controer Sot Number" s the sot number that the
ControLogx or CompactLogx processor occupes.
1.2.10. The "Rx (To PLC) Produced Data Tag/Fe Name:" s a tag
created n the PLC controer tag database for recevng the data
comng from the gateway/scanner(s). In ths test case, the name
"Com1_RxData" was used for the SINT array tag.
Page 14 7/28/2014
1.2.11. Once a the settngs match those shown above, cck on the
"Submt" button at the bottom of the "Edit Serial Port 1 Confguration "
page and then "Reboot."
After cckng on the "Reboot" button at the bottom of the page, you are nshed
wth the CMF500 settngs (NOTE: be sure to Uncheck the "Set confguration for
all ports to factory default settings" box before rebootng!). The gateway w
reboot. Wat for the homepage to reappear.
When the homepage of the gateway comes back up (f t doesnt come back up
after about 20 seconds, then |ust enter the IP address of the devce back nto the
address ed of the browser to get back to the homepage), doube check the
settngs by gong to the "Serial Deice Confguration" page and scrong down.
Ths s |ust to make sure that the ntended settngs were a saved to the
gateway propery. No other settngs need to be changed uness t s desred to
connect to the scanner va an EtherNet TCP/IP connection (for conguraton and
programmng of the barcode scanner wth a PC usng the CLV setup software
congured for TCP/IP communcatons).
#" CL/ !etu8/ !IC0 barco9e scanner setu8
In ths nstructon a CLV430 s congured for communcatng over the CMF500
EtherNet/IP communcatons gateway congured n Part 1.
2.1. Connect the 15 pn connector on the end of the scanner cabe to the
15 pn scanner port on the CDM420.
2.2. To congure the scanner through a sera communcatons
connecton, connect to the CLV430 scanner from the sera port of the PC
through the 9-pn D-sub Aux port provded on the CDM420 wth the sera
programmng cabe (p/n 7021851 straght-thru sera cabe). NOTE: must
be connected to the 9-pn externa Aux. port on the sde of the CDM420 or
through a nu modem connecton drecty to the 9-pn Aux. port nsde the
CDM420 on the man crcut board.
2.3. Connect a 9-pn straght-thru sera cabe (p/n 7021851) between the
Host port of the CDM420 and the 9-pn sera port on the CMF500.
2.4. Power up the scanner by turnng on the swtch S1 n the CDM420.
2.5. Start up the CLV Setup software. Estabsh a sera connecton and
upoad the scanner parameters.
Page 15 7/28/2014
2.6. In CLV Setup go to the "!ost "nterf." Screen and check the settngs.
They shoud match those of the "Port 1 Sera Port Settngs" of the
CMF500 (Secton 1.2.4).
Fgure 15 - CLV430 Defaut Host Interf. Screen Sera Comm. Settngs
2.7. If you woud prefer to connect to the scanner usng TCP/IP over your
EtherNet network, nstead of usng a sera connecton, go back to the
homepage of the CMF500. Cck on the "Serial Deice Confguration" nk
agan. When the Serial Deice Confguration screen comes up, cck on
the "Port 1" nk. Scro down to the secton entted "Application #CP
Connection Confguration" settngs. Check the box to enabe and check
the box to Lsten (NOTE: Lsten port = 8200). Submt the new settngs.
Page 16 7/28/2014

Enable: = yes
Listen: = yes
Fgure 16 - To connect to the CLV barcode scanner through the CMF500 va
TCP/IP for congurng the scanner usng CLV setup, change two settngs n the
"Appcaton TCP Connecton Conguraton" secton.
2.8. In the CLV setup software, go to the "$ptions" seecton on the menu
bar. Seect ""nterface". Cck on the rada button next to "#CP%"P". Type n
the IP address of the CMF500 and port 8200. Cck on OK and the software
shoud connect va TCP/IP. You may now upoad and downoad to the
scanner |ust as f you had estabshed a sera connecton nstead.
Fgure 17 - Connected to scanner over EtherNet TCP/IP
Page 17 7/28/2014
2.9. For new scanners comng out of the box no changes need to be
made to the factory defaut settngs. NOTE: the defaut settng for
trggerng the scanner assumes that a photoeye wth a pnp output s
connected to pns 37,38,39 of the CDM420. If no photoeye s connected,
then go to the "Reading #rigger Para&eters" screen and seect "Serial
"nterface" to contro the trggerng va software. If, on the other hand, the
pan s to utze a photoeye for trggerng, now mght be a convenent
tme to wre t n.
Fgure 18 - Trgger Parameters Screen
2.10. To trgger the scanner from wthn CLV Setup (software contro/no
photoeye): open up a termna screen from nsde CLV Setup. Once the
screen s up, the scanner aser shoud turn on when the <F7> button s
pushed. Turnng the aser oh by pushng <F8> ends the readng gate and
the data read by the scanner s sent out the host port of the scanner
(congured earer).
2.11. You are nshed congurng the scanner for testng the EtherNet/IP
communcatons.
Page 18 7/28/2014
Fgure 19 - CLV Setup Termna Screen <F7> Trgger On, <F8> Trgger Oh
2.12. Check that the scanner s functonng propery by trggerng the
scanner (ether by sera command or by photoeye) wth the CLV setup
termna screen nterface. When the scanner s trggered, the aser shoud
turn on. Once the trggerng s stopped, data s sent and that data shoud
appear on the termna screen. Next we w attempt to receve data nto
the PLC tag database.
Fgure 20 - Good barcode data. Read trggered by sera command
Page 19 7/28/2014
1" Creating a 2barebones3 PLC 8rogram to recei<e 9ata from the CL/&10
barco9e scanner"
For ths secton, you w need the RSLogx 5000 pro|ect e -
EtherNetIP_RxData.ACD. Ths e shoud be downoaded from the
SICKusa.com Web ste.
3.1. Cose a software that s runnng except for RSLogx 5000.
3.2. Create a new RSLogx 5000 pro|ect for the specc processor and
backpane that you are usng (from the Compact Logx or Contro Logx
famy of controers).
3.3. Congure the PLCs EtherNet /IP modue (e.g. 1756-ENBT) wth the IP
address assgned n step1.2.7.
3.4. Congure the PLC hardware to correspond to your physca setup n
the I/O conguraton of the new RSLogx 5000 pro|ect. Doube check for
agreement wth settngs speced n step 1.2.7.
3.5. Whe keepng the new RSLogx pro|ect you created open (dont
forget to save your work), aunch another nstance of RSLogx 5000 and
open the e EtherNetIP_RxData.ACD that you downoaded from the
SICK Web ste.
3.6. Dr nto the Controer Tag Database (Edt Tab). Cut and paste a of
these tags (Fgure 21) nto the Tag Database of the new pro|ect that you
created.
Page 20 7/28/2014
Fgure 21 - Dr nto the Controer Tag Database and copy a tags nto your new
pro|ect
Fgure 22 - Com1_RxData s the tag where the raw barcode data comng from
the CMF500 w be wrtten nto the PLC
Page 21 7/28/2014
Fgure 23 - Receved data tag Com1_RxData expanded to vew the contents of
the ndvdua eements.
3.7. Open the Man Routne of the EtherNetIP_RxData.ACD pro|ect and
cut and paste the two rungs of ogc nto the routne. These rungs are ony
used to manuay cear the receved data regsters.
Fgure 24 - Two rungs of ogc used to manuay cear the receved data regsters
n the PLC
Page 22 7/28/2014
3.8. There s actuay no programmng of the PLC requred to transfer
ncomng data nto the tag. As mentoned earer, the ogc added to the
Man Routne was |ust to aow manua cearng of the receved data
regsters. Ths makes t easer to conrm that fresh data has arrved for
testng purposes. So, ets move on and check to make sure that
everythng s workng propery. Downoad ths "skeeton" pro|ect nto the
PLC.
3.9. Once the pro|ect s downoaded to the controer put the controer
nto Run mode and be sure that the barcode scanner, CMF500, PLC, and
PC are a powered up and communcatng on the network. Png each of
the devces (CMF500 and the PLC) from the PC through the EtherNet hub
to be sure your network s congured, wred, and communcatng.
3.10. Next, trgger the scanner and check and see f data popuated the
tag eements begnnng at eement (4). Bytes 0 and 1 gve the "Produced
data sequence number." Ths s bascay a counter that can be used to
conrm that new data has arrved. Bytes 2 and 3 specfy the data ength
n bytes. See Fgure 25 and 26.
Fgure 25 - Ths screen shot shows the resut of trggerng the scanner but not
readng a barcode, the error message "NO READ" s dspayed startng at
eement (4).
Page 23 7/28/2014
Fgure 26 - A good 20 character barcode read. Note that the ncomng data
aways starts at eement (4) of the tag.
&" Creating a barebones PLC 8rogram to !EN) an9 $ECEI/E 9ata to an9
from a CL/&10 barco9e scanner"
Sometmes t s desrabe to congure/contro the scanner from the PLC. In order
to do ths, you must send contro and conguraton command strngs to the
scanner usng a MSG nstructon n the PLC. Ths coud be usefu, for exampe, to
congure the scanner to ook for a specc barcode or matchcode. For
demonstraton purposes we w deveop a sma PLC program that w send two
commands to the scanner Turn ON (code = "22" ASCII) and Turn OFF (code =
"23" ASCII). The process of sendng command strngs (strngs of structured
apha-numerc characters) to the scanner s smar for a command strngs. The
same MSG nstructon s used, but the content of the command strng changes
as necessary to execute dherent functons. A stng of the CLV command strngs
and ther data structure s avaabe on the Web.
4.1. Create another new RSLogx pro|ect, for your hardware patform. Gve t
a name. For the purposes of ths document we w use the name
"EtherNetIP_TxRxDataCopy." Keep ths pro|ect open. You w cut-and-
paste nto ths pro|ect from the e EtherNetIP_TxRxData.ACD.
4.2. Open up the RSLogx e EtherNetIP_TxRxData.ACD downoaded
from the SICKUSA Web ste. Dr nto the pro|ect tree and copy the User
Dened Data Structure - TxDataStruct . Paste ths User Dened Data Type
Page 24 7/28/2014
nto the User Dened Data Type secton of the pro|ect tree for the newy
created pro|ect.
4.3. Go back to the pro|ect EtherNetIP_TxRxData.ACD. Dr nto the
Controer Tags database. Cck on the Edt Tags tab and seect a the tags.
Copy-and-paste a these tags nto the new pro|ect that you created -
EtherNetIP_TxRxDataCopy.
Fgure 27 - Copy the User Dened Data Type and the Controer Tags
4.4. Open up the Man Routne n EtherNetIP_TxRxData.ACD. Seect a
the rungs of ogc and cut-and-paste them a nto the new pro|ect
EtherNetIP_TxRxDataCopy.ACD.
Page 25 7/28/2014
Fgure 28 - Cut-and-paste the rungs of ogc.
4.5. Once the ogc has been pasted nto the new pro|ect you w need to
dr nto the MSG nstructon on rung 7. Cck on the epses and doube
check that the settngs agree wth those of Fgure 29.
Fgure 29 - Check conguraton of MSG nstructon
Page 26 7/28/2014
4.5.1. The Source Length vaue s ad|ustabe dependng upon the number
of bytes that need to be transmtted for a partcuar command strng.
4.5.2. The tag named "#'DataStruct_1" s the memory space that w
contan the command that shoud be sent to the barcode scanner.
Even though there mght be severa dherent commands that w be
sent to the scanner (at dherent tmes), the #'DataStruct_1 must
contan the command that shoud be transmtted durng the next
schedued correspondng transmsson event.
Fgure 30 - Command transmt tag TxDataStruct_1
4.6. Cck on the Communcaton tab and n the communcatons path
ed by browsng to the EtherNet modue (shown as sckENBT n Fgure 31).
Page 27 7/28/2014
Fgure 31 - Browse to the EtherNet modue and/or manuay enter the
communcatons path.
4.7. Enter the remanng characters to compete the communcatons path.
The ",2," s needed after the oca EtherNet modue name (sckENBT). Foow
the ",2," wth the IP address of the CMF500 modue as shown beow n Fgure
30. In the end, the path shoud be comprsed as "localEt(er)et"P&odule*+*
"P address of C,-.//."
4.. For each command that s to be sent to the scanner a STRING tag
needs to be created and the command strng strng needs to be typed n for
storage unt ready to transmt. Four of these tags have aready been
created: () Readng_Mode, ()Start_of_readng_gate, ()
End_of_readng_gate, (v) Parameterze_Mode
Page 28 7/28/2014
Fgure 32 - Scanner command strngs are congured and stored n STRING tags
4.!. For each one of these tags the correspondng sera command strng,
consstng of two numerc ASCII characters, has aready been typed n:
Readng_Mode = 11
Parameterze_Mode = 13
Start_of_readng_gate = 21
End_of_readng_gate = 22
Fgure 33 - The ASCII vaue for the End_of_Reading_Gate command strng
4.1". The controer tag named t',SG (of type MESSAGE) was created for the
message nstructon bock n rung 7 (t shoud have been coped over wth
the cut-and-paste done earer).
Page 29 7/28/2014
4.11. Cck OK and then Save and Downoad the pro|ect nto the controer.Put
the controer nto Run mode.
4.12. Go to rung 0 of the PLC program and togge the 0aser$) tag on and
then oh. Ths shoud turn on the aser.
4.13. Go to rung 1 of the PLC program and togge the 0aser$-- tag on and
then oh. Ths shoud turn the aser oh and cause t to send data (trgger
congured for end of readng gate n CLV setup). Check for new receved
data n the Co&1_R'Data tag.
4.14. Go to rung 2 and togge the bt "clear#'DataStruct." Ths w cear the
contents of both #'DataStruct_1 and Co&1_R'Data. Repeat steps 4.12 and
4.13.
4.15. Now that you are famar wth the fundamenta budng bocks of the
communcatons nterface, you shoud be abe to utze them n the way that
you want for your partcuar appcaton.
Page 30 7/28/2014
APPEN)I5 A 6 LI!TIN, F PLC $(TINE!
Page 31 7/28/2014
Page 32 7/28/2014
Page 33 7/28/2014
Page 34 7/28/2014
Page 35 7/28/2014

You might also like