Home

FB Library Start-up Guide

image

Contents

1. YOCEELLE EOLA LITE thy Si a rs Programs eecrecvvcceoerietetty A eB NewProgram1 00 Symbols a PC System Setup screen pops up PLC Settings NewPLC1 File Options Help Startup CPU Settings Timings SIO Refresh Unit Settings E F z zi me ddressor alue Communications Sethngs Ea in i a Standard 9600 1 7 2 E Custom Baud Format Mode 38400 B N J Seral Gateway Start Code f Disable Set fo 0n00 Response Timeout fo 100 ms default S000rnz End Code Aeceved Bytes 256 f CRLF C SetEnd Code fox0000 ics 1H H CPU6 Offline Set items marked by red underscores to values as shown above Then connect PLC online and transmit the PC system setup Smart Sensor Setting None Use with the default factory setup 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N 2 4 Usage Example of FB Component When contact W0 00 is ON automatic teaching of Smart Sensor is started When W1 00 is ON automatic teaching is terminated After normal automatic teaching contact W1 02 is set to ON by 1 cycle and these HIGH and LOW threshold values are stored in DO D1 and D2 D3 FB Start Autoteaching FB Name _ZXLOO2_ StartAuto Teach File Name _ZXLOO2_ StartAuto Teach10 cxf Functional Overview Starts automatic teaching FB Stop Autoteaching FB Name _ZXLO03_StopAutoTeach File Name _
2. Example of setting Factory default setting is 01 Node Address 1 2 1 Controller Link Unit CJ1W CLK21 V1 2 1 4 Transmission Rate Setting Be gt Transmission rate 2M bps when SW1 1 and 1 2 to be set to OFF Nn Set the Transmission Rate for node 1 and 2 as described on the left As the factory default setting is 2M bps it is not need to be set 2 1 5 Terminal Resistance Setting Set the Terminal Resistance Switch gt ON using flat blade l ON lt screw driver The factory default setting is OFF 2 1 6 Mounting the Unit Configure CPU Uit Power Supply Unit and CLK Unit End Cover Mount the unit as shown above and use sliders on the top and bottom of the unit to fix the unit 2 1 7 Wiring Communication Cable Connect all shielded BDH E wires to the terminal BDL O board and on one SHLD end of the network directly ground it Use the specified communication cable twisted pair cable to connect the nodes by multi drop Terminal has a marking printed on it that indicates the signal wire Connect the cable so that signal wire and the marking should match Markings indicate the signal wires as shown below BDH communications data Black high BDL communications data White low 2 1 Controller Link Unit CJ1W CLK21 V1 2 1 8 Creating I O Table Turn all node PLCs ON connect the support tool then create the I O table By these procedure Control
3. Wrap the cable in one loop in the Ferrite Core 2 1 3 Connect a camera cable to 2DCR and a camera CAMERA Provide a power supply that satisfies the following conditions Output Current Source Voltage DC24V 10 15 Recommendation S82K 05024 Omron 2 10 2D Code Reader V530 R2000 R160 R150V3 2 2 Wiring the Communication Cable Connect the two dimensional code reader to the built in 232C port of the CPU unit Recommended Cable XW2Z 00T 2 m XW2Z 500T 5 m SD TXD RD RXD RS RTS CS CTS SG GND If you make your own cable its length must be 15 m or shorter 2 10 2D Code Reader V530 R2000 R160 R150V3 2 3 Communication Setup Configure the communication setting as shown below Communication Mode Communication Rate Data Bit Length Parity Check Stop Bit Start Code End Code 000D CR Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram E File Edit view Insert PLC Program Tools Window Help JO se R SR sBel2c aseslevi lasaeal eun aAR e X Piste lek ti uew o oe EL B e mi RAB AS e 2 PBB 2 ox PLC Setting Activate CX Programmer then click PC System Setup icon se NewProject NewPLC1 CS1H H Offline PPEELEELEELEELEELE EE Ly 2 OPPPEPPPEEEEPPEEEEETEE 5 A Programs 3 NewProgram1 00 PC System
4. E Write Set Point Writes the set point of the specified channel of a Controller anh List of The OMRON FB Library E5CN Serial Sie N U gt l z Temperature z E5C N FBL gt omronlib gt Controller gt rS j E5CN _E5xN004_ExecuteAT Starts autotuning for the specified channel of the specified Controller _E5xx201_ReadStatus Read Status Reads the status of the specified channel of a Controller _E5xx204 ReadCoolingMV Read Cooling MV Reads the cooling MV of the specified channel of a Controller _E5xx205_ReadHeatingMV Read Heating MV Reads the heating MV of the specified channel of a Controller _E5xx400_WriteVariable Write Variable Area Writes one element to the specified variable area _E5xx403_WriteSP Write Set Point Writes the set point of the specified channel of a Controller List of The OMRON FB Library x l Temperature E5ZN BL omroniib gt Controller gt E5zN E5ZN DRT _E5xxDRT200_ReadVariable Read Variable Area Reads one element from the variable area of a Controller on DeviceNet _E5xxDRT201_ReadStatus Rasa Satis Reads the status of the specified channel of a Controller connected Dnet to DeviceNet _E5xxDRT202_ReadPV Read Process walle Reads the process value of the specified channel of a Controller connected to DeviceNet E5 xDRT203 ReadSP Read Set Point Reads the set point of the specified channel of a Controller a z connected to DeviceNet E5xxDRT204_ ReadCoolingMV Read
5. Likb F BL English omronlibyRF ID V600 _V60x200_ReadDatal 0 cxt Ap aT SEG CS1VWv V600C11 600C12 and CJ1Vy Y600C114V 600C1 2 ID Sensor Units nodels Basit function Reads data from a Data Carner itic ins for Other This i cannot be executed ifthe ID Sensor Unit is busy The NG Flag will turn ON if an attempt is made Data is read from the specified area of the Data Carrer specified by the Unit No and Vendor No Up to 2048 bytes 1024 words can be read at one time The word designation for storing the data is specified using the area type and beginning word address For example for D1000 the area type is setto P_DM and the beginning word address is setto amp 1000 Connect EN to an OR between an upwardly differentiated condition for the start trigger and the BUSY output from the FB Always use an upwardly differentiated condition for EN Ifthe input variables are out of range the ENO Flag will turn OFF and the FB will not be processed Always specify a head number of amp 1 for One Head ID Sensor Units CS1VV YV600C11 and CJ1v 6000113 OMRON FB Library 3 4 File Catalog and Where to Access the OMRON FB Library 3 4 1 Catalog of OMRON FB Library files Type FA components PLC Motion control components Target components Temperature controller Smart sensor ID sensor Vision sensor 2 dimensions bar code reader CPU unit Memory card Special CPU IO unit Ethernet
6. Common Parameter Common parameters which define relay areas for data exchange between NC and CPU units must be configured to use your Position Control Unit Common Parameter Setup Set up the following values to arbitrary areas from DM01000 to DM01011 DM01000 OOHO Hex Output relay area setup for Assigns the start channel of output operations of each axis relay area for operations of each axis to Cl O100CH for operations of each axis DM01002 OOHO Hex Input relay area setup for Assigns the start channel of input operations of each axis relay area for operations of each axis to Cl O500CH for a E of each axis DM01004 0040 Hex Scan list Scan list setup axes 1 2 axes 1 2 Assigns a servo driver to axis 1 of the Position Control Unit DM01005 Set 0000 for Scan list setup axes 3 16 A all DM01011 Common Parameter Write to Position Control Unit Writes common parameter values configured in areas from DM01000 to DM01011 into the Position Control Unit Set information for data transfer in the Position Control Unit s relay area for common operation as shown below 1506CH 000C Hex Write Channel Count Number of write channels OC Hex 12 1507CH 0082 Hex Write Source Area Start channel of source data to be written 1508CH 03E8 Hex Write Source Channel SPNDIOON 1509CH 1838 Hex Write Destination Address Destination address to be written in the Position Control Unit 1838 Hex Start address of common parameters Da
7. for Warning 1 and Warning 2 modes the loop is disabled control operation is terminated and ERC LED cannot be turned on by the alarm Example To set Loop 3 and 4 to be disabled Set FFFF on D m 1 2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 2 1 9 Setup Data Read into Temperature Control Unit Special auxiliary relay restarts A50200 when turned ON and then OFF again Notice Setup data warning mode warning hysteresis range configured in step 4 are assigned to special I O unit assignment DM area as the initial setup data of the unit for 10 CHs based on the unit number Thus if you changed the setting value by following the step 4 you have to set special I O unit restart flag to OFF gt ON gt OFF based on the following table to restart the unit and read the setting value into the unit In this example unit number 0 is used thus A50200 must be set to OFF gt ON gt OFF Special I O Restart Bit Function A50200 Unit No O Restart Bit A50201 Unit No 1 Restart Bit Restarts the Unit when turned ON and A50215 Unit No 15 Restart Bit then OFF again A50300 Unit No 16 Restart Bit AS50714 Unit No 94 2 1 10 Configuring Control Data for Operation Write address constant on the DM as follows DM20010 0010 DM20011 0020 Configuration of control data for operation warning control frequency proportional band integral time are made through assigned data of special I O un
8. FB Name _Dnet204_GetONTime_PV File Name _Dnet204_GetONTime_PV10 cxf Functional Overview Reads the present Unit ON time conduction time from slaves connected to DeviceNet Program Example When contact A is set to ON current value of the unit conducting period of the specified slave of the node address 15 Is read out and outputted to DO As a result amp 10 is stored in DO Start trigger _Dnet204_GetONTime_PV T BOOL BOOL EN ENO INT BOOL Master Unit No MasterUnitNo INT Slave node address NodeNo Normal end Busy Flag Busy Flag Error end Present Unit ON Time FINS error code FINSError May be omitted WORD Explicit message error code ExplicitError May be omitted Variables Table INPUT Input Variables 1 ON FB started 0 OFF FB not started Master Unit No MasterUnitNo Specify the unit number of the DeviceNet Master Unit Slave node address NodeNo Specify the node address of the slave OUTPUT Output Variables ENO 1 ON FB processed normally May be omitted Busy Flag 0 OFF FB not processed or ended in an error Turns ON for one cycle when processing ends normally Error end Turns ON for one cycle when processing ends in an error Present Unit ON The present Unit ON time is output unit 0 1 h Time For example amp 20 would be output for 2 hours FINS error code The FINS error code is output A code of 0000 is May be omitted output for a normal end Refer
9. INVRT FBL gt lomronib gt INVERTER gt itl INVRT gt ind obit kes DNet INVRT Dnet _INVDRT200_ReadStatus ReadStatus Read Inverter Status Inverter Status Reads status information from the Inverter status information from the Inverter Reads status information from the Inverter seam a the setting of a parameter in an Inverter connected to ery _INVDRT201_ReadParameter Read Inverter Parameter g p DeviceNet INVDRT203 ReadAxisError Read ivernar Eror homai Reads the error information from an Inverter connected to in DeviceNet _INVDRT401_WriteParameter Write Inverter Parameter oo ora parameter iman Inverter conned List of The OMRON FB Library oO Laser Sensor ZXL BL omroniib gt LaserSensor gt i 2x1 Q ee mom e ZXL ZX LDA N List of The OMRON FB Library oO PLC CLK BL omroniib gt Ga ric gt ctx A _CLKO01_LINK_RunDatalink Start Data Links Starts the data links _CLK002_LINK_StopDatalink Stop Data Links Stops the data links CS1W CLK21 V1 CS1W CLK12 V1 Kai _CLK003_CheckNode32 Monitor Controller Link Node Errors 32 ee ie ac ae la and data os4w CLK52 V1 l CJ1W CLK21 V1 CLK004_CheckNode62 Monitor Controller Link Node Errors 62 Ea pc ae ee ae A 3 link status using the network status CPU Fel omroniib gt CI PLO gt CI CPU _CPU001_TP_BCD BCD Pulse Timer a ON the output for a specified time after the input turns _CPU002_TP_BIN Bian Pale vine ae ON the ou
10. OMRON FB Library for easier programming of data exchange with various control components attached to PLC through various units and networks OMRON FB Library is a collection of FB software function components that you can incorporate into your system as it is Omron is going to add more components to this OMRON FB Library to contribute for higher efficiency and quality of your PLC programming This OMRON FB Library Start Up Guide introduces you how to connect PLC that uses OMRON FB Library and other devices with specific examples Refer to these examples for your design of facilities and devices using Omron s PLC and control component PLC models for which you can use OMRON FB Library CS1G CPUOOH Unit Ver 3 0 or later CS1H CPUOOH Unit Ver 3 0 or later CJ1G CPUOMOH Unit Ver 3 0 or later CJ1H CPUOOH Unit Ver 3 0 or later CJ1M CPUQOO Unit Ver 3 0 or later Programming tool for which you can use OMRON FB Library CX Programmer Ver 5 0 or later WS02 CXPC1 JV5 Chapter 1 What is OMRON FB Library 1 What is a Function Block 2 An Example of a Function Block 3 Overview of the OMRON FB Library 3 1 Benefits of the OMRON FB Library 3 2 Example of using the OMRON FB Library 3 2 1 Example of using the OMRON FB Library 1 3 2 2 Example of using the OMRON FB Library 2 3 3 Content of the OMRON FB Library 3 3 1 OMRON FB Part Files 3 3 2 Library reference 3 4 File Catalog and Where to Access the OMRON FB
11. Use the Up Down Keys to select the required setting and validate this setting by pressing the Select Black ENT Key The display will return to the window shown in step 8 Black Black symbol printed White White symbol printed on white base on black base ORAS 10 Press the ESC Key to return to the window shown in step 7 11 Press the ESC Key once more to return to MON monitor mode mMS Freeze 0 2 10 2D Code Reader V530 R2000 R160 R150V3 12 Press the TRIG Key on the OK 170ms Console to perform one reading Freeze 0 Parameters will be registered based on the results of the first reading T GrayEdgeVal 60 30 90 Rev OFF These parameters are used as settings In RUN mode only the read data ABCDE12345 in this example is output to AS 232C If the reading is performed correctly the teaching func tion will automatically turn OFF To redo the settings go to SET mode and repeat the procedure from step 7 It is possible to view and if necessary change the parameter setting in Reading Settings Manual Refer to 1531 E1 for details If reading is not performed correctly NG the teaching function will stay ON To turn the teaching function OFF select Reading Settings Manual from the screen shown in step 8 and press the ENT Key The teaching function will be turned OFF by entering the Reading Settings Manual window 13 Setup is completed 2
12. 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 2 1 Controller Link Unit CJ1W CLK21 V1 2 1 Controller Link Unit CJ1W CLK21 V1 Shown below is an example of using Controller Link unit for data link operation under automatic configuration 1 Hardware Configuration PLC PLC SYSMAC CPU Unit NAE CPU Unit CJ Series CJ1 G H CPUOOH CJ Series CJ1 G H CPUOOH CJ1M CPUOO CJ1M CPUOO Node 1 Node 2 Power Supply Unit CJ1W PADOO Power Supply Unit CJ1W PADOO Shielded twisted pair cable Controller Link Unit Controller Link Unit CJ1W CLK21 V1 CJ1W CLK21 V1 ww oo wo oo Terminal Resistance ON Setting Switch Terminal Resistance ON Setting Switch Use the following shielded twisted pair cable ESVC 0 5x2C 13262 Bando Electric Wire ESNC 0 5x2C 99 087B Nihon Electric Wire amp Cable Shown below are M3 crimping contacts suitable for communication cable Manufacturer TypeCode TypeCode Remarks oo JST AE V1 25 N3A U TEME crimping contact with vinyl insulation V1 25 MS3 O shaped crimping contact with vinyl insulation Molex VSY1 25 3 5L U shaped crimping contact with vinyl insulation RAV1 25 M3 O shaped crimping contact with vinyl insulation 2 1 Controller Link Unit 2 Operational Workflow CJ1W CLK21 V1 1 Hardware Setup of Controller Link Unit Setting unit number using rotary switches on the front panel Setting node address using rotar
13. Cable Use the following procedure to make a communication cable and attach the connector 1 Peal the cable sheath by 30 80 mm while taking care not to damage the shield net Do not peal much Pealing too much can cause short circuit About 30 to 80 mm Remove as little as possible 2 Unweave the wire net carefully You will find one bare shielded twisted wires other than signal and power wires it is harder a little than the net and you can feel it by touching Ae 4 ae Shielded wire AZ YOOX ALY BOAO NN NNN 3 Cut and remove excess shield net remove aluminum tape that covers signal and power wires and peal the sheath of signal and power wires for crimping terminal Twist the pealed signal and power wires tightly L e ao Strip to match the crimp terminals 4 Attach a crimping terminal on the pealed part of the cable then cover it with vinyl tape or heat shrinkable tube 5 Then insert signal power and shielded wires into connector holes while taking care of connector direction Wires must be inserted into holes in the order of red white shielded blue and black from the top Red V White CAN H Shield Blue CAN L Black V 2 6 Inverter 3G3MV A20007 ABOOD A4000 3G3RV A2000 A4000 2 3 2 Connection of Communication Cable to Node Align the directions of connectors at the node side and cable side and insert the convex part of the cable into the n
14. Controller Link Unit and Data Link Activate Write the following figures in the each DM parameter areas of node 1 and 2 using CX Programmer D30000 0010 Hex Master station normal station configuration Master station Wire type 62 nodes configuration Up to 32 nodes Data link mode Automatic configuration Area type CIO start CH 1000CH 0050 Hex 50 CHs for 1 node D30005 8200 Hex Area type DM start CH DM20000CH D30006 0030 Hex 30 CHs for 1 node Data link participation node 1 node 2 For details of the setting refer to Notice DM Parameter Allocation on the next page Arrangement of Created Data Link By setting parameters above following Data Link is arranged Node 1 Node 2 CI O Node 1 CI O Node 2 1000 1000 Send Area Receive Area 1050 Receive Area 1050 Send Area 50 CH 50 CH 1099 1099 DM Node 1 DM Node 2 2000 2000 Send Area Receive Area 2030 Receive Area 2030 Send Area 30CH Fe 30 CH 2059 2059 2 1 Controller Link Unit CJ1W CLK21 V1 Notice DM Parameter Allocation For DM parameter area 100CH are assigned for each Unit number For unit No 0 DM30000CH to DM30099CH are assigned DM30000 Unit number x 100 CH The Software Switches in DM Parameter Area and the Setting Area of Parameters for Automatically Setting Data Links Equality Layout and their detail are shown below Software Switches DM30000 100 x Unit No 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 omms I LE
15. Cooling MV Reads the cooling MV of the specified channel of a Controller connected to DeviceNet _E5xxDRT205_ ReadHeatingMv Read Heating MV Reads the heating MV of the specified channel of a Controller connected to DeviceNet ES5ZNDRT005_CancelAT Stop Autotuning Cancels autotuning for a channel of a Controller on DeviceNet E5 xxDRT400_ WriteVariable Witte Vanable Area arin element to the specified variable area of a Controller on E57N _E5xxDRT403_WriteSP Write Set Point acre point of the specified channel of a Controller connected i ifi ifi i i l ifi ifi i i Bi ifi ifi i ifi ifi ifi Serial E5ZN i i i ifi j ifi a _E5xR004_ExecuteAT Starts autotuning for the specified channel of the specified Controller _E5xR206 _ReadValveOpening Read Valve Opening Reads the monitor value for valve opening for the specified channel of a Controller _E5xx400_WriteVariable Write Variable Area Writes one element to the specified variable area _E5xx403_WriteSP Write Set Point Writes the set point of the specified channel of a Controller List of The OMRON FB Library Temperature TCx EBL gt omronlib gt a Controller gt c j TCx _TCx002_Run Start Control E control for the specified loop _TCx003_Stop Stop Control Stops control for the specified loop _TCx004_ExecuteAT Executes autotuning for the specified loop _TCx005_CancelAT Cancel Autotuning Cancels autotuning for the specified loop CJ1W TCx _T
16. Even parity Stop Bit 2 bits PLC Setting Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram Fi File Edit Yiew Insert PLC Program Tools Window Help ISAR AR Be 2s meee l4sa4 4 0 B AR Activate CX Programmer then click PC System Setup icon 3 NewProgram1 00 fH Symbols Sectiont amp END ction Blocks PC System Setup screen pops up ma PLC Settings NewPLC1 ey _ oi File Options Help Startup CPU Settings Timings SIDU Refresh Unit Settings Host Link Fort Peripheral Port Peripheral 4 t ep e E Communications Settings Baud Mode Serial Gateway z Received Bytes 256 aA CRLF C SetEnd Code fox0000 Custom Response Timeout NTPC Link Max jo 100 me default 5000m ics 1H H PU6 offline Set items marked by red underscores to values as shown above Then connect PLC online and transmit the PC system setup Temperature Controller Setting None Use with the default factory setup 2 12 Temperature Controller E5ZN 20 2 4 Usage Example of FB Component FB Read Process Value FB Name _E5xx202 ReadPV File Name _E5xx202 ReadPV10 cxf Functional Overview Reads the process value of the specified channel of a Controller Program Example When contact W0 00 is ON readout of current values start from th
17. Library 3 4 1 Catalog of OMRON FB Library files 3 4 2 CX Programmer installation CD 3 4 3 Accessing OMRON FB Library files from Web server OMRON FB Library 1 What is a Function Block Function Blocks are predefined programs or functions contained within a single program element that may be used in the ladder diagram A contact element is required to start the function but inputs and outputs are editable through parameters used in the ladder arrangement The functions can be reused as the same element Same memory or occur as a new element with its own memory assigned Partial Ladder program for machine A Defining Inputs and Outputs Input Process algorithm Output An Bn Xn Yn Zn Produce template Partial Ladder program for machine A Device Control Device Control EN ENO EN ENO Allocate to Ladder program f Device Control EN ENO Function Block definition This contains the defined logic algorithm and I O interface The memory addresses are not allocated in the Function Block Definition Function Block instance invocation This is the instruction that will call the function block instance when used by the ladder program using the memory allocated to the instance As the memory addresses used are allocated and perform individually for each Function Block instance no error occurs when one Function Block definition is called from more than
18. Setup screen pops up PLC Settings NewPLC1 File Options Help 15 x Startup CPU Settings Timings SOU Refresh Unit Settings Host Link Port Peripheral Port Peripheral 4 Communications Settings Standard 9600 1 7 2E Custom Baud Format Mode 38400 fa M RS 232C End Code Received Bytes 256 CRLF Set End Code Start Code f Disable O Set 0 0000 Response Timeout fo 100 me default 000m ics 1H H CPU6 offline 2D Code Reader Seiting Baud rate 38400bps W None Data length 8bit Y Use with the default factory setup Parity bits None v Stop bits 1bit v Header None v CR v OFF v Normal 2 10 2D Code Reader V530 R2000 R160 R150V3 2 4 Setting Readout Conditions for the Code Reader 1 Turn the monitor and the code reader ON A screen is displayed as shown bellow A startup message appears followed by a processing message After a short pause the initial screen appears The following screen appears the first time power is turned ON Use the camera to take a picture Be sure that the 2 dimensional code Is correctly displayed within the field of vision on the monitor The through image is displayed by pressing the SHIFT Down Keys If not displayed correctly adjust the focus camera setting distance and lighting 2 10 2D Code Reader V530 R2000 R160 R150V3 3 R
19. Terminal Resistance CJIW SCUDI CJ1W CIF11 Terminal Resistance In case of 2 wire RS485 Use terminal resistance only for the final driver R7D APO1L Terminal Resistance CJ1W SCUOO CJ1W CIF11 Terminal Resistance Using servo terminal unit with communication makes it easier to connect RS422 4 wire with specified cable In this case it is helpful to use terminal resistance switch on servo terminal board rather than RT terminal 2 8 RFID ID Sensor V600 HOUO 2 8 RFID ID Sensor v600 HOO Shown below is an example of constructing a system that writes data into workpiece and reads the data again 1 Hardware Configuration For CJ series CPU Unit ID Sensor Unit R B 1 PERIHERA R R o R 8 E Read Write Head Data Carrier Work Moved Work Moved object Object Shown above is an example of the configuration of 1 head type ID sensor unit CJ1W V600C11 2 8 RFID ID Sensor v600 HOO 2 Operational Workflow 1 Hardware Setup of ID Sensor Unit Setting DIP switch and unit number Mounting the unit to PLC Connecting the read write head to the ID sensor unit Turning on the PLC 2 Software Setup of ID Sensor Unit Setting ID sensor unit operation 3 Creating I O Table Connecting the CX Programmer Creating I O table ian 4 Usag
20. set to 63 The node address must not overlap that of other node slave in the NODE network ADR NN 1 KO san Do not use 0 y X10 ary X10 Setup Method 2 digit Decimal Number 3 Set up the communication speed Set the communication rate of the master unit to 125K bps 2 2 DeviceNet Slave DRT2 Series DRT2 O000 2 1 2 Slave Hardware Setup Rotary Switches for Node Address Setting NODW ADDRESS Det 2 ake So Be 8 9 10 11 12 13 14 15 E9 D GD OMRON DRT2 1D16 REMOTE TERMINAL 1 Set the slave node address rotary switch In this example node address is set to 15 S L26 The node address must not overlap that of other node m DAS master slave in the network 109 40 Node Address Setting One s digit Node Address Setting Ten s digit Setup Method 2 digit Decimal Number Setup Range 0 to 63 2 2 DeviceNet Slave DRT2 Series DRT2 O000 2 2 Wiring Communication Cable and Connection between Master and Slave 2 2 1 Making Communication Cable Use the following procedure to make a communication cable and attach the connector 1 Peal the cable sheath by 30 80 mm while taking care not to damage the shield net Do not peal much Pealing too much can cause short circuit About 30 to 80 mm Remove as little as possible 2 Unweave the wire net carefully You will find one bare shielded twisted wires other than signal and power wires it is harder a little than the net
21. the data links At power on A200 11 1 cycle ON flag is ON at power ON use Controller Link units soft SW to set DM parameter area s data link activation bit to ON to activate the data link If data link is normally activated W100 01 turns to ON Node1_ RUN Res CYIG _CLK001_LINK_RunDatalink T BOOL BOOL Unit No EN ENO Busy Flag amp 0 INT BOOL W100 00 Local node address UnitNo Normal end amp 1 INT W100 01 NodeNo Error end w100 02 W100 00 Variables Table INPUT Input Variables 1 ON FB started O OFF FB not started ww foe S OUTPUT Output Variables ENO 1 ON FB processed normally May be omitted 0 OFF FB not processed or ended in ann error Busy Flag BUSY Automatically turns OFF when processing is completed Normal end OK Turns ON for one cycle when processing ends normally Error end NG Turns ON for one cycle when processing ends normally 2 2 DeviceNet Slave DRT2 Series DRT2 OOULI 2 2 DeviceNet Slave DRT2 Series DRT2 O000 Shown below is an example of using CS CJ series CPU unit to read unit conducting period of DeviceNet slave DRT2 series 1 Hardware Configuration SYSMAC CS CJ Series jejte iii 125 Kbps Terminal Resistance 01234567 uS NS NODE ADORESS D D amp dq H 4 OMRON DRT2 1D16 d REMOTE TERMINAL Slave i a LJ Slave Node Address 15 Unit Conducting Period 1H 2 2 DeviceNet Slave DRT2 Series DRT2 0000
22. the unit No with the parameter by digit 2 of Pn000 2 to 6 Operation Procedure Front panel Display example Explanation key operation ST Press the MODE SET Key to change to Setting Mode Pai Reena eset fonw alne mir Press DATA Key front panel DATA Key for 1 s min Ea The parameter number Pn304 setting will be displayed 1 s min p g play Press the Up or Down Key to change the setting to 1 ooog GOG e eee eee eee Set the unit No with the parameter by digit 2 of Pn000 2 to 5 Press the DATA Key front panel DATA Key for 1 s min to save the data to memory the setting display will flash 1 s min for approximately 1 s 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL 2 5 Usage Example of FB Component FB Read Servo Parameter FB Name _SRV201_ReadParameter File Name _SRV201_ReadParameter 10 cxf Functional Overview Reads parameter information from the Servo Driver Program Example Read Pn101 Velocity Loop Integration Time Constant from Servo Unit No 6 of W series Servo Driver connected with Serial Communication Unit No 5 W100 15 _SRV_ReadParameter_SCx ENO BOOL SCU SCB Select BUSY Busy Flag amp 2 BOOL W100 00 Unit selection i Done Normal end amp 5 BOOL W100 01 W100 00 Serial Port No Error Error end amp 1 BOOL W100 02 Servo unit No ErrorlD Error Code amp 6 WORD W101 Parameter No ParameterNo Value Read value 0100 INT W
23. to DeviceNet SL MD32SL _Dnet214_GetLoadOffWire_ Hold Read Load OFF Wire Hold Status P Wenode by E a ID08C OC08C connected to DeviceNet HD16C Reads the load OFF wire status from slaves connected AD04 AD04H Dnet21 tL ffi tat R L FF Wi tat a a Aa O to DeviceNet Use this FM for output terminals DA02 TS04 DRT2 ID16 0D16 R OS16 ID16TA OD16 _Dnet216_GetOperationTime_PV Read Operation Time Monitor Present Value Rean meee e UR O aG Pa be monitors from slaves connected to DeviceNet _Dnet217_GetOperationTime_SV Read Operation Time Monitor Set Value hapa E ee ee ope ame ENE from slaves connected to DeviceNet _Dnet218 GetOperationTime_Stat Read Operation Time Monitor Status RAEE eae E PPE ane ORA eM slaves connected to DeviceNet _Dnet219 GetOperationTime_ Hold Read Operation Time Monitor Hold Status pega wanes ae PROP emer umes MOMCeta ven connected to DeviceNet Dnet220_GetOperationTime_ Peak Read Operation Time Monitor Peak Value Reads the peak values for operation times from slaves 7 7 Read connected to DeviceNet _Dnet221_GetSensorOffWire_Stat Read Sensor OFF Wire Status Roads mie nae OFF Wire Stalls lam sieves connected to DeviceNet _Dnet222_GetSensorOffWire Hold Read Sensor OFF Wire Hold Status P tee i eiuee rome ae connected to DeviceNet Read Sensor Power Supply Short circuit Reads the power supply short circuit status from Status slaves connected to DeviceNet Dnet224 GetSensorShort Hold Read Sensor Power Su
24. to the Related Manuals for details on the error codes Explicit message ExplicitError Outputs the explicit message error code A code of 0000 is error code output for a normal end Refer to the Related Manuals for May be omitted details on the error codes 2 3 Position Control Unit CJ1W NCF71 2 3 Position Control Unit CJ1W NCF71 Shown below is an example of using Position Control Unit for CJ series to move a servo motor 1 axis connected to Position Control Unit of unit number 0 to a position of 2000 command unit with speed of 2000 command unit s by relative move command 1 Hardware Configuration SYSMAC CJ Series P Positi Uni ee CPU Unit osition Control Unit CJ1W NCF71 MECHATROLINK II Up to 16 axes MECHATROLINK II Servo Motor Connection Cable Driver JEPMC W6003 01 R88D WTL MECHATROLINK II Terminal Resistance een Servo MECHATROLINK II Motor I F Unit JUSP NS115 2 3 Position Control Unit CJ1W NCF71 2 Operational Workflow 1 Position Control Unit Setu i Setting unit number by using rotary switch on the front panel Attaching MECHATROLINK II I F Unit to Servo Driver Setting servo driver station address a a E a Connecting Position Control Unit and servo driver by MECHATROLINK II Connection Cable 4 Creating I O Table Turning the PLC ON xi Connecting the CX Programmer Creating I O table 5 Position Control Unit l l p Paramet
25. 0000 pps gt amp 20000 Acceleration time May be omitted 100 ms gt amp 100 Deceleration time 200 ms gt amp 200 Model selection amp 2 Acceleration DINT Deceleration INT Select After normal move W1 02 is set to ON If an error occurs by any reason W1 04 is set to ON Notice If the origin is not determined MoveAbsolute cannot be executed Perform origin search and determine the origin before 2 5 Position Control Unit CS1W NC113 133 213 233 413 433 Variables Table INPUT Input Variables EN FB started i FB not started w fom O S Axis No Axis amp 1 X axis amp 2 Y axis amp 3 Z axis amp 4 U axis Position Position Specify the target position command Unit Pulses Speed command Velocity Specify the target speed Unit pps The actual speed of the operation will change if the Speed Command is changed while Execute is ON Acceleration time Acceleration Specify the acceleration time Unit ms Deceleration time Deceleration Specify the deceleration time Unit ms Model selection Select amp 1 1 axis Unit NC1xx amp 2 2 axis Unit ed amp 4 4 axis Unit NC4xx OUTPUT Output Variables ENO FB processed normally A ot FB not processed or ended in an error Positioning Done Turns ON when the positioning operation has been completed completed Abort Command Aborted Aborted pork Move is moved multiple activation Terminated by STOP Error fla
26. 1 Parameter Setting Set communication specifications by writing down the following value onto the pala ielel alee m D30000 100 x Unit Number CH at CJ1W SCU41 CS CJ Series CJ a Description ue vo i D32000 D32010 za DM30500 8904 D32001 D32011 m 1 m 11 _ Bit 00 03 Transmission rate DM30501 0006 D32009 D32019 m 9 m 19 Bit 00 15 Maximum byte count for DM30509 03E8 transmission data If you use macro with the above D32000 D32010 m m 10 must be 8604 Set communication specification as follows in this example Communication Specification with servo driver Transmission Rate Mode Selection of Serial Communication Unit Serial Communication Mode 9 Serial gateway 6 Macro mode only if macro is used for PLC 2 3 2 Unit Restart Parameters at the serial communication unit is reflected when power supply is restarted from the OFF position 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL 2 4 Servo Driver Setting Setting Servo Unit No Set SMART STEP to Unit No 3 and 4 and W Series to Unit No 5 and 6 Unit No 3 Servo Driver W Series Servo Driver SmartStep A Series Setting depends on the models SMART STEP A Series Set the rotary switches shown bellow Unit No 3 and 4 Unit No Setting Switch Set unit No to 3 and 4 using flat bladed screw drive 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL W Series Set
27. 10 2D Code Reader V530 R2000 R160 R150V3 2 5 Usage Example of FB Component FB Execute Read FB Name _2DCR401_ ExecRead File Name _2DCR401_ExecRead cxf Functional Overview Executes one read for a 2D Code Reader Program Example When contact W0 00 is ON code reader starts reading After normal readout contact W0 02 is set to ON by 1 cycle and the result is outputted to D1000 If an error occurs by any reason contact W0 03 is set to ON by 1 cycle WO0 0 _2DCR401_ExecRead Tr Unit selection Busy Flag WO 1 FFFF Serial Port No UnitSelect ia ad INT Normal end PortNo WO 2 Storage order designation INT Error end amp 0 BytesOrder W0 3 Area for read results WORD P_DM RecvArealD Beginning word for read results INT amp 1000 RecvAreaNo No of read results bytes to receive INT amp 128 RecvBytes Response monitor time INT amp 0 TimeOut Variables Table INPUT Input Variables Name Variable name a Unit selection UnitSelect i Storage order designation ByteOrder RecvArealD Fail laa read results Bo mace b tes to receive time Area for read results 2 10 2D Code Reader V530 R2000 R160 R150V3 Po Description wt sti lt isSCid FB started 5 o FB not started Specify the Unit selection and the serial port E Connected to CPU Unit Unit selection Serial port No FFFF Not accessed amp 1 recommended E Connected to Serial Communication Boar
28. 11 ZX LD40 ZX LDA11 N FB Read High Threshold FB Name _ZXL207_ReadHighThreshold File Name _ZXL207_ReadHighThreshold10 cxf Functional Overview Reads the high threshold value from the Smart Sensor FB Read LOW Threshold FB Name _ZXL208 RreadLowThreshold File Name _ZXL208 RreadLow Threshold10 cxf Functional Overview Reads the low threshold value from the Smart Sensor W1 02 _ZXL207_ReadHighThreshold n BOOL BOOL EN ENO Unit selection INT BOOL Busy flag ER FFFF UnitSelect Busy W201 Serial Port No INT Normal end Error end W2 03 Threshold Threshold DO We 02 _ZXL208_ReadLowThreshold t BOOL BOOL EN ENO Unit selection INT BOOL Busy flag Serial Port No INT Normal end PortNo W3 02 Error end W3 03 Threshold Threshold DO 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N Variables Table INPUT Input Variables FB started ee FB not started Unit selection selection UnitSelect Specify the connection Unit and the serial port Wi Connected to CPU Unit Model selection 8 amp 0 CPU Unit No Not accessed SO recommended Serial port No Not accessed amp 2 recommended Wi Connected to SCB Model selection amp 1 SCB Unit No Not accessed SO recommended Serial port No amp l Port 1 amp 2 Port 2 Wi Connected to SCU Model selection amp 2 SCU Unit No amp 0 to amp 15 Serial port No amp 1 Portl amp 2 Port 2 Eaa Port No Km N OUTPUT
29. 2 Operational Workflow Setting Unit No Node Address and Communication Rate of the master unit Setting Node Address of the slave Wiring DeviceNet communication cables Turn the power ON Creating I O Table Sample program that reads out operation time of the unit 2 2 DeviceNet Slave DRT2 Series DRT2 O000 2 1 Hardware Setup 2 1 1 Master Unit Hardware Setup fers vt o Indicators I Unit No Switch Sets the unit No of the DeviceNet unit on the PLC as a one digit hexadecimal value Node Address Switches Set the node address as two digit decimal value DTP Switch The pins have the following functions Each pin Sw 1 to 4 sets following functions Pins 1 and 2 Baud rate Pin 3 Continue Stop communications for error when used as a master Pin 4 Hold Clear I O for communications error when used as a Slave Communications Connector Connect the network communications to this connector The communications power for this unit is also supplied through this connector A parallel connector with screws XW4B 05C1 H1 D is provided for node connection 1 Set the master unit number Unit Number Setup Switch UNIT In this example unit number is set to 1 No Woke The unit number must not overlap that of other CPU Bus unit connected to O the same PLC Setup Method 1 digit Hexadecimal Number 2 Set the master node address In this example node address is
30. 33 _NCx060_ Stop Deceleration Stop Decelerates an axis to a stop CS1W NC213 233 NC413 433 _NCx200_ReadStatus Read Status Reads the status of an axis CJ1W _NCx201_ReadParameter Read Parameter Reads a parameter of an axis NC113 133 CJ1W _NCx202_ReadBoolParameter Read Boolean Parameter Reads a boolean parameter of an axis NC213 233 CJ1W NCx203_ReadAxisE Read Axis Error Reads axis error information se NC413 433 _NCx204 ReadActualPosition REAL Read Present Position Reads the present position of an axis _NCx205_ReadActualPosition DINT Read Present Position Reads the present position of an axis _NCx401_WriteParameter Write Parameter Writes an axis parameter _NCx402_WriteBoolParameter Write Boolean Parameter Writes a Boolean parameter _NCx600_ Setting Set Unit Sets the Position Control Unit List of The OMRON FB Library o RemotelO SmartlO BL omroniib gt Remotelo gt smartio A E S e _Dnet200_GetGenericStat Read Generic Status Reads the generic status from slaves connected to DeviceNet _Dnet201_GetNetVoltage_PV Read Network Voltage Present Value page eleanor NE DEWE poner anys from slaves connected to DeviceNet _Dnet202_ GetNetVoltage_Min Read Network Voltage Minimum pees Pen vee a ee cael supply from slaves connected to DeviceNet SmartlO _Dnet203_ GetNetVoltage_ Max Read Network Voltage Maximum Value pede wie E eile ne cea supply from slaves connected to DeviceNet Dnet204 _GetONTime PV Read Present Unit
31. 500 CH to 3563 CH 1750 08 ON is finished 1750 1500 25 CH X CPU Bus Unit No of DeviceNet Master Register Scan List 1750 00 ON Return PLC to Monitor Mode if necessary End Concerning detail explanation including meaning of setting are written at 3 1 Outline of Allocation Relay and DM Area 4 2 Scan List and 4 3 Fixed Allocation of DeviceNet Master Unit Manuals W380 E1 2 6 Inverter 3G3MV A2000 ABOOD A4000 3G3RV A2000 A4000 2 6 Inverter setting For performing DeviceNet Communication the following parameters have to be set The parameters shown here is incorporated into DeviceNet communication Unit when power is turned ON For this reason change of parameter must be made after turning OFF the source power 2 6 1 3G3M series Inverter Parameter Setting Parameter Name Setup Factory Description constant No figure setting Operation command Input from option DeviceNet n003 3 ae ee selection Communication Unit is enabled n004 Frequency command Frequency command from option selection DeviceNet Communication Unit is enabled Unit selection at frequency command Unit Hz selection reference Concerning other parameters set depending upon operation conditions Concerning change and detail of parameter check the following manuals I527 E1 3 1 Operation of Digital Operator I539 E1 4 1 SYSDRIVE 3G3MV Series Set up 2 6 2 3G3RV series Inverter Paramete
32. A4000 2 Operation Workflow 1 H f an FN Setting Unit No Node Address and Communication Rate DeviceNet Master Unit i Pate of each inverter unit using the switch on the front panel 2 Mounting DeviceNet l ten rt Mounting DeviceNet Unit Card on each inverter and setting node address using rotary switches 3 Wiring communication cable and connection Wiring communication cable and communication power cables of DeviceNet Connect communication cable between master and slave between master and slave D a 4 Creating I O Table l Turning PLC power supply ON Connecting CX Programmer Creating I O Table di a TEE can E Registering Scan List at the DeviceNet master unit 6 Setting Inverter Setting parameters of each inverter Ce OER Sample program of performing inverter rotation Component Pees p J 2 6 Inverter 3G3MV A20007 ABOOD A4000 3G3RV A2000 A4000 2 1 Master Unit Hardware Setup Explanation about each switch DRM21 isa UNIT Ss 3 NO 33 23 gt NODE SIL x 101 Ca oms H Indicators Unit No Switch Sets the unit No of the DeviceNet unit on the PLC as a one digit hexadecimal value Node Address Switches Set the node address as two digit decimal value DTP Switch The pins have the following functions Pins 1 and 2 Baud rate Pin 3 Continue Stop communications for error when used as a master Pin 4 Hold Clear I O for
33. CIO Peter Polling node polling node bit Data Link status Data Link Start Bit 0 Polling node Storage format Start Changed from OFF 1 Polled node 0 8 bit format to ON or set to ON 1 4 bit f t when power is CPU Bus Unit PLC Setup poses aan ek Initialization Stop Changed from ON 0 Not initialize CPU Bus Unit Wired Network 62 Node Data Link mode g A ii PLC Setup Enable Bit 000 Manual 1 Initialize CPU Bus Unit 0 32 nodes max 001 Automatic equality layout PLC Setup 1 62 nodes max 101 Automatic 1 N allocation Parameters for Automatically Setting Data Links with Equality Layout DM30000 100 x Unit No 1 to 11 15 8 7 0 Area 1 data link start word BCD Area 1 type Number of send words per node of area 1 BCD Rightmost 4 digits of data link start word of area 2 DM area BCD Area 2 type Leftmost digit of data link start word of area 2 BCD Number of send words per node of area 2 BCD 15 14 13 12 11 10 9 8 T 6 5 4 3 2 1 0 16 11 to o ej 7 6f s a s 2 1 8 oe 932 detains S oe PAE whether EOS is to participate in the data links Participate 1 Not participate 0 E E Teel e1 so sol sel s7 se ssl sal ssl s2151 so 49 BCD Set the value as binary coded decimal 2 1 Controller Link Unit CJ1W CLK21 V1 2 2 Usage Example of FB Component FB Start Data Link FB Name _CLKOO1_LINK_RunDatalink File Name _CLKOO1_LINK_RunDatalink10 cxf Functional Overview Starts
34. Controller Link DeviceNet unit Temperature control unit Position control unit Inverter Servo motor driver 3 4 2 CX Programmer installation CD CX Programmer Ver 5 0 installation CD contains the OMRON FB Library files The user can select to install the OMRON FB Library during the installation of CX Programmer Ver 5 0 Number of OMRON FB Part files at the time of July 04 approx 80 approx 95 approx 30 CX Programmer Ver 5 0 Install CD 3 4 3 Accessing OMRON FB Library files from Web server The latest version OMRON FB Library files will be provided by Omron on the Web server New files will be added to support new or enhanced PLC units and FA components The download service of the OMRON FB Library is provided as a menu of Omron Web in each country Web server The internet The internet BEC Chapter 2 Connecting Method for Units Control Components 2 1 Controller Link Unit CJ1W CLK21 V1 2 2 DeviceNet Slave DRT2 Series DRT2 0000 2 3 Position Control Unit CJ1W NCF71 2 4 Position Control Unit CJ1W NC113 133 213 233 413 433 2 5 Position Control Unit CS1W NC113 133 213 233 413 433 2 6 Inverter 3G3MV A2000 AB000 A4000 3G3RV A2000 A4000 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL 2 8 RFID V600 HOO 2 9 Vision Sensor F160 C10 2 10 2D Code Reader V530 R2000 R160 R150V3 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N 2 12 Temperature Controller E5ZN 20 2
35. Cx201_ReadStatus Read Status Reads the status ofthe specified loop _TCx202_ReadPV Read Process Value Reads a process value P _TCx203_ReadSP Read Set Point Reads the set point SP of the specified loop _TCx403_WriteSP Write Set Point Writes the set point SP of the specified loop List of The OMRON FB Library O Vision Sensor FXXX FBL gt f Jomroniib gt VisionSensor gt ee FXXxx rm 2 _Fxxx203_ChangeSceneGrNo Switch Scene Group Switches the scene group _Fxx402_ExecPictureMeasure Execute Picture Measurement Executes one measurement for displayed picture Authorized Distributor Cat No R123 E01 01 Note Specifications subject to change without notice Printed in Japan
36. D m 0 12to15 Loop 1 Alarm 1 mode Set each loop s alarm modes in BCD 0 to 9 as follows 08 to 11 Alarm 2 mode No alarm 04 to 07 Loop 2 Alarm 1 mode Upper and lower limit alarm Upper limit alarm 00 to 03 Alarm 2 mode Lower limit alarm D m 1 12to15 Loop3 Alarm 2 mode 2 mode 04 to 07 to07 Loop4 Alarm 1 mode 1 mode Da Upper and lower limit range alarm Upper and lower limit alarm with standby sequence Upper limit alarm with standby sequence Lower limit alarm with standby sequence Absolute value upper limit alarm Absolute value lower limit alarm D m 2 00to15 Loop1 Alarm 1 hysteresis D m 3 00 to 15 Alarm 2 hysteresis D m 4 00to 15 Loop 2 Alarm 1 hysteresis D m 5 00to15 Alarm 2 hysteresis D m 6 00to15 Loop3 Alarm 1 hysteresis D m 7 00 to 15 Alarm 2 hysteresis D m 8 00to15 Loop4 Alarm 1 hysteresis D m 9 00 to 15 Alarm 2 hysteresis OOMDNMONRWNH O The values written here are written to RAM Set each alarm s hysteresis in 4 digit BCD or 16 bit binary accord ing to the Data Format set on the Temperature Control Unit s DIP switch The values written here are written to RAM Notice _h DM number is assigned as m 20000 100 x Unit No 2 2 loop type with heater disconnection warning has no function for loops 3 and 4 Consequently assignment area for loops 3 and 4 is not used and setting is disabled 3 By setting FF
37. FB processed normally May be omitted i FB not processed or ended in an error Busy Flag BUSY Automatically turns OFF when processing is completed Normal end Turns ON for one cycle when processing ends Turns ON for one cycle when processing ends in an Error end 2 10 2D Code Reader V530 R2000 R160 R150V3 2 10 2D Code Reader V530 R2000 R160 R150V3 Shown below is an example of using CS CJ series CPU unit to allow code reader to read QR Code 1 Hardware Configuration Sync Sensor x Monitor F150 M0O5L Power Supply 24 VDC Monitor Console Console Cable F150 KP F150 VM2M 2m ail Rd Programmable Controller SYSMAC CJ1G CPUOOH CJ1H CPUOO0H Camera CJ1M CPUOO F150 SLC20 RS 232C Cable V530 R150 XW2Z 200T 2 m or XW2Z 500T 5 m CS1G CPUQOOH CS1H CPUOOH Notice This drawing shows connection to CPU unit s built in port Connection is available for serial communication unit board 2 10 2D Code Reader V530 R2000 R160 R150V3 2 Operational Workflow Wiring of camera etc Wiring communication cable between PLC and 2DCR Configure readout condition for code reader Acquire QR code data from the code reader 2 10 2D Code Reader V530 R2000 R160 R150V3 2 1 Hardware Setup 2 1 1 Connect a console to the code reader CONSOLE 2 1 2 Connect a monitor cable to 2DCR MONITOR Tee EA Approx 10 mm Ferrite Core
38. MasterUnitNo CommandAborted Error end Inverter slave address INT BOOL Contact D amp 20 NodeNo Error Start BOOL WORD Error number Contact A Execute ErrorlD Frequency REAL 50 00Hz 50 00 Velocity Direction INT Reverse gt amp 1 Direction 2 6 Inverter 3G3MV A2000 ABOOD A4000 3G3RV A2000 A4000 Variables Table INPUT Input Variables name type BOOL FB started Fie FB not started Area Select amp 1 to amp 3 Specifies the DeviceNet I O memory area selection Specify the area set using the software switch in the DeviceNet Unit amp 1 Fixed allocations IN CIO 3300 OUT CIO 3200 amp 2 Fixed allocations IN ClO 3500 OUT CIO 3400 amp 3 Fixed allocations IN ClO 3700 OUT CIO 3600 Master MasterUnitNo INT amp 0 to amp 15 The unit number of the DeviceNet Unit Unit No 0 to F Inverter NodeNo INT amp 0 to amp 63 The address of the slave slave address Start Execute BOOL 0 OFF 1 ON Operation started 0 OFF All of the following are turned OFF InVelocity CommandAborted Error and ErrorlD Frequency Velocity REAL 0 00 to Specify the frequency in units of 0 01 400 00 Any digits below the setting unit are truncated Direction Direction INT amp 0 to amp 1 amp 0 Forward amp 1 Reverse OUTPUT Output Variables name ENO FB processed normally May be a FB not processed or ended in an error omitted e FB is not activated e Input Variables are ou
39. OMRON FB Library siarsup Guide Fthernei p This OMRON FB Library Start Up Guide introduces you how to connect PLC that uses OMRON FB Library and other devices with specific examples This Guide does not include limiting conditions of usage of each unit control component or combination of them Please read user s operation manual of each product for the actual application Table of Contents Chapter 1 What is OMRON FB Library Chapter 2 Connecting Method for Units Control Components 2 1 Controller Link Unit CJ1W CLK21 V1 2 2 DeviceNet Slave DRT2 Series DRT2 0000 2 3 Position Control Unit CJ1W NCF71 2 4 Position Control Unit CJ1W NC113 133 213 233 413 433 2 5 Position Control Unit CS1W NC113 133 213 233 413 433 2 6 Inverter 3G63MV A2000 ABOOD A4000 3G3RV A2000 A4000 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL 2 8 RFID V600 HOO 2 9 Vision Sensor F160 C10 2 10 2D Code Reader V530 R2000 R160 R150V3 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N 2 12 Temperature Controller E5ZN 20 2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 Chapter 3 OMRON FB Library List For higher efficiency design of facility device using Omron s programmable controller and control component Omron supports Function Block hereinafter FB with programmable controller SYSMAC CS CJ series and programming tool CX Programmer V 5 0 In addition Omron provides
40. ON Time Reads the present Unit ON time conduction time from 7 slaves connected to DeviceNet Dnet205 GetONTime Stat Read Unit ON Time Status Reads the Unit ON time conduction time status from slaves connected to DeviceNet Dnet206 GetCounter IN PV Read Input Terminal Maintenance Counter Reads the present values of terminal mainienance z Present Value counters from slaves connected to DeviceNet Dnet207 GetCounter IN SV Read Input Terminal Maintenance Counter Set Reads the set values of terminal MAN PANGE a aia Value counters from slaves connected to DeviceNet _Dnet208_GetCounter_ OUT PV Read Output Terminal Maintenance Counter Reads the present values of terminal maintenance 7 Present Value counters from slaves connected to DeviceNet _Dnet209_GetCounter OUT_SV Read Output Terminal Maintenance Counter Reads the set values of terminal maintenance Set Value counters from slaves connected to DeviceNet l Reads maintenance counter status from slaves _Dnet210_GetCounter_Stat Read Maintenance Counter Status eennecad te Device N t TA MD16TA m ID32ML OD32 _Dnet211_GetlnputPower_Stat Read Input Power Status P npuUt POWE SAIS MON Slaves CONNER t M evicEnNet ID16S MD16S Reads the power supply status for outputs from slaves ID32SLH OD3 D _Dnet212 GetOutPower_Stat Read Output Power Status Dears ree Deic Net 2SLH MD32S ee LH _Dnet213_GetLoadShort Stat Read Load Short circuit Status REALS M Oan O T eae Tareas connected
41. ORD w102 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL Variables Table INPUT Input Variables FB started e FB not started Unit selection selection UnitSelect UnitSelect Specify the connected Unit and serial port wi Connected to CPU Unit aN Port No PortNo Connection not possible to CPU Unit E Connected to SCB Unit selection BBBB UnitSelect Serial Port No amp 1 Port 1 PortNo amp 2 Port 2 W Connected to SCU Unit selection Unit No amp 0 to amp 15 UnitSelect Serial Port No amp 1 Port 1 PortNo amp 2 Port 2 Axis No Axis The communications unit number of the Servo Driver W Series Pn000 2 SmartStep Front panel rotary switch Parameter No ParameterNo Specifies the parameter to read as a hexadecimal number OXXX where XXX is the numeric portion of the parameter number PnXXX Refer to the Related Manuals for details on parameter numbers OUTPUT Output Variables ENO FB processed normally May be omitted Ae FB not processed or ended in an error Busy Flag BUSY Automatically turns OFF when processing is completed turns Automatically turns OFF when processing is completed when processing is completed Normal end Done O OFF Other end status 1 ON Communications completed with no error Error end Error 0 OFF Other end status 1 ON One of the following error occurred e CMND instruction could not be executed other message being proce
42. Output Variables ENO FB processed normally May be omitted aE FB not processed or ended in an error Busy Flag BUSY Automatically turns OFF when processing is completed Turns ON for one cycle when processing ends normally Turns ON for one cycle when processing ends in an error 2 12 Temperature Controller E5ZN 20 2 12 Temperature Controller EYAN AE Shown below is an example of using CS CJ series CPU unit to read current values of temperature controller E5ZN s unit number 1 and 3 1 Hardware Configuration Attachment Adapter K32 23209 Terminal Unit E E a A Side Connector DC24V RS 485 to connect gl ERN setting interface ESF eee eee PReG swe op s ad ban Seat Say sae Easy for system test communication etc Fee _ DIN Rail Installing Position MMI is same as that of E5CN TERE SSF See Temperature Controller E5ZN 20 Setting Indicator L mn en w Terminal Unit roller E5ZN SDL jei EZ Te E5ZN SCTOS Note This drawing shows connection to CPU unit s built in port Connection is available for serial communication unit board 2 12 Temperature Controller E5ZN 20 2 Operational Workflow 1 Hardware Setup of Temperature Controller E5ZN Setting Unit No using rotary switch on front panel Setting communication rate using rotary switch on front panel Connecting terminal unit Temperature Controller to Terminal Unit Wiring Setting Indicator and Power Cab
43. Setting with or without verification when writing Communication mode setting Data carrier waiting time when single auto stop or repeat auto stop is set at the communication assignment Beyond this time return the carrier non existence error signal 0 Enabled BCD single digit 1 Disabled BCD single digit 0 With verification BCD single digit 1 Without verification BCD single digit 0 Communication distance priority BCD single digit 1 Communication speed priority BCD single digit 0001 to 9999 x 0 1 sec 0000 indicates no limitation Refer to User s Manual for details Set CX Programmer online and create the I O table 2 4 Usage Example of FB Component FB Write Data to Data Carrier FB Name File Name Functional Overview Program Example _V60x400_ WriteData 2 8 RFID ID Sensor v600 HOO _V60x400_WriteData10 cxf Writes data to a Data Carrier When contact W0 00 is ON ID sensor writes data 12 34 56 78 into carriers address 10 After normal write contact W0 02 is set to ON by 1 cycle If an error occurs by any reason contact W0 03 is set to ON by 1 cycle A200 11 W0 0 WO 1 Data Carrier write address amp 10 Bytes to process in Data Carrier amp 4 Write data storage area type P_ DM Write data storage word address amp 1000 Communications designation amp 0 Processing designation Cancel WO0 15 MOV 1234 D1000 MO
44. UT Output Variables ENO ENO 1 ON FB processed normally May be omitted 0 OFF FB not processed or ended in an error Busy Flag BUSY Automatically turns OFF when processing is completed Normal end OK Turns ON for one cycle when processing ends normally Turns ON for one cycle when processing ends in an error The unit depends on the input type 2 12 Temperature Controller E5ZN 20 INTERNAL Internal Variables Internal variables are not outputted from FB If FB s NG flag turns ON you will find the error details by monitoring the following internal variables Error Code ErrorCode Outputs result information of the command to the temperature controller See below for details Error Code Description a Operation Error Unit error unit change display unit error internal non volatile memory error 2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 Shown below is an example of using CJ1W TC001 Temperature Control Unit for CJ series and Supposing Unit No is O and use K type thermocouple 200 to 1 300 1 Hardware Configuration CJ1W TCO001 Four loop Unit Thermocouple NPN outputs CJ1W TC103 Two loop Unit platinum resistance thermometer NPN outputs Notice 1 Shown above is a usage example of 4 loop thermocouple NPN output type type code CJ1W TC001 and 2 loop pla
45. V 5678 D1001 _V60x400_WriteData Busy flag W0 0 Normal end W0 2 Error end W0 3 oe rAddress Error code WriteBytes WORD DataArealD INT DataAreaNo ErrorCode INT Communications INT ByteOrder BOOL Cancel 2 8 RFID ID Sensor v600 HOO Variables Table INPUT Input Variables EN EN 1 ON FB started 0 OFF FB not started a T Head No HeadNo amp 1 Head 1 amp 2 Head 2 Two Head Controllers only Data Carrier CarrierAddress Specify the address in the Data Carrier write address Bytes to process WriteBytes Nothing will be performed and a normal end will be output for amp 0 in Data Carrier Consider the Data Carrier capacity when setting Write data DataArealD P_CIO 00B0 CIO Area storage area P_WR 00B1 Work Area type P_HR 00B2 Holding Area P_DM 0082 DM Area P_EMO 0050 to P_EMC 005C EM Area bank 0 to C Write data DataAreaNo storage word address Communications Communications amp 0 Trigger designation amp 1 Auto amp 2 Repeat auto Processing ByteOrder Specify the storage order of the write data designation amp 0 Upper to lower amp 1 Lower to upper 0 Upper to lower Address CPU Unit Data Carrier memory memory gt o 1 Lower to upper Address CPU Unit Data Carrier memory memory Cancel Cancel 0 1 Cancels processing 2 8 RFID ID Sensor v600 HOO OUTPUT Output Variables Name Description ENO 1 ON FB processed no
46. Write Servo Parameter Changes a parameter in the Servo Driver List of The OMRON FB Library O TemperatureController Temperature E5 C R Fs gt lomrontib gt CI Controller gt a E5OR Op p ee eme e _E5xxDRT001_ExeOperation Operation Command Executes the specified operation command for a Controller on DeviceNet _E5xxDRTO002_Run Start Operation Starts operation for a channel of a Controller on DeviceNet _E5xxDRT003_ Stop Stop Operation Stops operation for a channel of a Controller on DeviceNet _E5xRDRT004_ExecuteAT Starts autotuning for a channel of a Controller on DeviceNet Dnet E5LJR ESxRDRTOOS CancelAT CancelAT ESxRDRTOOS CancelAT Stop Autotuning Cancels autotuning for a channel of a Controller on DeviceNet _E5xxDRT200_ReadVariable Resa Wanebie wes Reads one element from the variable area of a Controller on DeviceNet _E5xxDRT201 ReadStatus Read Status Reads the status of the specified channel of a Controller connected to DeviceNet Reads the process value of the specified channel of a Controller ESAR DRT _E5xxDRT202_ReadPV Read Process Value EORAeCeaseenceNan E5ER DRT E5XxDRT203 ReadSP Read Set Point Reads the set point of the specified channel of a Controller connected E to DeviceNet _E5xxDRT204_ReadCoolingMV Read Cooling MV Reads the cooling MV of the specified channel of a Controller connected to DeviceNet _E5xxDRT205_ReadHeatingMV Read Heating MV Reads the heating MV of the specified channel of a Control
47. ZXLO03_StopAutoTeach10 cxf Functional Overview Ends automatic teaching W0 00 _ZXLOO02_StartAutoTeach y BOOL EN Unit selection INT Busy Flag FFFF UnitSelect K Serial Port No INT Normal end Wo 01 amp 1 PortNo WO0 02 Error end WO0 03 W100 _ZXLO03_StopAutoTeach BOOL l EN Unit selection INT Busy Flag WEDI n FFFF UnitSelect Hare F erial Port No INT ormal en amp 1 PortNo W1 02 Error end W1 03 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N Variables Table INPUT Input Variables EN EN 1 ON FB started 0 OFF FB not started Unit selection UnitSelect Specify the connection Unit and the serial port Wi Connected to CPU Unit Serial Port No PortNo Model selection amp 0 CPU Unit No Not accessed SO recommended Serial port No Not accessed amp 2 recommended Hi Connected to SCB Model selection amp 1 SCB Unit No Not accessed SO recommended Serial port No amp 1 Port 1 amp 2 Port 2 Wi Connected to SCU Model selection amp 2 SCU Unit No amp 0 to amp 15 Serial port No amp 1 Port 1 amp 2 Port 2 OUTPUT Output Variables ENO ENO 1 ON FB processed normally May be omitted 0 OFF FB not processed or ended in an error Busy Flag BUSY Automatically turns OFF when processing is completed Turns ON for one cycle when processing ends normally nana Error end Turns ON for one cycle when processing ends in an error 2 11 Smart Sensor ZX SF
48. ace Unit Open the connection cover of the amplifier unit and insert interface unit into amplifier unit connector 2 2 3 Connecting Power Cable to Smart Sensor Connect DC12V 24V 10 power source to brown 1 and OV to blue 2 Brown 12 to 24 VDC GND 0 V HIGH output PASS output LOW output Linear output Linear output GND Laser OFF input Zero reset input Timing input Reset input 2 2 4 Wiring Communication Cable Wire the communication cable as shown bellow To interface unit To PLC Male Female Cable length must be 15 meter or longer 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N 2 2 5 Communication Cable Connection Connect the interface unit communication cable and the built in RS232C port of the CPU unit ci el 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N 2 3 Communication Setup Configure the communication setting as shown below Communication Mode Serial gateway mode Communication Speed 38400 bps Data Bit Length 8 bits Parity Check None Stop Bit 1 bit PLC Setting Untitled CX Programmer NewPLC1 NewProgram1 Section1 Diagram Fa File Edit Yiew Insert PLC Program Tools Window Help osulalsa ee 2 classe e atoa win ea e xal FEEDEREN Activate CX Programmer then click PC System Setup icon 16 5 ioo x See NewProject NewPLC1 CS1H H Offline
49. am Example Positions using an absolute move Servo motor 1 axis connected to NCx of unit number 0 is moved to position of 2000 command unit with speed of 2000 command unit s by absolute move command W1 00 W1 02 Start Always ON P_On Unit No amp 0 Axis No W1 01 Position command 2000 pulses gt 2000 Speed command 20000 pps gt amp 20000 Acceleration time 100 ms gt amp 100 Deceleration time 200 ms gt amp 200 Model selection amp 2 Servo Motor 1 Servo Motor Axis 1 Axis 1 W1 02 W1 03 Command Aborted _NCx011_MoveAbsolute_DINT BOOL ENO BOOL Done BOOL Command Aborted BOOL Error WORD Position ErrorlD DINT Velocity DINT Acceleration DINT Deceleration INT Select After normal move set W1 02 to ON If an error occurs by any reason W1 04 is set to ON Ref If the origin is not determined MoveAbsolute cannot be executed You must determine the Origin by origin search or preset beforehand Origin search can be performed another FB s NCx050_ HOME W1 04 W1 01 Positioning completed W1 02 Abort W1 03 Error flag W1 04 Error code May be omitted 2 4 Position Control Unit CJ1W NC113 133 213 233 413 433 Variables Table INPUT Input Variables EN EN 1 ON FB started O OFF FB not started Axis No Axis amp 1 X axis amp 2 Y axis amp 3 Z axis amp 4 U axis Start Starts the absolute move Positio
50. and servo driver s Position Control Unit J1W NCF71 MECHATROLINK II 4d Connection Cable JEPMC W6003 01 Power Unit a CPU Unit Servo Motor Driver __ 0 R88D WTL mm MECHATROLINK II Terminal Resistance B a JEPMC W6022 Terminal MECHATROLINK II Be Pan JUSP NS115 1 OHO O00 OF loood o 00 0 d oo d a oo Note Usage condition must be L1 L2 Ln lt 50m in case of 15 axes or less 30m in case of 16 axes Connection example of control I O connector CN1 Shown below is an example of connection for standard I O signals Cable for Connector Terminal Block R88A CTWOO01N a Ao esas ssf SM PA J Rali j m op ioe a a seue ya an aan aa PEINT OO l SA SAA A EERE 825 te NaI 0 ze Mss I PRT LTT EET DC24V INP1 Positioning Complete 1 Te O EXT3 External Latch 3 Input EXT2 External Latch 2 Input Connector Teri BKIR XW2B 50G 5 Brake Interlock ExT1 External Latch 1 Input r NoT Reverse Drive Inhibit READY POT Forward Drive Inhibit Servo Ready O O DEC Back to Origin Deceleration 2 4 Creating I O Table Set CX Programmer online and create I O table 2 3 Position Control Unit CJ1W NCF71 2 5 Position Control Unit Parameter Setup Set up common and axis parameters Set this Position Control Unit number to 0
51. and you can feel it by touching sy Shielded wire A Tk eS AZ Woo SAS Y POP AZLIG RRR 3 Cut and remove excess shield net remove aluminum tape that covers signal and power wires and peal the sheath of signal and power wires for crimping terminal Twist the pealed signal and power wires tightly im D S B Strip to match the crimp terminals 4 Attach a crimping terminal on the pealed part of the cable then cover it with vinyl tape or heat shrinkable tube 5 Then insert signal power and shielded wires into connector holes while taking care of connector direction Wires must be inserted into holes in the order of red white shielded blue and black from the top 2 2 DeviceNet Slave DRT2 Series DRT2 O000 2 2 2 Connecting Communication Cable to Node Align the directions of node and cable connectors and insert the cable connector into the node connector until the cable connector tab fits into the node connector Master Remote I O Terminal 2 2 3 Connecting Communication Power Supply Connect V red and V black of the communication cable to power source DC24V BD oE Communication power supply x pS FG Ground 100 Q Max 2 2 4 Creating I O Table Turn all node power ON and set CX Programmer online then create the I O table 2 2 DeviceNet Slave DRT2 Series 2 3 Usage Example of FB Component DRT2 O000 FB Read Present Unit ON Time
52. ble Connect CX Programmer Online when creating I O table 2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 2 1 8 Configuring Initial Setup Data Write address constant on the DM as follows DM20000 2300 DM20002 0005 DM20003 0010 This unit performs initial setup through data exchange with Special I O unit assignment DM area of the CPU unit To use temperature warning function you must configure warning mode and warning hysteresis settings here In this example set DM20000 to 2300 BCD set Warning 1 of Loop 1 to upper limit warning mode and Warning 2 to lower limit warning mode DM20002 to 0005 BCD Warning hysteresis of Warning 1 to 5 deg C and DM20003 to 0010 BCD Warning hysteresis of Warning 2 to 10 deg C SYSMAC CJ Series Temperature Control Unit CJ1W TCOOO DM area for special I O unit Allocated DM No Unit 0 Unit 1 Unit 2 Unit 3 Unit 4 Unit 5 Initial setting data Unit 6 D20600 20699 Sending to each unit Loop1to4 1 D20700 20799 automatically when Alarm hysteresis anii 4 O E power is turned ON or F sening Unit 8 special I O restart flag is Unit 9 D20900 20999 turned ON Unit n Unit 94 D29400 29499 m 20000 100 x Unit No Details of these setting items are described in the next page 2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 Details of the initial setting data item Units aaa oe ae ees aes
53. communications error when used as a slave a Od OES Communications Connector Connect the network communications to this connector The communications power for this unit is also supplied through this connector A parallel connector with screws XW4B 05C1 D is provided for node connection CO I 1 Set the master unit number Unit Number Setup Switch In this example unit number is set to 10 A The unit number must not overlap that of other CPU Bus unit connected to RN o the same PLC Oo we Kol SS l Setup Method 1 digit Hexadecimal Number 2 Set the master node address SS In this example node address is set to 63 B x10 8 x10 The node address must not overlap that of other node slave in the network Do not use 0 Setup Method 2 digit Decimal Number Setup Range 1 to 63 3 Set up the communication speed Set the communication rate of the master unit to 125K bps ON 50K bis 2 6 Inverter 3G3MV A20007 ABOOD A4000 3G3RV A2000 A4000 2 2 Mounting DeviceNet Communication Unit Card 2 2 1 G3MV PDRT2 3G3MV Mounting Procedure 1 Demount the inverter s front cover terminal block cover and digital operator Note Do not touch inside of the inverter while the unit is activated in order to avoid electric shock Operate after a minute or later from turning off of display LED or CHARGE lamp SYSDRIVE 3G3MV INVERTER 200V 3PHASE hh 1 5kW A WARNING Risk of ele
54. ctric shock nstallin A AVERTISSMENT secsigue aerae poe vipa stn t d electricite 1 ges BR tH BMOBtENMSU ET BAT EOM ident weit ae A MRPRUBBRH A HUAI OY AN ilo TFN VERT V I DBI RROPERMRENT nee CeMRULTFS CEB 2 Connect wires between inverter main unit s main circuit and control circuit terminals Complete the wiring for inverter main unit terminal board before mounting the DeviceNet communication unit which will hide the terminal board when mounted 3 After demounting the inverter s digital operator you will see a block fixed at three points under the operator Use a nipper or other tool to separate these three fixed points and remove the block then you will see a connector for an optional unit Be careful so that any object or dirt should not get into the connector 3 Using pliers cut sections indicated with X SE isni Kp e wil 2 Wire the main circuit terminals and control circuit terminals 2 6 Inverter 3G3MV A2000 ABOOD A4000 3G3RV A2000 A4000 4 Attach the auxiliary mounting bracket on screws that fixed the digital operator and terminal board cover and use auxiliary screws to fix them 4 Mounting base Do not forget to attach the mounting bracket 5 In the back of DeviceNet communication unit there is a grounded terminal to which shielded communication cable is connected Connect this terminal and the inverters FG termina
55. d SCB Unit selection BBBB Serial port No amp 1 Port 1 amp 2 Port 2 E Connected to Serial Communication Unit SCU Unit selection SCU Unit No amp 0 to amp 15 Serial port No amp 1 Port 1 amp 2 Port 2 Storage order for read data amp 0 Upper byte to lower byte amp 1 Lower byte to upper byte 0 Upper to lower Address Readdata CPU Unit Por 0010 01 0011 0012 0013 04 1 Lower to upper Address Readdata CPU Unit ren 0010 01 0011 0012 0013 P_CIO 00B0 CIO Area P_WR 00B1 Work Area P_HR 00B2 Holding Area P_DM 0082 DM Area P_EMO 0050 to P_EMC 005C EM Area bank 0 to C Specify the response monitor time unit 100 ms amp 0 Default 99 seconds 2 10 2D Code Reader V530 R2000 R160 R150V3 OUTPUT Output Variables May be omitted 0 OFF FB not processed or ended in an error Busy Flag BUSY Automatically turns OFF when processing is completed Turns ON for one cycle when processing ends normally Turns ON for one cycle when processing ends in an error 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N Shown below is an example of performing automatic Smart Sensor teaching by the command from CJ1 Then CJ1 reads out HIGH threshold value and LOW threshold value that Smart Sensor generated by the automatic teaching 1 Hardware Configuration SYSMAC CS CJ Series To CPU build in com
56. e Example of FB Component Sample program that reads and writes data carrier data 2 8 RFID ID Sensor v600 HOO 2 1 Hardware Setup Set the switches of the ID Sensor Unit as follows CJ1W V600C11 v600C11 RUN ERC T R NORM ERR MACH ERP ERH No Nom X10 Check whether communication test switch is OFF TEST UIQ OFF lt Connect to the Read Write Head into the Unit 1 Hold the rubber hold part of the connector and insert Biber hold oar A the connector in align with the key slot of the Unit j NG 2 Press the cable connector straight down until it fits Ring part _1 Note Press the connector holding the rubber hold part as the connector is not locked when pressed holding the ring part Set the unit and turn the PLC ON Set the Unit No to 01 using flat blade screwdriver or other tool 2 2 Software Setting of ID Sensor Unit 2 8 RFID ID Sensor Set the software switches of ID Sensor Unit as shown below In order to restart the Unit turn PLC power supply OFF gt ON Details of ID Sensor Unit Setting v600 HOO Head No 1 of CS1W V600C11 HeadNo2of BitNo Setting Description Set value CS1W V600C12 CS1W V600C12 CJ1W V600C11 CJ1W V600C12 CJ1W V600C12 wa o System setting 12 15 08 11 m m 100 2 3 Creating I O Table Auto stop waiting time setting Operation mode switch setting
57. ead and note the QR Code Use the shutter speed of 1 100 and symbol color of black 7 Move the cursor to MON monitor using the Right Key and press the ENT Key The mode selections are displayed 2 Move to SETusing the Up Key and press the ENT Key The following screen is displayed The screen is in SET mode This mode can normally be used for ORCode reading 3 Select Read QR Normal AR Code Norma QRCode Pattern DataMatrix Normal DataMatrix Pattern This mode can normally be used for QRCode reading 4 Select 0 Image Adjust DM Sen 0 SET D Prene Adiusi 1 Read OR Normal 2 Image Analysis Select the Shutter Speed Fillering and BGS Levels S ESC Change Reading Method 2 10 2D Code Reader V530 R2000 R160 R150V3 anuiler Sp 2eC Filtering Filtering Retry BGS Levels Light Control 0 5 Select Shutter Speed 6 Select the shutter speed according to Slow the movement of the reading object 1 100s Press the ENT Key to set the shutter 1 500s speed The display will return to the 1 2000s window shown in step 5 1 10000s Fast Press the ESC Key once to go back to the window shown in step 4 Select 1 100 7 Select 1 Read QR Normal Select the Reading Parameters S ESC Change Reading Method 8 Select Reading Settings QR SS Teaching Reading Settings Manual Display Settings Function Settings 9 Select the required symbol color Se ices raz
58. election Select amp 2 Two loop Unit amp 4 Four loop Unit funn funio OOSOSOSCSCSCSCS S The number of loops depends on the Unit Set point SP The range depends on the input type Temperature Control Unit Operation Manual W396 2 1 3 Input Specifications OUTPUT Output Variables ENO ENO 1 ON FB processed normally May be omitted May be omitted O OFF FB not processed or ended in an error Chapter 3 OMRON FB Library List Folder Configuration of The OMRON FB Library List of The OMRON FB Library Folder Configuration of The OMRON FB Library Z FBL T a omronlib Z CodeReader a 2Dcr f LaserSensor fa Z DNet L K ZX CI PLC CL CPU ET SC UNIT Position NC Controller NC RemotelO smartlO Serial ServoDriver AEX ESOR DNet Temperature Controller a a Z RFID CI V600 a a Serial A s a a E5CN DNet A C j ies A j or Br i a amp L Serial E TCx c FXXX A VisionSensor List of The OMRON FB Library O Code Reader 2DCR FBL gt lomrontib gt Z CodeReader gt CI 2DCR ine ronnie tne 2DCR401_ExecRead E te Read E t df 2D Code Reader 2DCR _2DCR201_ChangeSceneNo Change Scene Number Changes the scene number of the 2D Code Reader V530 R160 V530 R150V3 _2DCR200_GetSceneNo Get Scene Number Reads the scene number O Inverter
59. end W1 3 Error code CarrierAddress WORD ReadBytes WORD StoreArealD INT StoreAreaNo ErrorCode INT Communication INT ByteOrder BOOL Cancel 2 8 RFID ID Sensor v600 HOO Variables Table INPUT Input Variables FB started BEE FB not started a Head No HeadNo amp 1 Head 1 amp 2 Head 2 Two Head Controllers only Data Carrier CarrierAddress Specify the address in the Data Carrier read address Bytes to read ReadBytes Consider the Data Carrier capacity when setting Nothing will be from Data performed and a normal end will be output for amp 0 Carrier Read data RecvArealD P_CIO 00B0 CIO Area storage area P_WR 00B1 Work Area type P_HR 00B2 Holding Area P_DM 0082 DM Area P_EMO 0050 to P_EMC 0050 EM Area bank 0 to C Read data RecvAreaNo storage word address Communications Communicatio amp 0 Trigger designation ns amp 1 Auto amp 2 Repeat auto Processing ByteOrder Specify the storage order of the read data designation amp 0 Upper to lower amp 1 Lower to upper 0 Upper to lower Address Data Carrier CPU Unit memory memor 0010 0011 0012 0013 1 Lower to upper Address Data Carrier CPU Unit memory memor 0010 0011 0012 0013 Cancel Cancel 0 1 Cancels processing 2 8 RFID ID Sensor v600 HOO OUTPUT Output Variables ENO May FB processed normally be omitted eth FB not processed or ended in a
60. ensor F160 C10 FB Get Scene Number FB Name _Fxxx200_GetSceneNo File Name _Fxxx200_GetSceneNo10 cxf Functional Overview Reads the scene number Program Example When contact W0 00 is ON scene acquisition of the vision sensor is started After normal scene number acquisition contact W1 02 is set to ON by 1 cycle and the scene number is outputted to D100 lf an error occurs by any reason contact W1 03 is set to ON by 1 cycle W1 00 _Fxxx200_GetSceneNo BOOL EN Busy Flag Unit selection INT W1 01 FFFF UnitSelect Normal end Serial Port No INT W1 02 amp 1 PortNo Error end Response monitor time INT W1 03 amp 0 TimeOut Scene No D100 W1 01 SceneNo 2 9 Vision Sensor F160 C10 Variables Table INPUT Input Variables aero aeo started cares FB not started Unit selection UnitSelect Specify the connection Unit and the serial port E Connected to CPU Unit Serial Port No PortNo Unit selection FFFF Serial port No Not accessed amp 1 recommended E Connected to Serial Communication Board SCB Unit selection BBBB Serial port No amp 1 Port 1 amp 2 Port 2 E Connected to Serial Communication Unit SCU Unit selection SCU Unit No amp 0 to amp 15 Serial port No amp 1 Port 1 amp 2 Port 2 Response monitor TimeOut Specify the response monitor time unit 100 ms For time example amp 100 means 10 seconds amp 0 Default 5 seconds OUTPUT Output Variables ENO
61. er Setup Setting common and axis parameters of the Position Control Unit 6 Starting MECHATORLINK Starting communication by turning the connection Communication establishment relay from OFF to ON ea AETERNAM ER Up Transmitting parameters to the servo driver via MECHATROLINK II e E pE Sample program that positions by relative movement 2 3 Position Control Unit CJ1W NCF71 2 1 Position Control Unit Setup Set the Position Control Unit number and servo drive station address Set the Position Control Unit number to 0 Unit Number UNIT No Setup Switch Sets the Position Control Unit number UNIT No as a CPU Bus unit Name of Parts CJ1W NCF71 i Setup Range 0 to F Unit No 0 to Unit No 15 LED Display ENT F Shows status of Position Control Unit Note Factory setup is 0 s No S Unit Number Setup Switch Based on the configured unit number CPU Bus unit relay area is Sets the Position Control assigned Unit number UNIT No Position Control Unit uses the area as a relay area of common operation EA E o oa e S ooa Communication Connector e n ooa Caution Before setting up the unit number you must turn off the power 2 2 Servo Driver Setup Setting station address of the servo driver Mount MECHATROLINK II I F units to servo drivers Set their addresses to 1 2 and 3 Servo Driver W Series W series servo driver requires MECHATROLINK II_ I F u
62. erted If not press the connector again Connector 4CN for option A area o Make sure that the apexes of the black Connector triangular marks match 2CN for i option C area Securing a latch 3G3RV f only Connector 3CN Squeeze and pull to remove for option D area a iS Tea ft Wicoococcecele Front View Side View When DeviceNet communication card is loaded no other C option can be loaded 2 6 Inverter 3G3MV A20007 ABOOD A4000 3G3RV A2000 A4000 2 2 3 Setting Slave Node Address Set the slave node address rotary switch WY H Sti ano Node Address Setting One s digit Node Address Setting Ten s digit In this example node address of 3G3MV is set to 15 and that of 3G3RV is set to 30 The node address must not overlap that of other node master slave in the network See bellow for the Switch location Switch location for 3G3MV us __ MS indicator NODE ey NS indicator x10 x1 cos D lt _ Set node address to 20 Connector terminal block TC O Green adi a ae Red MS indicator Green indi CIT Re d NS indicator Terminal block TC KE OR R s 47 T O aay ei R s Set node address to 20 Shield grounding wire 2 6 Inverter 3G3MV A20007 ABOOD A4000 3G3RV A2000 A4000 2 3 Wiring Communication Cable and Connection between Master and Slave 2 3 1 Making Communication
63. ervo Terminal Block with Communication Function Td 4 kl lt W2Z 40J6 4AZ f O i Unit No 3 ee Servo Connecting Cable i Unit No 4 Unit No 5 XW2Z O010U B8 Unit No 6 OOOO CE Cg E aa E ale mp J D SP Servo Servo Servo Motor Motor Motor Servo Driver Servo Driver SmartStep A W Series Series Wiring with the serial communication cable is described in this document When connected to Position Control Unit or I O power supply refer to user s manual for servo drivers I531 E1 I533 E1 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL 2 1 2 Setting Serial Communication Unit Number Set the unit number to 5 Set the switch to 5 CS1W SCU21 V1 LED Indicator Unit No Setting Switch RS232C RS232C Port 2 CS1W SCU41 V1 LED Indicator CU41 RUN ERC SD1 RD1 TER1 o Oo oO Oo o O oO oO RDY ERH SD2 RD2 Terminal Resistance ON OFF Switch Unit No Setting Switch 2 lines 4 lines Shifting Switch RS232C Port 1 RS232C Port 2 Port 1 Set the unit number to 5 using flat blade screw driver CS1W SCU21 V1 SCU21 RUN ERC SD1 RD1 o o O Oo o O RDY ERH SD2 RD2 eas UNIT sg NO RS232C Port 1 RS232C Port 2 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL 2 2 Creating I O table Connecting CX Programmer Create I O table 2 3 Communication Setting of Serial Communication Unit 2 3
64. g Turns ON when an error has occurred in the FB Error code ErrorlD Returns the error code when an error has occurred in the May be omitted FB Refer to the Related Manuals for details on errors A code of 0000 will be returned when the unit number of axis number is out of range 2 6 Inverter 3G3MV A2LJ0L ABOOO A4000 3G3RV A2000 A4000 2 6 Inverter 3G3MV A20007 ABOOD A4000 3G3RV A2000 A4000 Shown below is an example of using CS CJ series CPU unit to start stop a motor or set the parameters 1 Hardware Configuration Power CJ Series DeviceNet Master Unit Unit CPU Unit CJ1W DRM21 24V Communication Power Source 3G3MV PDRT2 DCN1 1C 3G3RV OOO 3G3RV PDRT2 Up to 64 nodes can be connected FB supports a setting under which Standard remote I O is used with fixed assignment only with connection of up to 32 units At this place the Main Unit model No of Inverter is not restricted Inverters to communicate with are listed below Please select at your choice When using more than one inverters mixture of models is also available Main Unit of Inverter Communication ____Main Unitofinverter Slave Unit Type Code Type Code 3G3MV PDRT2 SG3MV 3G38MV A2000 3 phase 200V ve 3G3MV ABOOO Single phase 200V 3G3MV A4000 3 phase 400V 3G3RV PDRT2 3G3RV 3G3RV A2000 3 phase 200V Senes 3G3RV A4000 3 phase 400V 2 6 Inverter 3G3MV A20007 ABOOD A4000 3G3RV A2000
65. grates connector and terminal block allows you to reduce wiring between servo driver and position control unit e Connection cable and terminal unit depend on the servo driver to be connected For details see W376 E1 3 7 Connection for Servo Terminal Unit Primary Components Driver End Cable for W servo only XW2Z 100J B4 REED WTOTHL Motor Connection Cable R88A CAWA003S Encoder Cable R88A CRWAO03C 1 mooo ooo o o WOO I O Power Supply S82K 01524 2 5 Position Control Unit CS1W NC113 133 213 233 413 433 WConnection Example Servo Driver R88D WT01HL Programmable Controller Position Control Unit CS1W NC413 Geis J fha ssf et C SSS CA S EEF XW2Z 100J A7 Dedicated Connection Cable peewee Nios ie XW2Z 100J B4 Dedicated Connection Cable XW2B40J62B Servo Terminal Unit For wiring of junction unit see W series user s manual I531 E1 2 7 Servo Junction Unit and Cable Specification X axis X axis origin Y axis origin emergency stop proximity See note 5 proximity See note 5 X axis X Axi f S i tasisi taxis Big E Manis X axis X axis X axis AXIS Y axis Y axis Y axis ol ov Com Com Com Com Com Com Com y axis ro eK man mon man mon mon mon mon RESET Y axis Y axis external ALMCOM interrupt 1 The XB contact is used to turn ON OFF the electromagnetic brake 2 Do not connect unused terminals 3 The 0 V
66. it assignment DM area Note that exchange of control data for operation is performed for every scanning at I O refreshing of the CPU unit in the order of OUT CPU unit gt this unit then IN this unit gt CPU unit In this example set DM20010 to 0010 BCD set Warning 1 value to 10 deg C and DM20011 to 0020 BCD set Warning 2 value to 20 deg C Other values are set to default values m 20000 100 x Unit No men m 12 m 13 m 14 m 15 OIJ JIJU U U m 17 U J m 18 U m 19 m 16 3 Usage Example of FB Component FB Write Set Point FB Name File Name _TCx403_WriteSP Functional Overview Program Example _TCx403_ WriteSP10 cxf Writes the set point SP of the specified loop 2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 This function sets the target SP of the specified loop 1 in this example to 50 degrees C to the TC unit specified by Type Code Select and Unit Number WOOO TCx403_WriteSP BOOL BOOL EN ENO Model selection INT g4 Select Unit No L g0 UnitNo Loop No Ut a4 LoopNo Set point D Unit Set for BCD Data 0050 Note Setup range of the target value is not checked by this FB If other input variable is out of the range ENO is set to OFF to terminate FB Variables Table INPUT Input Variables EN EN 1 ON FB started 0 OFF FB not started Model s
67. ition Control Unit CU1W NC413 Power Unit NC end Cable for SmartStep XWe2Z 100J A17 Servo Terminal Block XW2B 40J6 4A Driver Cable XW2Z LILILJ B7 SmartStep Driver R7D APLILIL Motor Connection Cable R7A CEA OUOU Servo Motor R7M A R7M AP 2 4 Position Control Unit CJ1W NC113 133 213 233 413 433 2 Operation Workflow 1 Hardware Setu p Setting unit number using rotary switches on the front of the unit 2 Connecting Position Control Unit C Fae eee coe etunneen ri bl and Servo Driver Sae Ing FOSItON LoONtrol Unit ana Servo ariver USING Cables terminal block etc me 3 Creating I O Table l Turning the PLC ON Connecting the CX Programmer een Creating I O table 4 Position Control Unit Parameter Setup Setting common and axis parameters Servo Driver Parameter 5 Servo er Parameter Setup Adjusting servo driver s gain by using the switch on the front panel E one 6 Usage Example of FB Component Sample program that positions by relative movement 2 4 Position Control Unit CJ1W NC113 133 213 233 413 433 2 1 Hardware Setup Set the Position Control Unit number Use a flat blade screwdriver or oX MT KT other tool to set the unit number w ECR 3 to 00 2 2 Connecting Position Control Unit and Servo Driver Connect the Position Control Unit and servo drivers as shown below CJ Series CPU Unit Position Control Uni
68. kPulse_BIN cxf 2KB CXF File _cPuOOS MakeClockPulse_BIN pdf 55KB PDF File _CPUO10_SendData cxf 7KB CXF File _CPUO10_SendData pdf 55KB PDF File _CPUO011_RecieveData cxf 7 KB CXF File _CPUO11_RecieveData pdf 55KB PDF File a CPU012_SendCommand cxf 8KB CXF File a CPUO12 SendCommand pdf 55KB PDF File of gt Position Controlle Remote IO Rfid Servo Drives Temperature Con vision Sensor Outlook Express Windows Media Player 5l Windows NT 26 object s Disk free space 1 79 GB 3 3 2 Library reference The library reference describes the operation specifications of the OMRON FB Part file and the specifications of the input and the output parameters for each The file format for this is PDF When the OMRON FB Library is used the user should select the OMRON FB Part file set the input output parameters and test the program operations referring to the library reference Read Data Carrier Data _V60x200_ReadData _V 600_ReadData Start tigger t Unit No 4 EN Busy Flag Head No Osta Carier read address _ 0200_ReadData Busy Flag Nonnal end wo D Error end CamierAddess NG Error code CWORD Quay be omitted Read Bytes R Bytes to mead fom Data Canier Read data storage area tye WORD Read data storage word address on Communications designation on i RO Commuri cations Processing designation Cancel
69. l DeviceNet Communications Unit 5 Wire shield grounding wire to the Inverter s FG terminal Note Cut the shield grounding wire to the proper length before wiring 6 Fit the DeviceNet communication unit s connector and the inverter s one on the right position then connect the inverter and the unit Press the unit until you hear a click sound 7 Use screws on the top of DeviceNet communication unit to clamp the bracket in step 4 2 6 Inverter 3G3MV A20007 ABOOD A4000 3G3RV A2000 A4000 2 2 2 3G3RV PDRT2 3G3RV 3G3FV Mounting Procedure 1 Turn off the inverter s main circuit power After 5 minutes or later demount the inverter s front cover and check if the CHARGE lamp is lit off 2 DeviceNet communication card is C option Mount it on the C option s position as shown below 3 For 83G3RV remove a clamping tooth for C and D options 4 Insert the auxiliary spacer into the spacer hole on the mounting base of the inverter main unit 5 Fit the option card connector and the controller board connector on the right position insert the spacer on the card s spacer hole Press the spacer into the hole until you hear a click sound 6 For 3G3RV mount the clamping tooth that you have removed 7 Connect the shield ground cable for option card to FG terminal 12 E of the inverter s controller board 8 See from the side to make sure that the connector is completely ins
70. le Setting and Wiring DIP switches of Communication Converter 2 Wiring Communication Cable and Connecting to Unit Wiring Communication Cable and connecting to build in communication port of CPU 3 Communication Setu j Configuring PLC and E5ZN communication setup L 4 Usage Example of FB Component Reads out current value from the specified channel of the temperature controller m 2 12 Temperature Controller EYAN AE 2 1 Hardware Setup 2 1 1 Setting Unit No and Communication Rate 1 est Set the temperature controller s unit 3 number setup switch to 1 and communication speed setup switch to 1 9600 bps using flat bladed screw driver OUT1 Peration indicators OUT2 psi SUB1 susz BEET omron ESZN 2 1 2 Configuration of Temperature Controller and Terminal Unit Line up with guides and push firmly until the Module clicks into place Fit the temperature controller to the terminal unit s guide and fix tightly 2 1 3 Wiring Setting Indicator and Power Cable Temperature Input Power Input Power Setting controller side Q DC24V indicator side Terminal Unit Terminal Unit Connect the power cable to terminals 19 20 on the temperature controller side And to terminals 7 8 on the setting indicator side Connect terminal 4 on the setting indicator side to terminal 21 on the temperature controller side Connect terminal 3 on the set
71. ler connected to DeviceNet _E5xRDRT206_ReadValveOpening Read Valve Opening Reads the valve opening monitor value for the specified channel of a Controller connected to DeviceNet _E5xxDRT400_WriteVariable Wie Vaihe wea aaa ee element to the specified variable area of a Controller on E5 xDRT403 WriteSP Write Set Point Wales Sie set point of the specified channel of a Controller connected to DeviceNet E5001 ExeOperation E5001 ExeOperation Operation Command Executes the specified operation command _E5xx002_Run Start Operation Starts operation for the specified channel of the specified Controller _E5xx003_ Stop Stop Operation Stops operation for the specified channel of the specified Controller _E5xRO004_ExecuteAT Starts autotuning for the specified channel of the specified Controller _E5xR005_CancelAT Stop Autotuning Cancels autotuning for the specified channel of the specified Controller _E5xx200_ReadVariable Read Variable Area Reads one element from the specified variable area Serial _E5x201_ReadStatus _ReadStatus Read Status Status Reads the status ofthe specified channel ofa Controller the status of the Reads the status ofthe specified channel ofa Controller channel of a Controller _E5xR206_ReadValveOpening Read Valve Opening Reads the monitor value for valve opening for the specified channel of a Controller E50400_WriteVariable _WriteVariable Write Variable Area Writes one element to the specified variable area
72. ler Link unit constructs the network 2 1 9 Operation Condition Check with LED Check whether ERR ALM LED red of the CPU unit is lit off Check whether LEDs of the Controller Link unit are as shown below CLK21 V1 RUN ERC INS SD RUN ERC TER ERH WA LNK RD TER ERH M A LNK RD Lo ans 407 R 29 cS 07 Ox his lt Reference gt LED shows the operation condition Green Lito Unit operating normally ee INotlit INotlit Unit error TER Yellow Lit Terminating resistance switch is ON terminating e lit Terminating resistance switch is OFF resistance ERC Communications error node address communica setting error Same address set twice or tions error hardware error Notlit lit Normal Normal operation ERH PLC error PLC interface error EEPROM PLC error B error unit number error or I O table not set Not lit No error Lit Unitis participating inserted in the network network participation Not lit Unitis not participating inserted in the nali network a Yellow Lit Data transmission No data transmission Yellow Lit Data reception E Not lit No data reception eee ea Note see eee ea WA is always not lit when Notlit o data links are not active in poe We network Data links participating a Error in data link table Not lit Not in a data link or data link inactive 2 1 Controller Link Unit CJ1W CLK21 V1 2 1 10 DM Parameter Area Setting Up of
73. munication board Communication Cable Interface Unit ZX SF11 Sensor Head ZX LD40 P DEE Unit ZX LDA11 N Power Supply DC12V 24V 10 Recommendation Automatic teaching S8VS 06024 OMRON Detected Object Note This drawing shows connection to CPU units built in port Connection is available for serial communication unit board 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N 2 Operational Workflow Confirm that the current voltage switch is at the factory default setting Setting DIP switch of amplifier unit to RUN mode Wiring communication cable between PLC and the interface unit Configuring PLC and Smart Sensor communication setup Performs Smart Sensor teaching and reads out the threshold value 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N 2 1 Hardware Setup 2 1 1 Interface Unit Setting Check whether the current voltage changing switch on the bottom of the interface unit is under initial state Set to a position without a spike Switch fl Position without a spike 2 1 2 Amplifier Unit Setting Change the amplifier unit to RUN mode 2 11 Smart Sensor ZX SF11 ZX LD40 ZX LDA11 N 2 2 Wiring the Communication Cable and Connecting to the Unit 2 2 1 Wiring between Amplifier Unit and Sensor Insert the sensor connector into amplifier unit connector until it is locked gt M G 2 2 2 Connecting of the Amplifier to Interf
74. n Position Specify the target speed command Unit Pulses Speed Velocity Specify the target speed command Unit pps The actual speed of the operation will change if the Speed Command is changed while Execute is ON Acceleration Acceleration Specify the acceleration time time Unit ms Deceleration Deceleration Specify the deceleration time time Unit ms Model Select amp 1 1 axis Unit NC1xx selection amp 2 2 axis Unit NC2xx amp 4 4 axis Unit NC4xx OUTPUT Output Variables ENO ENO 1 ON FB processed normally 0 OFF FB not processed or ended in an error Positioning Done T ON when the positioning operation has been completed completed urns Command 1 ON Aborted Aborted Other Move is moved multiple activation Terminated by STOP Error flag Turns ON when an error has occurred in the FB Error code ErrorlD Returns the error code when an error has occurred in the FB May be Refer to the Related Manuals for details on errors A code of omitted 0000 will be returned when the unit number of axis number is out of range 2 5 Position Control Unit CS1W NC113 133 213 233 413 433 2 5 Position Control Unit CS1W NC113 133 213 233 413 433 You can use Position Control Units for CS series to set up parameters and operation commands Shown below is an example of CS1W NC413 that uses servos for 4 axes performing X axis operation command Servo motor 1 axis connected to NCx of unit numbe
75. n error Busy Flag BUSY Automatically turns OFF when processing is completed Turns ON for one cycle when processing ends normally end Error end Turns ON for one cycle when processing ends in an error Error code ErrorCode Outputs the results from the ID Sensor Unit May be Refer to the Related Manuals for details omitted 0070 Data Carrier communications error 0071 Verification error 0072 Data Carrier missing error 0076 Status Flag 007A Data Carrier address error 007B Battery warning 007C Head error 007D Write protection error FFFF Input parameter error 2 9 Vision Sensor F160 C10 2 9 Vision Sensor F160 C10 Shown below is an example of using CS CJ series CPU unit to change scene number of vision sensor and acquire the scene number 1 Hardware Configuration Console F160 KP F160 VM2M Length 2m Length 2m Controller F160 C10 ol o Camera F150 SLC20 Camera Cable F150 VS3M RS 232C Cable XW2Z 200T Power Supply DC24V Monitor 10 15 F150 MO5L Recommend Monitor Cable S8VS 06024 F150 VM82M OMRON Note This drawing shows connection to CPU units built in port Connection is available for serial communication unit board 2 9 Vision Sensor F160 C10 2 Operational Workflow Connecting console monitor power cable etc Configuring PLC and Vision Sensor communication setup Changes vision sensor s sce
76. ne change contact W0 02 is set to ON by 1 cycle If an error occurs by any reason contact W0 03 is set to ON by 1 cycle W0 00 _Fxxx201_ChangeSceneNo A BOOL ENO Unit selection BOOL Busy Flag FFFF UnitSelect BUSY Wo0 01 Serial Port No INT Normal end Wo 01 amp 1 PortNo W0 02 Scene No INT amp 7 SceneNo Error end Response monitor time INT amp 0 TimeOut 2 9 Vision Sensor F160 C10 Variables Table INPUT Input Variables EN EN 1 ON FB started 0 OFF FB not started Unit selection UnitSelect Specify the connection Unit and the serial port Serial Port No PortNo E Connected to CPU Unit Unit selection FFFF Serial port No Not accessed amp 1 recommended E Connected to Serial Communication Board SCB Unit selection BBBB Serial port No amp 1 Port 1 amp 2 Port 2 E Connected to Serial Communication Unit SCU Unit selection SCU Unit No amp 0 to amp 15 Serial port No amp 1 Port 1 SceneNo Specify the scene number Response TimeOut Specify the response monitor time unit 100 ms monitor time For example amp 100 means 10 seconds amp 0 Default 5 seconds OUTPUT Output Variables ENO ENO 1 ON FB processed normally May be omitted OFF Busy Flag BUSY 0 OFF FB not processed or ended in an error Normal end OK Automatically turns OFF when processing is completed Error end NG Turns ON for one cycle when processing ends normally 2 9 Vision S
77. ne number Acquires changed scene number from vision sensor 2 9 Vision Sensor F160 C10 2 1 Hardware Setup 2 1 1 Connect a console to the vision sensor CONSOLE MONITOR Tae GPa Ferrite Core Approx 10 mm Wrap the cable in one loop in the Ferrite Core 2 1 3 Connect a camera cable to the vision sensor and the camera CAMERA 2 1 4 Connect a ground cable Ground to 100 Q or less Provide a power supply that satisfies the following conditions Output current Source Voltage 1 6A or more DC24V 10 15 Recommendation S82K 05024 Omron 2 9 Vision Sensor F160 C10 2 2 1 Wiring the RS 232C Communication Cable as shown bellow 2 2 Wiring the Communication Cable Recommended cable XW2Z 200T 2m XW2Z 500T 5m To Visual Sensor To PLC cy B If you make your own cable its length must be 15 m or shorter 2 2 2 Connect a cable between CPU unit s communication port of PLC and the vision sensor 2 9 Vision Sensor F160 C10 2 3 Communication Setup 1 Configure the communication setting as shown below Communication Mode Free Transmission Mode Communication Speed 38400 bps Data Bit Length 8 bits Parity Check None Stop Bit 1 bit Start Code None End Code End code setting 0x0D CR PLC Setting Activate CX Programmer then click PC System Setup icon Untitled CX Programmer NewPLC1 NewPr
78. nit JUSP NS115 Use SW1 and SW2 to configure MECHATROLINK communication Yaskawa Electric The following product versions are available setting You can find a version number on the side label Do not change other bits of SW2 than bit 3 from factory shipment W Series Servo Driver Ver 39 or later settings F Unit VER 03 or later Station Number Setting W series servo driver and I F unit cannot operate normally if any Use rotary switch SW1 and piano switch SW2 3 to configure the of them is older product version than the above Use the appropriate settings an Shows in the following table SW2 3 is 10H digit and SW1 is the lower digit progue version aS enownaneve Do not change the setting while the unit is turned on Attaching I F Unit NS115 1 Remove the connector p 7 cover on the W series e driver s option connector HA amp OMRON R88D Wae CN1 0 2 Attach NS115 3 For grounding connect NS115 s ground cable SW2 bit3 Station Number using a screw on a part marked as G or pe 0 Do not set up 110 15 01H t0 OFM 1610 30 10H to TEH 2 3 Position Control Unit CJ1W NCF71 2 3 Connecting Position Control Unit and Servo Driver Connect the Position Control Unit and servo drivers as shown below Connection for MECHATROLINK II Communication Shown below is an example of MECHATROLINK II communication cable connection between a Position Control Unit
79. nt distance command The unit is command unit Speed Velocity Specify the target speed command Unit Command units s The actual speed of the operation will change if the Speed Command is changed while Execute is ON OUTPUT Output Variables ENO ENO 1 ON FB processed normally 0 OFF FB not processed or ended in an error FB not processed Invalid inputs parameter ended in an error Not finished to read the common parameter Positioning Done Turns ON when the positioning operation has been completed completed CommandAborted Turns ON when the other Move command done Duplicate Move Stopped with DECELERATION STOP or EMERGENCY STOP Error flag Turns ON when an error has occurred in the FB Error code ErrorlD Returns the error code when an error has occurred in the FB May be Refer to the Related Manuals for details on errors A code of omitted 0000 will be returned when the unit number or axis number is out of range 2 4 Position Control Unit CJ1W NC113 133 213 233 413 433 2 4 Position Control Unit CJ1W NC113 133 213 233 413 433 Shown below is an example of X axis operation command using Position Control Units for CJ series to set up parameters and operation commands Servo motor 1 axis connected to NCx of unit number 0 is moved to position of 2000 command unit with speed of 2000 command unit s by absolute move command 1 Hardware Configuration CJ Series CPU Unit Pos
80. ode connector completely Master 3G3MV 2 3 3 Connection of 3G3RV The Terminal Block of DeviceNet Communication Card is not a connector Connect the cable connected with DeviceNet Communication Card to T branch Tap as shown below 2 3 4 Connecting Communication Power Supply Connect V red and V black of the communication cable to power source DC24V Communication power supply or pre Ground 100 Q Max 2 4 Creating I O Table Set CX Programmer online and create I O table 2 6 Inverter 3G3MV A20007 ABOOD A4000 3G3RV A2000 A4000 2 5 Creating and Registering the Scan List Scan List is something like an I O Table on DeviceNet which registers information of the Slaves that the Master Unit connected with This List is necessary as this is information indicating where in PLC each slave assigns remote I O In the FB Library of the Inverter the Standard remote I O set at the shipment is conditioned to be used as the fixed allocation Renew fixed allocation and Scan List Turn PLC to Program mode Start Master function 1750 06 ON Clear current Scan List 1750 01 ON Master OUT SYSMAC gt INV IN SYSMAG lt INV Automatically turns OFF when setting switch Selection is finished 1750 08 1 3200 CH to 3263 CH m 3300 3300 CH to 3363 CH amp 1 Factory Perform fixed allocation setting Select allocation area 1 1750 09 3400 CH to 3463 CH m 3500 3
81. ogram1 Section1 Diagram he File Edit Yiew Insert PLC Program Tools Window Help DenRA AR Bell Lelana elap e aR s gt NewProject NewPLC1 C51H H Offline ra PPLETPPPEEPPLELERIELE Programs eB NewProgram1 00 2 Symbols Sectiont va PC System Setup screen pops up PLC Settings NewPLC1 File Options Help Startup CPU Settings Timings SIOL Refresh Unit Settings Host Link Part Feripheral Port Peripheral t4 Communications Settings Standard S600 1 7 2 E Custom Baud Format Mode 30400 z g 1 N RS 232C r Start Code End Code DORS Gasca Bytes 256 CRLF SetEnd Code o0000 Address or Yale P ee Response Timeout NT FC Link Max fo 4 100 me default 5000m cs 1H H CPUG offline Set items marked by red underscores to values as shown above Then connect PLC online and transmit the PC system setup Vision Sensor Setting None Use with the default factory setup 2 9 Vision Sensor F160 C10 2 4 Usage Example of FB Component FB Change Scene FB Name _Fxxx201_ChangeSceneNo File Name _Fxxx201_ChangeSceneNo10 cxf Functional Overview Changes the scene Program Example When contact W0 00 is ON scene number change of the vision sensor is started in the example shown below scene number is changed to 7 After normal sce
82. one instances OMRON FB Library 2 An Example of a Function Block The following figures describe an example of a function block for a time limit circuit to be used in the ladder It is possible to edit the set point of the TIM instruction to reallocate the set time for turning off the output in the ladder rung Using the function block as shown below it is possible to make the time limit of the circuit arbitrary by only changing one specific parameter By changing the input parameter it is possible to allow an arbitrary time limit circuit Ladder diagram 000 00 Timing chart OMRON FB Library 3 Overview of the OMRON FB Library The OMRON FB Library is a collection of predefined Function Block files provided by Omron These files are intended to be used as an aid to simplify programs containing standard functionality for programming PLCs and Omron FA component functions 3 1 Benefits of the OMRON FB Library The OMRON FB Library is a collection of function block examples that aim to improve the connectivity of the units for PLCs and FA components made by Omron Here is a list of the benefits to be gained from using the OMRON FB Library 1 No need to create ladder diagrams using basic functions of the PLC units and FA components More time can be spent on bespoke programs for the external devices rather than creating basic ladder diagrams as these are already available 2 Easy to use A functioning prog
83. ot necessary to create the SoU EOE mpar atire nee basic communications program w 00 00 T w 00 0 INPUT OUTPUT data is clear Parameters are easy to understand and edit OMRON FB Library 3 2 1 Example of using the OMRON FB Library 1 Controlling the predefined components made by Omron can be easily achieved from the PLC ladder diagram Ability to configure low cost communications RS 232C 485 Access by Function Block Example Communication between Temperature controller and PLC Current TemparatureOfXHeater _E5xx202_ReadPV ROOL BQH ONI elect TR Poio Bog Ti BORE aN neINo DING Serial communications Compoway F protocol C Temperature controller Smart sensor Vision sensor Omron Components OMRON FB Library 3 2 2 Example of using the OMRON FB Library 2 High performance communications can be made by DeviceNet level Ability to communicate between PLC and DeviceNet slaves easily CS CJ series PLC Communicate betwee PLC and the devices DeviceNet O ga a Inverter Access by Function block Example data exchange between PLC and the slave devices _Dnet204 GetONTime_PV ROL B99 Peer UnitNo QR Eno Bog BOQ UDINT FINGERS Expl neo controller aS Caw yes 2s Generic slaves such as IO terminal Lame ES OMRON FB Library 3 3 Content of the OMRON FB Library The OMRON FB Library consist of the following 3 3 1 OMRON FB Par
84. pply Short circuit Hold Reads the power supply short circuit hold status from a na Status slaves connected to DeviceNet _Dnet223_GetSensorShort_Stat List of The OMRON FB Library O RFID V600 Fe lomonb Rei _ veo D E a E V600 _V60x401_ SetBit Set Data Carrier Bit Turns ON the specified bit in the Data Carrier _V60x402 _ V60x402_ClearBit Bit Carrier Bit Clear Turns OFF the specified bits in the Data Carrier V60x403_WriteMaskBit Write Data Carrier Mask Bits i the specified data to a Data Carrier using the specified mask _V60x404 WriteCalculation Write Calculation Performs a calculation between Data Carrier data and specified data and writes the result to the Data Carrier V60x405 FillData FillData Fill Data in Data Carrier Writes fill data to a Data Carrier _V60x406_ Copy Copy Data Cartier ssi ie the data from one Data Carrier and writes it to another Data _V60x600_SetSystemSetting _V60x600_SetSystemSetting Set System Settings Sets the mode of the ID Sensor Unit OServo Driver SRV BL omroniib gt l ServoDriver gt AES _SRVO080_Reset Reset Servo Error Resets an error in the E oO Driver _SRV201_ReadParameter Read Servo Parameter Reads parameter information from the Servo Driver R88D Wxx SRV Serial SRV203_ReadAxisError Read Servo Error Reads Servo Driver error information R7D Axx _SRV206_ReadValue Read Servomotor Value Reads a monitor value from the servo driver _SRV401_WriteParameter
85. r 0 is moved to position of 2000 command unit with speed of 2000 command unit s by absolute move command 1 Hardware Configuration Programmable Controller Position Control Unit CS1W NC413 XW2Z 100J A7 Dedicated Connection Cable XW2Z 100J B4 Dedicated Connection Cable XW2B 40J6 2B Serve Terminal Unit 2 5 Position Control Unit CS1W NC113 133 213 233 413 433 2 Operational Workflow 1 Hardware Set a ale Setting unit number by using rotary switch on the front panel Connecting eee ceils Connecting the Position Control Unit and servo drivers via Unit and Servo Driver cable and terminal block conversion unit etc m 3 Creating I O Table Turning the PLC ON al Connecting the CX Programmer Creating the I O table m 4 Position Control Unit Parameter Fi a H Setting common and axis parameters of the Position Control Unit 5 Servo Driver Parameter Setup Adjusting servo driver s gain by using switch on the front panel 6 Usage Example of FB Component Sample program that positions by absolute movement 2 5 Position Control Unit CS1W NC113 133 213 233 413 433 2 1 Hardware Setup Set the Position Control Unit number Use a flat blade screwdriver or other tool to set the unit number to 00 Notice To set up you must turn off the power 2 2 Connecting Position Control Unit and Servo Driver e Using servo terminal unit that inte
86. r Setting Parameter Naine Setup Factory Description constant No figure setting Frequency command Frequency command by Option Card b1 01 setting DeviceNet communication card Operation command Operation command by Option Card b1 02 selection Te ona communication card F6 01 epee oe 1 Fre run Free run stoplerror detecion detection communication error Detection method of at communication outer Detect always error input Operation selection at communication outer error 1 1 Free run stop error detection input Unit selection at frequency command Unit Hz selection reference Concerning other parameters set depending upon operation conditions Concerning change and detail of parameter check the following manuals I532 E1 3 2 Digital Operator I539 E1 4 2 SYSDRIVE 3G3RV Series Set up 2 6 Inverter 3G3MV A20007 ABOOD A4000 3G3RV A2000 A4000 2 7 Usage Example of FB Component FB Move Inverter Hz FB Name _INVDRT032_ MoveVelocityHz File Name _INVDRT032_MoveVelocityHz10 cxf Functional Overview Outputs a run signal rotation direction and speed to the Inverter Program Example Rotate the Inverter 20 connected with DeviceNet Unit No 10 Unit No 10 TJA Area selection 1 Inverter DRT2 20 DRT2 20 ENO Aways ON _INVDRT032_ MoveVelocityHz eS BOOL BOOL EN ENO Speed agreement Area selection INT BOOL Contact B amp I Select InVelocity Aborted Master Unit No INT BOOL Contact C amp 10
87. ram is achieved by loading the function block file to perform the target functionality then by inputting an instance function block call instruction invocation to the ladder diagram program and setting addresses parameters for the inputs and outputs 3 Testing of program operation is unnecessary Omron has tested the Function Block library Debugging the programs for operating the unit and FA components for the PLCs is unnecessary for the user 4 Easy to understand The function block has a clearly displayed name for its body and instances A fixed name can be applied to the process The instance function block call instruction invocation has input and output parameters As the temporary relay and processing data is not displayed the values of the inputs and outputs are more visible Furthermore as the modification of the parameters is localised fine control during debugging etc is easier Finally as the internal processing of the function block is not displayed when the instance is used in the ladder diagram the ladder diagram program looks simpler to the end user 5 Extendibility in the future Omron will not change the interface between the ladder diagram and the function blocks Units will operate by replacing the function block to the corresponding FB for the new unit in the event of PLC and the FA component upgrades for higher performance or enhancements in the future A fixed name can be named to the processes a It is n
88. ree channels of temperature controller s unit number 1 After normal readout termination contact W0 02 is set to ON by 1 cycle and the current values are outputted to D100 If an error occurs by any reason contact W0 03 is set to ON by 1 cycle W0 00 _E5xx202 ReadPV 1 BOOL Unit selection EN Busy Flag weer INT WO 01 ee Serial Port No UnitSelect Normal end ai INT W0 02 Controller unit No PortNo Error end si e i O rocess value Channel bs INT D100 ChannelNo 2 12 Temperature Controller EYAN AE Variables Table INPUT Input Variables EN EN 1 ON FB started 0 OFF FB not started Unit selection UnitSelect Specify the connection Unit and the serial port f E Connected to CPU Unit Serial Port No PortNo Units lecion FFFF Serial port No Not accessed amp 1 recommended E Connected to Serial Communication Board SCB Unit selection BBBB Serial port No amp 1 Port 1 amp 2 Port 2 E Connected to Serial Communication Unit SCU Unit selection SCU Unit No amp 0 to amp 15 Serial port No amp 1 Port 1 amp 2 Port 2 Controller unit No Specify the unit number of the Controller E5AR E5ER amp 0 to amp 99 E5ZN amp 0 to amp 15 0 to F E5CN E5CN U amp 0 to amp 99 Channel No ChannelNo E5AR E5ER Specify the channel number amp 1 Channel 1 Etc amp 4 Channel 4 E5ZN Specify the channel number amp 1 Channel 1 amp 2 Channel 2 E5CN E5CN U Always amp 1 OUTP
89. rent Limit Input 46 EXT3 External Latch Signal 3 NCL External Interrupt Input Signal 3 Backward Current Limit Input This is a standard setup of input signals when a servo driver R88D WTL1 and MECHATROLINK II I F Unit JUSP NS115 are combined 4 2 3 Position Control Unit CJ1W NCF71 2 8 Usage Example of FB Component FB Relative Move FB Name _NCF021_ MoveRelative _DINT File Name _NCFO021_ MoveRelative _DINT10 cxf Functional Overview Positions using a relative move Program Example Servo motor 1 axis connected to NCF of unit number 0 is moved to position of 2000 command unit with speed of 2000 command unit s by relative move command Always ON P_On _NCF011_MoveAbsolute _ DINT Bit E BOOL BOOL EN ENO Unit No INT BOOL Positioning completed amp 0 UnitNo Done Bit B Axis No _ INT BOOL Abort Axis 1 gt amp 1 Axis Command Aborted Bit C Start BOOL BOOL Error flag Bit A Execute Error Bit D Position command DINT WORD Error code 2000 command units 2000 Position ErrorlD Speed command _ DINT 2000 command units s gt 2000 Velocity After normal movement W01 03 is set to ON by 1 cycle If an error occurs by any reason W10 05 is set to ON by 1 cycle 2 3 Position Control Unit CJ1W NCF71 Variables Table INPUT Input Variables Variable name Description 1 ON FB started 0 OFF FB not started C Position Position Specifies a relative moveme
90. rmally May be omitted 0 OFF FB not processed or ended in an error Busy Flag BUSY Automatically turns OFF when processing is completed ENO Normal end Turns ON for one cycle when processing ends normally Error end Turns ON for one cycle when processing ends in an error Error code ErrorCode Outputs the results from the ID Sensor Unit May be omitted Refer to the Related Manuals for details 0070 Data Carrier communications error 0071 Verification error 0072 Data Carrier missing error 0076 Status Flag 007A Data Carrier address error 007B Battery warning 007C Head error 007D Write protection error FFFF Input parameter error FB Read Data Carrier Data FB Name File Name Functional Overview Program Example 2 8 RFID ID Sensor v600 HOO _V60x200 ReadData _V60x200_ ReadData10 cxf Reads data to a Data Carrier When contact W1 00 is ON ID sensor reads 4 byte data from address 10 After normal readout contact W1 02 is set to ON by 1 cycle and the readout value is outputted to D2000 If an error occurs by any reason contact W1 03 is set to ON by 1 cycle W1 0 W1 1 Data Carrier read address amp 10 Bytes to read from Data Carrier amp 4 Read data storage area type P_DM Read data storage word address amp 2000 Communications designation amp 0 Processing designation amp 0 Cancel W1 15 _V60x200_ ReadData Busy flag W1 1 Normal end W1 2 Error
91. rocessing _ETNO002_ SOCKET TcpOpendActive Open TCP Socket Active Issues a request to the specified Ethernet Unit to open a TCP socket using active processing eros soseta aeetos Proms ToP voae epora ornes ones eseme Poar D a a e E _SCx001_ResetPort Reset Serial Port Resets a serial port _SCx002_ PMCR_Abort Abort in Protocol Macro Mode Aborts execution in Protocol Macro Mode SCx E T a e a UNIT _UNITOO1_Restart Unit Restart Restarts the unit or board an oO Position Controller List of The OMRON FB Library E D l Position NCF FBL gt Jomroniib gt f Controller gt i j NCF Function Name Basiofunion o Target _NCF010_MoveAbsolute__ REAL Move Absolute T O O using an absolute move _NCF011_MoveAbsolute_DINT Absolute Move Positions using an absolute move _NCFO020 MoveRelative_ REAL Move Relative Positions using a relative move CJ1W NCF7 Position NCx Era a i Controller gt NCx Fs E A A _NCx010_MoveAbsolute REAL Move Absolute Positions using an absolute move _NCx011_MoveAbsolute_DINT Move Absolute Positions using an absolute move _NCx020_MoveRelative_ REAL Move Relative Positions using a relative move _NCx021_MoveRelative_DINT Move Relative Positions using a relative move _NCx050_Home_REAL Origin Search Performs an origin search operation to establish the origin CS1W _NCx051_Home_DINT Origin Search Performs an origin search operation to establish the origin NC113 1
92. rs Unit Number Switches l Connector Function Setting Switch Input Type DIN Track Switch Mounting Pin Terminal Block Sliding Latch Lock Lever Sliding Latch 2 1 2 Unit Number Setting Set the Unit No using flat blade screw driver referring the left drawing Set the Input Type using flat blade screw driver referring the left drawing 200 to 1300 C 300 to 2300 F 0 0 to 500 0 C 0 0 to 900 0 F 100 to 850 C 100 to 1500 F 0 0 to 400 0 C 0 0 to 750 0 F 200 0 to 400 0 C 300 0 to 700 0 F 0 0 to 400 0 C 0 0 to 750 0 F 2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 2 1 4 Temperature Control Function Setting In this example only SW8 is set to ON to use factory default setting as it is Switch function and factory settings A a a a setting Operation when CPU unit is in Continue Stop PROGRAM mode a 2 1 5 Wiring of thermocouple BLOGVECL Connect the wiring based on the following terminal assignment To use Loop 1 connect the thermocouple to Input 1 and the control target output to Output 1 CJ1W TCO001 4 loops NPN outputs Do not connect any cable to the N C terminal 2 1 6 Power On Turn the PC main unit on Hardware setting described in the chapter 1 must be done when the power is turned off After power on SW settings are read SW settings are read only at power on 2 1 7 Creating I O Ta
93. rvo Driver W Series Servo Motor 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL 2 Operational Workflow 1 Wiring and setting of Serial Wirin rial cat ee dri E E lint iring serial communication unit and servo driver Setting serial communication unit number 2 Creating I O table Turn PLC power supply ON Connecting CX Programmer Creating I O table iH m a Setting communication parameter to the parameter area DM assigned by the Unit No Restarting the unit to write the value set in the parameter area into serial communication unit 3 Communication Setting of Serial Communication Unit 4 in rvo Dri Seung Cie ies Setting servo drive unit No using switches on the front 5 Usage Example of FB Component Reads servo parameters 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL 2 1 Wiring and setting of Serial Communication Unit 2 1 1 Setting of Serial Communication Unit and Servo Driver Configure serial communication unit and servo driver as shown below Power Supply CJ Series Serial Communication Unit Unit CPU Unit CJ1W SCU41 Up to 15 servo unit can be connected H RS232 port of CPU and peripheral When using RS232 port a level converter port can not be used CJ1W CIF11is needed Q9 n A Use RS422 485 communication port Servo Connecting Cable icati XW2Z OOv B7 Communication Cable XW2Z OODU C1 S
94. s easy to set up when you change axis parameters For how to set up parameters using CPU unit s free addresses see documentation W426 E1 4 4 Axis Parameters 2 6 Starting MECHATORLINK Communication MECHATROLINK communication starts when the connection establishment relay of relay areas for common operations is turned from OFF to ON For Position Control Unit with unit number 0 connection establishment relay is assigned to contact 1501 00 00 bit MECHATROLINK communication 1501CH a starts when OFF gt ON Connection established If communication with the registered device is normal a bit is set that corresponds to the axis communication status of relay areas for common operation For Position Control Unit with unit number 0 axis communication status is assigned to each bit of 1522CH 00 bit Bits from 00 to 15 correspond to 1522CH communication status of axes 1 16 When communication with an axis registered in the scan list is normal its corresponding bit is turned to ON Axis 1 is communicating 2 3 Position Control Unit CJ1W NCF71 2 7 Servo Driver Parameter Setup Set up servo parameters for a connected servo driver For details of servo parameters see User s Manual of W series AC SERVO MOTORS SERVO DRIVERS Notice When PLC program sends data by using _ NCF401_WriteParameter of FB Library but this example shows change of external input signal assignment through the front panel Procedure Acti
95. sed to connect serial communication unit or board to servo terminal board If you use three or more servo motors the same cable can be used between servo terminal boards Name Name Name Communication Cable for Communication Cable for Communication Cable for Serial Communication Unit Serial Communication Unit Serial Communication Unit It cannot be connected to RS232 connector Use CJU1W CIF11 for RS232 Position Control Unit Connection Cable Select an appropriate cable for servo terminal board and position control unit from the following table Position Control Servo Driver Connection Cable Type Servo Terminal Block Unit Code CS1W NC213 XW2Z O00J A7 CS1W NC413 SmartStep XW2Z O000J A9 CS1W NC233 XW2Z O000J A11 CS1W NC433 SmartStep XW2Zz O000J A13 XW2B 20J6 4A ETETA XW2Z7 OOOJ A15 with Communication CJIW NC413 SmartStep XW2Z OODu A17 rere XW2Z O00J A19 CJ1W NC433 SmartStep XwW2Zz O000J A21 CS1W NC113 SmartStep xw2z OO0O0OJ A8 E XW2Z O000J A10 1W NC133 SmartStep Xw2z O000J A12 XW2B 20J6 4B eries 2Z A14 icati CJ1W NC113 Communication SmartStep XWe2Z LILILIJ A16 XW2Z O000J A18 CJ1W NC133 SmartStep Xxw2z OOLOJ A20 Single axis communication cable for Position Control Unit is not prepared Use two axes cable or make by yourself 2 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL Terminal Resistance Treatment In case of 4 wire RS422 Use RT only for the final servo R7D APA5L
96. ssed An input variable is out of range The corresponding parameter number is not supported The value returned from the Servo Driver 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL 3 References Target Servo Driver Shown below are target servo drivers for communication multiple models can coexist W Series R88D WT_H Single phase 200V 3 R88D WT__H phase 200V R88D WT__ HL R88D WT__ HL SmartStep A Series R7D AP__H Single phase 200V 3 phase 200V RD AP_ L Single phase 100V Target PLC Models Serial communication unit Ver 1 2 or more is needed You can use level converter from RS232 to RS422 CJ1W CIF11 to communicate through a R8422 port ae CS1W SCB21 V1 RS232 2 ports CS1W SCU21 V1 RS232 2 ports Level converter from RS232 to RS422 RS 422A Adapter CJ1W CIF11 Converts RS 232C to RS 422A 485 no isolation CJ1W CIF11 Direct connection with RS232 type 9 pin connector at PLC RS422 Converter For PLC side dedicated cable NT AL001 XW2Z 070T 1 is required In both cases you need to make the cable by yourself as RS422 side is a terminal block 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL Servo Wiring Devices R7D APOOH APOOL Servo Terminal Board We recommend servo terminal board with communication Servo Terminal Unit with Servo Terminal Unit with Servo Terminal Unit with Communication Communication Communication Communication Cable This cable is u
97. t CJ1W NC413 Position Control Unit CJ1W NC413 Dedicated Terminal XW2B 40J6 4A 1 Block with Communication Function Servo Terminal Block NC End Cable XW2Z 1 00J A1 7 1 Sbi for SmartStep only Power Unit NC End Cable for SmartStep only XW2Z 100J A17 Driver Cable XW2Z 100J B7 1 for SmartStep only XW2Z B7 Servo Driver SmartStep R7D APA3L oo n Motor Connection Cable R7A CEA003S otor Connection Cable i I O Power Supply S82K 01524 Driver Cable Servo Driver SmartStep R7D AP Servo Motor mi R7M A R7M AP amp rn R7A CEA I O Power Supply S82K 01524 Notice on Wiring 2 3 Creating I O Table Set CX Programmer online and create I O table 2 4 Position Control Unit CJ1W NC113 133 213 233 413 433 2 4 Position Control Unit Parameter Setup Set up common and axis parameters Common Parameter In this example common parameter is as shown below when unit number is set to 0 Word Setting Name Configuration Explanation Same for all models DM20000 0000 Operating data area Specifies setup area for operation data designation 0000 Fixed DM for Special I O unit DM20001 0000 Beginning word of Specifies start channel for operation data area operation data area Valid if 000D or OXOE is specified in the above DM20002 0F01 Axis parameter Shown below are typical settings designation 0000 Operates by parame
98. t Files The OMRON FB Part file is prepared using the ladder diagram function block for defining each function of the PLC unit and the FA component The files contain a program written in ladder diagram and have the extension CXF The file name of the OMRON FB Part file begins with under score When the OMRON FB Library is installed onto a personal computer the OMRON FB Part files are classified in the folder appropriate to each PLC Unit and FA component in the Omron Installation directory 0 x File Edit View Favorites Tools Help Back GQsearch Pyrolders CBristory AS GE X A Ea Address CPU Go Folders fa _ CPUO01_TP_BCD cxf CXF File ja CPUIOO1_TP_BCD pdf 55KB PDF File _CPU002_TP_BIN cxf 2KB CXF File OMRON CX Programmer Cx Server Lib ja _CPU002_TP_BIN pdf 55KB PDF File FBL ja _CPUD03_TON_BCD cxf 2KB CXF File 5 Omronlib ja _CPU003_TON_BCD pdf 55KB PDF File Barcode Scanner Inverter Laser sensor a CPUO04_TON_BIN cxf 2KB CXF File ja _CPU004_TON_BIN pdf 55KB PDF File ja _CPU005_TOF_BCD cxf 2KB CXF File T a CLK es _CPU005_TOF_BCD pdf 55KB PDF File CPL _CPU006_TOF_BIN cxf 2KB CXF File ETN a _CPUOD6 _ TOF_BIN pdf SSKB PDF File scu _CPUO07_MakeClockPulse_BCD cxf 2KB CXF File a _CPUO07_MakeClockPulse_BCD pdf 55KB PDF File _CPU008_MakeCloc
99. t of range e Error end of FB e Common parameters are not read in Speed InVelocity ON Speed agreement agreement Aborted CommandAb Aborted orted one Move is activated Multiple activation e Stopped using STOP Error end Error ter Other status Error in FB Error ErrorlD 0000 No error or communications error prevented getting the error number number 0001 to FFFF Error number from Inverter Refer to the Related Manuals for details 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOUOH APOOL 2 7 Servo Driver R88D WTOO WTOOOH WTOOHL R7D APOOH APOOL Shown below is an example of using CS CJ series CPU unit to write read parameters or display the status Read Pn101 Velocity Loop Integration Time Constant from Servo Unit No 6 of W series Servo Driver connected with Serial Communication Unit No 5 1 Hardware Configuration PC CX Position Kn F raves CX Programmer aig y ru Serial Communication Unit CJ1W SCU41 Communication Cable XW2Z OO0U C1 Position Control Unit Connecting Cable XW2Z OODU A17 Up to 15 servo unit can be connected Communication Cable XW2Z OOOU C1 Servo Terminal Block with Communication Function W2Z 40J6 4AZ Servo Terminal Block with Communication Function W2Z 40J6 4AZ Servo Connecting Cable XW2Z OOOU B7 Servo Connecting Cable XW2Z OOOU B8 Servo Driver SmartStep A Series Servo Motor Note Se
100. ta write relay is assigned to contact 1500 01 When this contact is turned from OFF to ON data write is started into the Position Control Unit 01 bit Performs data transfer when 1500CH LAHON OPON Data Write When data write is finished data transferring flag turns to OFF Data transferring flag is assigned to contact 1515 14 14 bit ON while data is being written 1515CH OTT OFF when data write is finished Data i ata is being transferred 2 3 Position Control Unit CJ1W NCF71 Saving Position Control Unit Setup Saves configured common parameters into flash memory in the Position Control Unit Data save relay of relay areas for common operation is assigned to contact 1500 03 Set this contact from OFF to ON 03 bit Saves parameters into flash memory Taou in the Position Control Unit when OFF gt ON S aves data at ON Data transferring flag is assigned to contact 1515 14 14 bit ON while data is being saved 1515CH CA a E came te ean ON while data is being transferred Restarting Position Control Unit When saving of Position Control Unit setup is finished restart the Position Control Unit to enable the setup Turn off the PLC main unit and turn it again or perform Position Control Unit restart Restart flag is assigned to AR501 00 Axis Parameter This operation example uses axis parameters of the Position Control Unit s factory setup We recommend that you use dedicated software WS02 MNTC1 that i
101. terminal is internally connected to the common terminals pc24v 4 The following crimp terminal is applicable R1 25 3 round with open end 5 Allocate BKIR Brake Lock to CN1 pin 27 2 3 Creating I O Table Set CX Programmer online and create I O table 2 5 Position Control Unit CS1W NC113 133 213 233 413 433 2 4 Position Control Unit Parameter Setup Set up common and axis parameters Common Parameter In this example common parameter is as shown below when unit number is set to 0 DM20000 0000 Operating data area Specifies setup area for operation data designation 0000 Fixed DM for Special I O unit DM20001 0000 Beginning word of Specifies start channel for operation data area operation data area Valid if 000D or OXOE is specified in the above DM20002 0F01 Axis parameter Shown below are typical settings designation 0000 Operates by parameters in the Position Control Unit OFO1 Initial value in the Position Control Unit factory setup 0001 Parameter specified in DM DM20003 0000 This area is not used Leave set to 0000 Setup is enabled when the unit is turned on or restarted Turn the PLC OFF and ON again To change and use axis parameters you must set the bit OFF like DM20002 0E00 for details see the documentation Axis Parameter Initial factory setup is used here Activate the unit by force with initial factory setup by using common parameter DM20002 shown above If you need
102. ters in the Position Control Unit OFO1 Initial value in the Position Control Unit factory setup 0001 Parameter specified in DM DM20003 0000 This area is not used Leave set to 0000 Setup is enabled when the unit is turned on or restarted Turn the PLC OFF and ON again To change and use axis parameters you must set the bit OFF like DM20002 0E00 for details see documentation W397 E1 Axis Parameter Initial factory setup is used here Activate the unit by force with initial factory setup by using common parameter DM20002 shown above If you need to change modify parameters shown above set and use parameters at CX Position 2 5 Servo Driver Parameter Setup Servo Parameter SmartStep provides gain setup switch in the front that allows easier adjustment First set gain setup switch to 3 and turn the unit ON If the movement is not good adjust it by automatic or manual tuning Actual unit may require finer adjustment of servo parameters thus you must adjust the unit individually For details see 1533 E1 4 2 Switch Setting 4 5 Gain Adjustment and 4 6 User Parameter Note that detail parameter adjustment requires the parameter unit R7A PRO2A 2 4 Position Control Unit CJ1W NC113 133 213 233 413 433 2 6 Usage Example of FB Component FB Absolute Move FB Name _NCx011_ MoveAbsolute_DINT File Name NCx011_MoveAbsolute_DINT10 cxf Functional Overview Progr
103. ting indicator side to terminal 22 on the temperature controller side 2 12 Temperature Controller E5ZN 20 Set DIP SW9 of communication converter K8SC to OFF Connect communication converter s terminal number 9 and 12 to terminal unit s terminal number 23 and 24 respectively Connect the power cable to the communication converter s terminals 1 and 4 Connect SG gray SD orange and RD white of attachment adapter K32 23209 to the communication converter s terminals 3 5 and 6 respectively 2 1 4 Setting Communication Converter K38SC Input Power Note 1 If the communication condition is set to RS 485 DIP SW9 is OFF short circuit 8 9 and 11 12 internally Available input voltage is AC100 to 240V or AC DC24V no polarity 2 12 Temperature Controller E5ZN 20 2 2 Wiring the Communication Cable and Connecting to the Unit 2 2 1 Wiring Communication Cable To attachment To PLC adapter 2 3 A 5 R 2 SD 3 BR 4 psa 5 por 6 prs 7 cs 8 ej e Connect SD signal of attachment adapter and SD signal of PLC side e Cable length must be 15 m or less 2 2 2 Connect the attachment adapter to the built in 232C port of the CPU unit 2 12 Temperature Controller EYAN AE 2 3 Communication Setup Configure the communication setting as shown below Communication Mode Serial gateway mode Communication Speed 9600 bps Data Bit Length 7 bits Parity Check
104. tinum thermo resistance with heater disconnection warning NPN output type type code CJ1W TC103 In this example CJU1W TC103 is not used and need not to be connected 2 To stop temperature control set the loop s STOP bit to 1 ON If the control is forced to terminate only by external switch incorporated in the heater controllability gets worse for PID control 2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 2 Operational Workflow 1 Hardware Setup Setting unit No using a rotary switch on the front panel Setting input type using a rotary switch on the front panel Setting temperature control function using a rotary switch on the front panel Wiring the compensating lead wire of heat coupler to the unit 2 Creating I O Table Turning PC main unit ON Connecting the CX Programmer Creating I O table 3 Setting Initial Setup Data Setting warning mode warning hysteresis range Turning restart flag of temperature control unit ON and read setting value into the unit 4 Setting Operation Control Data Setting PID constant operation cycle alarm mode setting figures etc in DM parameter area 5 Usage Example of FB Component Sample program that set setting value into the temperature setting unit 2 13 Temperature Control Unit CJ1W TC001 101 003 103 002 102 004 104 2 1 Hardware Setup 2 1 1 Name of parts and Hardware Switches Status Output Indicators Indicato
105. to change modify parameters shown above set and use parameters at CX Position 2 5 Servo Driver Parameter Setup WServo Parameter If you use a motor with no load you can check the operation under initial factory setup If the movement is not good adjust it by automatic or manual tuning To actually use the unit connecting to a machine finer adjustment might be required You must adjust the unit with the machine For details see user s manual SBCE 309 4 7 Adjustment Function 2 5 Position Control Unit CS1W NC113 133 213 233 413 433 2 6 Usage Example of FB Component FB Absolute Move FB Name _NCx011_MoveAbsolute DINT File Name _NCx011_MoveAbsolute_DINT10 cxf Functional Overview Positions using an absolute move Program Example Servo motor 1 axis connected to NCx of unit number 0 is moved to position of 2000 command unit with speed of 2000 command unit s by absolute move command Servo Motor 1 Servo Motor Axis 1 Axis 1 W1 00 W1 02 W1 01 W1 03 W1 04 Error Command Aborted W1 02 Start Always ON P_On _NCx011_MoveAbsolute_DINT BOOL BOOL EN ENO Unit No INT BOOL Positioning completed amp 0 UnitNo Done W1 02 Axis No INT BOOL Abort amp 1 Axis Command Aborted W1 03 Start BOOL BOOL Error flag W1 01 Execute Error W1 04 Position command DINT WORD Error code Position ErrorlD DINT Velocity DINT 2000 pulses gt 2000 Speed command 2
106. tput for a specified time after the input turns _CPU003_TON_ BCD BCD ON Delay Turns ON the output a specified time after the input turns ON _CPU004_ TON _ BIN Binary ON Delay Turns ON the output a specified time after the input turns ON _CPU005 TOF BCD BCD OFF Delay a OFF the output a specified time after the input turns _CPU006 TOF BIN Binary OFF Delay ey OFF the output a specified time after the input turns i ifi i CJ1H Op do7 NakeGidckPulse BOD Ika ON TimelorF Time Glock Pussinbeo e eee clock pulse Wilhthe spacifed Oh fime and OFF E time and outputs it to ENO CAUCUS NakeCiockP lss BIN MakeON Time FF Tima Glock Pulse in Binary 9S a clack pulse with e specified ON Ue and OPF time and outputs it to ENO _CPU010_ SendData Send Data Sends data to a node on a network _CPU011_ReceiveData Receives data from a node on a network _CPU012_SendCommand Send Command Sends command data to a node on a network _CPU013_ PMCR Bacute Communicaons Sequence Calls a registered communications sequence protocol data and executes it _CPU014_RXD Receive from Communications Port Receives the specified number of bytes of data from the port _CPU015_TXD Send from Serial Port Sends the specified number of bytes of data from the port List of The OMRON FB Library ETN BL omroniib gt r gt em E _ETNO01_ SOCKET TcpOpenPassive Open TCP Socket Passive Issues a request to the specified Ethernet Unit to open a TCP socket using passive p
107. vate setup mode PRO2W Frontpanel Display example Explanation operation key operation m Pind Configure parameter No PRO2ZW Frontpanel Display example Explanation operation key operation Set the parameter number you want to set or check If MENE the parameter number is too big you can set the ae less th M 3 ij operation to be performed more quickly while changing a an the operation digits using the Left Key front panel DATA Key for less than 1 s or Right Key Indicate parameter value PRO2W Frontpanel Display example ae Operation key operation owe Press the DATA Key front panel DATA Key for 1 s min para Arin to display the parameter setting Set values shown above to 50B and 511 in the same manner This configures assignment of external input signals input signal selection for the servo driver as shown below 2 3 Position Control Unit CJ1W NCF71 Input Terminal Input Signal Description Remarks at Factory Setup CN1 Name 1 DEC Back to Origin Deceleration LS MING Gain Reduction Input Origin Proximity Input Signal POT Forward Drive Inhibit Input No assignment Forward Limit Input Signal OT i 4 4 42 43 4 N Backward Drive Inhibit Input No assignment Backward Limit Input Signal EXT1 External Latch Signal 1 RESET External Interrupt Input Signal 1 Alarm Reset Input 45 EXT2 External Latch Signal 2 PCL External Interrupt Input Signal 2 Forward Cur
108. y switches on the front panel Setting transmission rate using DIP switches on the front panel Setting terminal resistance using DIP switches on the front panel 2 Mounting the Unit and l l Wiring of Communication Mounting the unit to PLC Cable Wiring communication cable 3 Creating I O Table Turning all nodes ON Starting CX Programmer and creating I O table 4 Controller Link Unit s DM Parameter Area Setting all nodes DM parameter areas Setup and Data Link Activation Setting data link activate bit and activate data link Refer to Operation Manuals for detail instructions Wiring Type Controller Link Units Operation Manual W309 E1 Optical Ring Controller Link Units Operation Manual W370 E1 2 1 Controller Link Unit CJ1W CLK21 V1 2 1 Hardware Setup of Controller Link Unit 2 1 1 Hardware Switches CJ1W CLK21 V1 bi NS D Rotary SW for unit No setting aTa 2 9 Ld 07 cA Rotary SW for node address setting DIP switch for transmission rate setting Terminal resistance setting switch 2 1 2 Unit Number Setting AIA UNIT Set the Unit Numbers for node 1 and 2 as described on the No left Unit Number 0 As the factory default setting is 0 it is not need to be set 2 1 3 Node Address Setting Set the node address using flat blade screw driver Node Node Address Address gt NODE 2 10 digits See No X10 13 ojo Unit digits Sms lt

Download Pdf Manuals

image

Related Search

Related Contents

Emerson 95 Series Pressure Reducing Regulators Data Sheet  Operating Manual Compact balance  取扱説明書 - デイトナ  BlueStacks  17753 NABT-28  Safety and Operation Manual Manual de Seguridad y      Samsung NT-X22 User Manual  Klipsch P-38F  

Copyright © All rights reserved.
Failed to retrieve file