Advertisement

Advertisement

Table of Contents
loading

Summary of Contents for Omron FB LIBRARY

  • Page 2 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...
  • Page 3: Table Of Contents

    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- 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-A2...
  • Page 4 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.
  • Page 5: Chapter 1 What Is Omron Fb Library

    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 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...
  • Page 6 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.
  • Page 7 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.
  • Page 8 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...
  • Page 9 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...
  • Page 10 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. Access by Function block CS/CJ series Example: data...
  • Page 11 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.
  • Page 12 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.
  • Page 13 Chapter 2 Connecting Method for Units/Control Components 2-1 Controller Link Unit CJ1W-CLK21 –V1 2-2 DeviceNet Slave (DRT2 Series) DRT2- 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-A2 /-AB /-A4 , 3G3RV-A2...
  • Page 14 2-1 Controller Link Unit CJ1W-CLK21-V1...
  • Page 15: 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 SYSMAC SYSMAC CPU Unit CPU Unit CJ Series CJ Series CJ1 G/H-CPU CJ1 G/H-CPU CJ1M-CPU...
  • Page 16 2. Operational Workflow CJ1W-CLK21-V1 1. Hardware Setup of Setting unit number using rotary switches on the front panel Controller Link Unit Setting unit number using rotary switches on the front panel Setting node address using rotary switches on the front panel...
  • Page 17 Set the Unit Numbers for node 1 and 2 as described on the 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.
  • Page 18 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...
  • Page 19 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, Controller 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.
  • Page 20 2-1 Controller Link Unit CJ1W-CLK21-V1 2-1-10. DM Parameter Area Setting Up of 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. Setup Value Description Master station normal station configuration: Master station...
  • Page 21 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.
  • Page 22 Functional Overview Starts the data links At power on (A200.11, 1 cycle ON flag is ON at power ON), use Controller Link unit’s soft SW to set DM parameter area’s data link activation bit to ON to activate the data link.
  • Page 23 DeviceNet Slave (DRT2 Series) DRT2-...
  • Page 24: Devicenet Slave (Drt2 Series) Drt2

    2-2 DeviceNet Slave (DRT2 Series) DRT2- 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 Unit Number 1 CS/CJ Series 125 Kbps Terminal Resistance...
  • Page 25 Turn the power ON. Turn the power ON. Creating I/O Table Creating I/O Table 4. Usage Example of Sample program that reads out operation time of the unit. Sample program that reads out operation time of the unit. FB Component...
  • Page 26 2-1. Hardware Setup 2-1-1. Master Unit Hardware Setup 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: Each pin (Sw 1 to 4) sets following functions.
  • Page 27 Rotary Switches for Node Address Setting (1) Set the slave node address (rotary switch) . In this example, node address is set to 15. The node address must not overlap that of other node (master/slave) in the network. Node Address Setting (One’s digit) Node Address Setting (Ten’s digit)
  • Page 28 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) . Shielded wire 3.
  • Page 29 2-2 DeviceNet Slave (DRT2 Series) DRT2- 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.
  • Page 30 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 D0. As a result, &10 is stored in D0.
  • Page 31 2-3 Position Control Unit CJ1W-NCF71...
  • Page 32: 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.
  • Page 33 CJ1W-NCF71 2. Operational Workflow 1. Position Control Unit Setup Setting unit number by using rotary switch on the front panel Setting unit number by using rotary switch on the front panel 2. Servo Driver Setup Attaching MECHATROLINK-II I/F Unit to Servo Driver...
  • Page 34 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 Setup Range: 0 to F (Unit No.0 to Unit No.15)
  • Page 35 I/F Unit (JUSP-NS115) Note: Usage condition must be: L1 + L2 + ... + Ln =< 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.
  • Page 36 Destination address to be written in the Position Control Unit 1838(Hex)= Start address of common parameters Data 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 OFF->ON.
  • Page 37 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.
  • Page 38 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.
  • Page 39 (External Interrupt Input Signal 2) (Forward Current Limit Input) EXT3 External Latch Signal 3 (External Interrupt Input Signal 3) (Backward Current Limit Input) This is a standard setup of input signals when a servo driver (R88D-WT ) and MECHATROLINK-II I/F Unit (JUSP-NS115) are combined.
  • Page 40 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. Unit No.: 0 &0...
  • Page 41 Turns ON when an error has occurred in the FB. Error code ErrorID 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.
  • Page 42 2-4 Position Control Unit CJ1W-NC113/133/213/233/413/433...
  • Page 43: 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.
  • Page 44 CJ1W-NC113/133/213/233/413/433 2. Operation Workflow 1. Hardware Setup Setting unit number using rotary switches on the front of the unit Setting unit number using rotary switches on the front of the unit 2. Connecting Position Control Unit Connecting Position Control Unit and servo driver using cables,...
  • Page 45 S82K-01524 Notice on Wiring • If you use a component of different type in your system from the above, see servo system complete catalog or others and ensure the combination. • SmartStep must be connected to X-axis side. You cannot use it on Y-axis side only.
  • Page 46 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...
  • Page 47 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. Unit No.: 0 &0...
  • Page 48 Turns ON when an error has occurred in the FB. Error code ErrorID 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.
  • Page 49 2-5 Position Control Unit CS1W-NC113/133/213/233/413/433...
  • Page 50 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 number 0 is moved to position of 2000 (command unit) with speed of 2000 (command unit/s) by absolute move command.
  • Page 51: Position Control Unit Cs1W-Nc113/133/213/233/413/433

    CS1W-NC113/133/213/233/413/433 2. Operational Workflow 1. Hardware Setup Setting unit number by using rotary switch on the front panel. Setting unit number by using rotary switch on the front panel. 2. Connecting Position Control Connecting the Position Control Unit and servo drivers via...
  • Page 52 2-2. Connecting Position Control Unit and Servo Driver • Using servo terminal unit that integrates connector and terminal block allows you to reduce wiring between servo driver and position control unit. • Connection cable and terminal unit depend on the servo driver to be connected.
  • Page 53 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”. *1. The XB contact is used to turn ON/OFF the electromagnetic brake. *2. Do not connect unused terminals.
  • Page 54 2-5. Servo Driver Parameter Setup Servo 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.
  • Page 55 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. Unit No.: 0 &0...
  • Page 56 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.
  • Page 57 2-6 Inverter 3G3MV-A2 /-AB /-A4 3G3RV-A2 /-A4...
  • Page 58 2-6 Inverter 3G3MV-A2 /-AB /-A4 3G3RV-A2 /-A4 Shown below is an example of using CS/CJ series CPU unit to start/stop a motor or set the parameters. 1. Hardware Configuration DeviceNet Master Unit Power CJ Series (CJ1W-DRM21) Unit CPU Unit Communication...
  • Page 59: Inverter 3G3Mv-A2 /-Ab /-A4

    Setting Unit No., Node Address and Communication Rate Setting Unit No., Node Address and Communication Rate DeviceNet Master Unit of each inverter unit using the switch on the front panel. of each inverter unit using the switch on the front panel. 2. Mounting DeviceNet...
  • Page 60 2-1. Master Unit Hardware Setup Explanation about each switch 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...
  • Page 61 (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.
  • Page 62: 3G3Rv-A2

    (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).
  • Page 63 (3) For 3G3RV, 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.
  • Page 64 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.
  • Page 65 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) . Shielded wire 3.
  • Page 66 /-A4 3G3RV-A2 /-A4 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 node connector completely. Master 3G3MV 2-3-3. Connection of 3G3RV The Terminal Block of DeviceNet Communication Card is not a connector.
  • Page 67 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.
  • Page 68 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...
  • Page 69 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. &10 Unit No.: 10...
  • Page 70 &1 to &3 Specifies the DeviceNet I/O memory area. selection Specify the area set using the software switch in the DeviceNet Unit. &1: Fixed allocations, IN: CIO 3300, OUT: CIO 3200 &2: Fixed allocations, IN: CIO 3500, OUT: CIO 3400 &3: Fixed allocations, IN: CIO 3700, OUT: CIO 3600...
  • Page 71 2-7 Servo Driver R88D-WT /-WT H/-WT R7D-AP H/-AP...
  • Page 72 H/-WT R7D-AP H/-AP 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.
  • Page 73 Serial Communication Unit assigned by the Unit No. assigned by the Unit No. Restarting the unit to write the value set in the parameter area Restarting the unit to write the value set in the parameter area into serial communication unit.
  • Page 74 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.
  • Page 75 R88D-WT /-WT H/-WT R7D-AP H/-AP 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 Port 1 Set the unit number to “5” using flat-blade screw driver.
  • Page 76 Mode Selection of Serial Communication Unit Parameter Setup value 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.
  • Page 77 R88D-WT /-WT H/-WT R7D-AP H/-AP 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. 3号機 Unit No.3 4号機 5号機 Unit No.4 Unit No.5 6号機...
  • Page 78: Servo Driver R88D-Wt /-Wt H/-Wt Hl, R7D-Ap H/-Apl

    2-7 Servo Driver R88D-WT /-WT H/-WT R7D-AP H/-AP W Series Set the unit No. with the parameter by digit 2 of Pn000.2 to 6. Operation Procedure Set the unit No. with the parameter by digit 2 of Pn000.2 to 5.
  • Page 79 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 ↑...
  • Page 80 (SmartStep: Front-panel rotary switch) Parameter No. ParameterNo Specifies the parameter to read as a hexadecimal number #0XXX where XXX is the numeric portion of the parameter number PnXXX. Refer to the Related Manuals for details on parameter numbers. [OUTPUT] (Output Variables)
  • Page 81 Direct connection with RS232 CJ1W-CIF11 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.
  • Page 82 Communication Communication - Communication Cable This cable is used 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...
  • Page 83 Resistance RXD- RXD+ TXD- TXD+ 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.
  • Page 84 2-8 RFID (ID Sensor) V600-H...
  • Page 85 2-8 RFID (ID Sensor) V600-H 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 ID Sensor Unit CPU Unit Read/Write Head Data Carrier Work...
  • Page 86 Setting DIP switch and unit number Mounting the unit to PLC Mounting the unit to PLC Connecting the read/write head to the ID sensor unit Connecting the read/write head to the ID sensor unit Turning on the PLC Turning on the PLC 2.
  • Page 87 2-1. Hardware Setup Set the switches of the ID Sensor Unit as follows. CJ1W-V600C11 Set the Unit No. to 01 using flat-blade screwdriver or other tool. Check whether communication test switch is OFF. Connect to the Read/Write Head. 1. Hold the rubber hold part of the connector and insert the connector in align with the key slot of the Unit.
  • Page 88 2-8 RFID (ID Sensor) V600-H 2-2. Software Setting of ID Sensor Unit Set the software switches of ID Sensor Unit as shown below. In order to restart the Unit, turn PLC power supply OFF → ON. Address Value D20100 #0000...
  • Page 89 Writes data to a Data Carrier. Program Example When contact W0.00 is ON, ID sensor writes data “12 34 56 78” into carrier’s 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.
  • Page 90 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 &0. in Data Carrier Consider the Data Carrier capacity when setting. Write data DataAreaID...
  • Page 91 Automatically turns OFF when processing is completed. 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.
  • Page 92 Program Example 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.
  • Page 93 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 &0. Carrier Read data RecvAreaID...
  • Page 94 Automatically turns OFF when processing is completed. Normal 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.
  • Page 95: 2-9 Vision Sensor

    2-9 Vision Sensor F160-C10...
  • Page 96 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 SYSMAC CS/CJ Series...
  • Page 97 2. Wiring Communication Cable and Vision Sensor. and Vision Sensor. 3. Communication Setup Configuring PLC and Vision Sensor communication setup Configuring PLC and Vision Sensor communication setup Changes vision sensor’s scene number. Changes vision sensor’s scene number. 4. Usage Example of FB Component   ...
  • Page 98 2-1. Hardware Setup 2-1-1. Connect a console to the vision sensor. 2-1-2. Connect a monitor cable to the vision sensor. 2-1-3. Connect a camera cable to the vision sensor and the camera. 2-1-4. Connect a ground cable. 2-1-5. Connect a power cable.
  • Page 99 SD(TXD) SD(TXD) RD(RXD) RD(RXD) RS(RTS) RS(RTS) CS(CTS) CS(CTS) SG(GND) SG(GND) * 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.
  • Page 100 PC System Setup icon PC System Setup screen pops up. Set items marked by red underscores to values as shown above. Then connect PLC online and transmit the PC system setup. Vision Sensor Setting Vision Sensor Setting None. Use with the default factory setup.
  • Page 101 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 scene change, contact W0.02 is set to ON by 1 cycle.
  • Page 102 Description 1 (ON): FB processed normally. (May be omitted.) Busy Flag BUSY 0 (OFF): FB not processed or ended in an error. Normal end Automatically turns OFF when processing is completed. Error end Turns ON for one cycle when processing ends...
  • Page 103 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. If an error occurs by any reason, contact W1.03 is set to ON by 1 cycle. W1.00 _Fxxx200_GetSceneNo...
  • Page 104 [OUTPUT] (Output Variables) Name Variable name Description 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 Turns ON for one cycle when processing ends normally.
  • Page 105 2-10 2D Code Reader V530-R2000/-R160/-R150V3...
  • Page 106: 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 Monitor F150-M05L Console Console Cable F150-KP F150-VM2M(2m) Programmable Controller SYSMAC CJ1G-CPU CJ1H-CPU Camera...
  • Page 107 Configure readout condition for code reader. 4. Setting Code Reader Readout Condition Configure readout condition for code reader. Acquire QR code data from the code reader. 5. Usage Example of FB Component Acquire QR code data from the code reader.
  • Page 108 2-1. Hardware Setup 2-1-1. Connect a console to the code reader. 2-1-2. Connect a monitor cable to 2DCR. 2-1-3. Connect a camera cable to 2DCR and a camera. 2-1-4. Connect a ground cable. 2-1-5. Connect a power cable. Provide a power supply that satisfies the following conditions:...
  • Page 109 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) Signal Pin No. Pin No. Signal SD(TXD) SD(TXD) RD(RXD) RD(RXD) RS(RTS) RS(RTS) CS(CTS) CS(CTS) SG(GND) SG(GND) * If you make your own cable, its length must be 15 m or shorter.
  • Page 110 PC System Setup icon PC System Setup screen pops up. Set items marked by red underscores to values as shown above. Then connect PLC online and transmit the PC system setup. 2D Code Reader Setting 2D Code Reader Setting None.
  • Page 111 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.
  • Page 112 2-10 2D Code Reader V530-R2000/-R160/-R150V3 3. Read and note the QR Code. (Use the shutter speed of 1/100 and symbol color of black.) Move the cursor to MON (monitor) using the Right Key and press the ENT Key. The mode selections are displayed.
  • Page 113 8. Black: Black symbol printed White: White symbol printed on white base. on black base. Press the ESC Key to return to the window shown in step 7. Press the ESC Key once more to return to MON (monitor) mode.
  • Page 114 (Manual). Refer to I531-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.
  • Page 115 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. W0.0...
  • Page 116 Name Variable name Description 1 (ON): FB started. 0 (OFF): FB not started. Unit selection UnitSelect Specify the Unit selection and the serial port. Serial Port No. PortNo Connected to CPU Unit Unit selection #FFFF Serial port No. Not accessed.
  • Page 117 0 (OFF): 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 normally. Error end Turns ON for one cycle when processing ends in an error.
  • Page 118 2-11 Smart Sensor ZX-SF11, ZX-LD40, ZX-LDA11-N...
  • Page 119: Smart Sensor Zx-Sf11, Zx-Ld40, Zx-Lda11-N

    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...
  • Page 120 2-11 Smart Sensor ZX-SF11, ZX-LD40, ZX-LDA11-N 2. Operational Workflow 1. Hardware Setup of Smart Confirm that the current/voltage switch is at the factory Confirm that the current/voltage switch is at the factory Sensor default setting. default setting. Setting DIP switch of amplifier unit to RUN mode Setting DIP switch of amplifier unit to RUN mode 2.
  • Page 121 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). 2-1-2. Amplifier Unit Setting Change the amplifier unit to RUN mode.
  • Page 122 Insert the sensor connector into amplifier unit connector until it is locked. 2-2-2. Connecting of the Amplifier to Interface 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 0V to blue (2).
  • Page 123 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.
  • Page 124 Activate CX-Programmer then click PC System Setup icon. PC System Setup screen pops up. Set items marked by red underscores to values as shown above. Then connect PLC online and transmit the PC system setup. Smart Sensor Setting Smart Sensor Setting...
  • Page 125 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 D0, D1 and D2, D3. FB “Start Autoteaching”...
  • Page 126 0 (OFF): 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 normally. Error end Turns ON for one cycle when processing ends in an error.
  • Page 127 ZX-SF11, 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_RreadLowThreshold10.cxf Functional Overview Reads the low threshold value from the Smart Sensor.
  • Page 128 0 (OFF): 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 normally. Error end Turns ON for one cycle when processing ends in an error.
  • Page 129 2-12 Temperature Controller E5ZN-2...
  • Page 130: Temperature Controller E5Zn-2

    2-12 Temperature Controller E5ZN-2 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 SYSMAC CS/CJ Series Attachment Adapter K32-23209 Terminal Unit Communication...
  • Page 131 Configuring PLC and E5ZN communication setup Configuring PLC and E5ZN communication setup 4. Usage Example of FB Component Reads out current value from the specified channel of the temperature controller Reads out current value from the specified channel of the temperature controller...
  • Page 132 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 setting indicator side to terminal 22 on the temperature controller side.
  • Page 133 2-1-4. Setting Communication Converter Set DIP SW9 of communication converter (K3SC) 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.
  • Page 134 Pin No. Signal • Connect SD signal of attachment adapter and SD signal of PLC side. • 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. 64IN...
  • Page 135 Activate CX-Programmer then click PC System Setup icon. PC System Setup screen pops up. Set items marked by red underscores to values as shown above. Then connect PLC online and transmit the PC system setup. Temperature Controller Setting Temperature Controller Setting...
  • Page 136 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. _E5xx202_ReadPV W0.00...
  • Page 137 [OUTPUT] (Output Variables) Name Variable name Description 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 Turns ON for one cycle when processing ends normally.
  • Page 138 2-12 Temperature Controller E5ZN-2 [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. Name Variable Name Description Error Code ErrorCode Outputs result information of the command to the temperature controller.
  • Page 139 2-13 Temperature Control Unit CJ1W-TC001/101/003/103/002/102/004/104...
  • Page 140: Temperature Control Unit Cj1W-Tc001/101/003/103/002/102/004/104

    (type code CJ1W-TC103). In this example, CJ1W-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...
  • Page 141 Setting input type 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 Setting temperature control function using a rotary switch on the front panel...
  • Page 142 2-1-1. Name of parts and Hardware Switches Function Setting Switch 2-1-2. Unit Number Setting Set the Unit No. using flat-blade screw driver, referring the left drawing. 2-1-3. Input Type Setting Set the Input Type using flat-blade screw driver, referring the left drawing.
  • Page 143 2-1-5. Wiring of thermocouple 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. * Do not connect any cable to the N.C terminal 2-1-6.
  • Page 144 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.
  • Page 145 3 and 4 is not used and setting is disabled. 3. By setting “FF” 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.
  • Page 146 Thus if you changed the setting value by following the step 4, you have to set special I/O unit restart flag to OFF -> ON -> 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 ->...
  • Page 147 Writes the set point (SP) of the specified loop. Program Example 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”.
  • Page 148: Chapter 3 Omron Fb Library List

    Chapter 3 OMRON FB Library List Folder Configuration of The OMRON FB Library List of The OMRON FB Library...
  • Page 149 Folder Configuration of The OMRON FB Library 2DCR omronlib CodeReader DNet INVRT Inverter LaserSensor UNIT Position Controller NCx SmartIO  RemoteIO V600 RFID Serial ServoDriver E5□R DNet Temperature Controller Serial E5CN Serial E5ZN DNet Serial Fxxx VisionSensor...
  • Page 150 FB Name Function Name Basic function Target _INVDRT032_MoveVelocityHz Move Inverter Hz Outputs a run signal, rotation direction, and speed to the Inverter _INVDRT033_MoveVelocityRPM Move Inverter RPM Outputs a run signal, rotation direction, and speed to the Inverter _INVDRT060_Stop Stop Inverter Stops the Inverter.
  • Page 151 Reads the numeric value displayed on the main digital display of a Smart Sensor. _ZXL202_ReadDecimalPoint Read Decimal Point Position Reads the decimal point position set for the main digital display of a Smart Sensor. _ZXL203_ReadIncidentLevel Read Incident Light Reads the incident light for a Smart Sensor.
  • Page 152 FB Name Function Name Basic function Target Turns ON the output for a specified time after the input turns _CPU001_TP_BCD BCD Pulse Timer Turns ON the output for a specified time after the input turns _CPU002_TP_BIN Binary Pulse Timer...
  • Page 153 FB Name Function Name Basic function Target Issues a request to the specified Ethernet Unit to open a TCP socket using _ETN001_SOCKET_TcpOpenPassive Open TCP Socket Passive passive processing. Issues a request to the specified Ethernet Unit to open a TCP socket using...
  • Page 154 Torque Control Controls torque. _NCF041_TorqueControl_DINT Control Torque Controls torque. _NCF050_Home_REAL Origin Search Performs an origin search operation to establish the origin. _NCF051_Home_DINT Origin Search Performs an origin search operation to establish the origin. CJ1W-NCF7 _NCF060_Stop Stop Deceleration Decelerates an axis to a stop.
  • Page 155 Reads the generic status from slaves connected to _Dnet200_GetGenericStat Read Generic Status DeviceNet. Reads the present values of the network power supply _Dnet201_GetNetVoltage_PV Read Network Voltage Present Value from slaves connected to DeviceNet. Reads the minimum values of the network power...
  • Page 156 Function Name Basic function Target _V60x001_CheckData Check Data Carrier Data The CRC is calculated and written for the data in the Data Carrier. _V60x002_ControlWrites Number of Writes Control Updates the number of writes stored in the Data Carrier. _V60x200_ReadData Read Data Carrier Data Reads data from a Data Carrier.
  • Page 157 Cancels autotuning for a channel of a Controller on DeviceNet. Reads one element from the variable area of a Controller on _E5xxDRT200_ReadVariable Read Variable Area DeviceNet. Reads the status of the specified channel of a Controller connected to _E5xxDRT201_ReadStatus Read Status DeviceNet. E5AR-DRT...
  • Page 158 Reads the status of the specified channel of a Controller. _E5xx202_ReadPV Read Process Value Reads the process value of the specified channel of a Controller. _E5xx203_ReadSP Read Set Point Reads the set point of the specified channel of a Controller.
  • Page 159 Reads the heating MV of the specified channel of a Controller _E5xxDRT205_ReadHeatingMV Read Heating MV connected to DeviceNet. Writes one element to the specified variable area of a Controller on _E5xxDRT400_WriteVariable Write Variable Area DeviceNet. Writes the set point of the specified channel of a Controller connected...
  • Page 160 Reads the status of the specified loop. _TCx202_ReadPV Read Process Value Reads a process value (PV). _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.
  • Page 161 List of The OMRON FB Library Vision Sensor □ Fxxx omronlib VisionSensor Fxxx FB Name Function Name Basic function Target _Fxxx001_Reset Reset Restarts the Vision Sensor. _Fxxx200_GetSceneNo Get Scene Number Reads the scene number. _Fxxx201_ChangeSceneNo Change Scene Changes the scene.
  • Page 162 Authorized Distributor: Cat. No. R123-E01-01 Note: Specifications subject to change without notice. Printed in Japan...

Table of Contents