Professional Documents
Culture Documents
R123-E1-01 PLC Startup Guide
R123-E1-01 PLC Startup Guide
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 users/operation manual of
each product for the actual application.
Table of Contents
Chapter 1
Chapter 2
Chapter 3
For higher efficiency design of facility/device using Omrons 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 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 Omrons PLC and control component.
OMRON FB Library
1.
1. What
What is
is aa Function
Function Block?
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.
Defining Inputs and Outputs.
Process (algorithm)
Input
Input
Control Device 1
A1
Output
Output
Control Device n
X1
B1
An
An
Bn
Bn
An
Xn
Bn
Xn
Xn
TIM
TIM
#0100
#0100
Y1
T1
Yn
Tn
Yn
Yn
Z1
Zn
Zn
Zn
Produce template
Partial Ladder program for machine A
Function Block definition
Control Device 1
P_On
Device Control
Device Control
EN
A1
B1
A
B
ENO
X
Y
Z
X1
Y1
Z1
P_On
B2
Allocate to
Ladder
program
Function Block
Instance (invocation)
ENO
Y
Z
Device Control
EN
A2
EN
A
B
ENO
X
Y
Z
X2
Y2
Z2
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 one instances.
OMRON FB Library
2.
2. An
An Example
Example of
of aa Function
Function Block
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
TIM0000
TIM
0000
#0020
001.00
001.00
PULSE
000.00
EN
#0020
ENO
Time
001.00
Timing chart
EN
T_FB
TIM
000.00
T_FB
Time
001.00
Q
2.0 sec
OMRON FB Library
3.
3. Overview
Overview of
of the
the OMRON
OMRON FB
FB Library
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.
OMRON FB Library
FB
CS/CJ Series
PLC
Temperature
controller
Smart sensor
Omron Components
Vision sensor
OMRON FB Library
FB
CS/CJ series
PLC
Communicate between
PLC and the devices
DeviceNet
Temperature
controller
Generic slaves such as IO terminal
PLC
Inverter
Wireless
OMRON FB Library
3-3. Content of the OMRON FB Library
The OMRON FB Library consist of the following:
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
Number of OMRON
FB Part files (at the
time of July 04)
Target components
FA components
approx. 80
PLC
approx. 95
Motion control
components
approx. 30
CX-Programmer Ver.5.0
Install CD
The internet
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/-A4
2-7 Servo Driver R88D-WT/-WTH/-WTHL, R7D-APH/-APL
2-8 RFID V600-H
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-2
2-13 Temperature Control Unit CJ1W-TC001/101/003/103/002/102/004/104
Shown below is an example of using Controller Link unit for data link operation under automatic
configuration.
1. Hardware Configuration
PLC
SYSMAC
CJ Series
PLC
SYSMAC
CJ Series
CPU Unit
CJ1 G/H-CPUH
CJ1M-CPU
Node 1
CPU Unit
CJ1 G/H-CPUH
CJ1M-CPU
Node 2
Unit No.
Unit No.
Node Address
Node Address
Transmission Rate
Transmission Rate
2 M bit/s
Terminal Resistance
Setting Switch
Terminal Resistance
Setting Switch
ON
Manufacturer
ESVC 0.52C-13262
ESNC 0.52C-99-087B
Molex
Type Code
Remarks
V1.25-N3A
V1.25-MS3
VSY1.25-3.5L
RAV1.25-M3
2 M bit/s
ON
2. Operational Workflow
1. Hardware Setup of
Controller Link Unit
Setting
Setting unit
unit number
number using
using rotary
rotary switches
switches on
on the
the front
front panel
panel
Setting
Setting node
node address
address using
using rotary
rotary switches
switches on
on the
the front
front panel
panel
Setting
Setting transmission
transmission rate
rate using
using DIP
DIP switches
switches on
on the
the front
front panel
panel
Setting
Setting terminal
terminal resistance
resistance using
using DIP
DIP switches
switches on
on the
the front
front panel
panel
Mounting
Mounting the
the unit
unit to
to PLC
PLC
Wiring
Wiring communication
communication cable
cable
Turning
Turning all
all nodes
nodes ON
ON
Starting
Starting CX-Programmer
CX-Programmer and
and creating
creating I/O
I/O table
table
Setting
Setting all
all nodes
nodes DM
DM parameter
parameter areas
areas
Setting
Setting data
data link
link activate
activate bit,
bit, and
and activate
activate data
data link.
link.
Node
Address
1
Node
Address
2
10 digits -
Unit digits -
Example of setting
Node Address = 1
* Factory default setting is 01.
CPU
CLK
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
wires to the terminal
board and on one
end of the network
directly ground it .
BDH
BDL
SHLD
BDH
BDL
SHLD
Use the specified communication cable (twisted pair cable) to connect the nodes by multidrop.
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:
Mark
Signal name
Line color
Black
White
None
SHLD (shield)
Lit
Lit
Not lit
Lit
Color
Green
TER
(terminating
resistance)
Yellow
ERC
Red
(communications error)
ERH
(PLC error)
Red
INS
Yellow
(network
participation)
Status
Lit
Not lit
Lit
Not lit
Meaning
Unit operating normally.
Unit error.
Terminating resistance switch is ON.
Terminating resistance switch is OFF.
Lit
Not lit
Normal operation
Lit
Not lit
Lit
Not lit
SD
(send)
Yellow
Lit
Not lit
RD
(receive)
Yellow
M/A
(data link
mode)
Yellow
Lit
Not lit
Lit
LNK
(data link)
Yellow
Lit
Flashing
Data reception.
No data reception.
Manual
Note:
(see note)
M/A is always not lit when
Automatic
data links are not active in
the network.
Data links participating.
Error in data link table.
Not lit
Not lit
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.
CH
Description
0010 Hex Master station normal station configuration: Master station
Wire type 62 nodes configuration: Up to 32 nodes
Data link mode: Automatic configuration
1000 Hex
8000 Hex Area type CIO start CH 1000CH
0050 Hex 50 CHs for 1 node
2000 Hex
8200 Hex Area type DM start CH DM20000CH
0030 Hex 30 CHs for 1 node
0000 Hex Status storing area is default
0003 Hex
0000 Hex Data link participation node 1, node 2
0000 Hex
0000 Hex
Setup Value
D30000
D30001
D30002
D30003
D30004
D30005
D30006
D30007
D30008
D30009
D30010
D30011
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
CI/O
1000
1049
1050
Node 2
Node 1
Send Area
(50 CH)
CI/O
1000
1049
1050
Receive Area
(50 CH)
1099
DM
2000
2029
2030
2059
1099
Node 1
Send Area
(30 CH)
Receive Area
(30 CH)
DM
2000
2029
2030
2059
Node 2
Receive Area
(50 CH)
Send Area
(50 CH)
Node 2
Receive Area
(30 CH)
Send Area
(30 CH)
14
* 0: Always set to 0.
13
12
11
10
Parameters for Automatically Setting Data Links with Equality Layout: DM30000 + 100 x
(Unit No. + 1 to + 11)
15
+8
+9
+10
+11
87
+1
+2
Area 1 type
+3
+4
Rightmost 4 digits of data link start word of area 2 (DM area) (BCD)
+5
Area 2 type
+6
+7
00
15
14
13
12
11
10
16
15
14
13
12
11
10
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
62
61
60
59
58
57
56
55
54
53
52
51
50
49
_CLK001_LINK_RunDatalink
File Name
_CLK001_LINK_RunDatalink10.cxf
Functional Overview
At power on (A200.11, 1 cycle ON flag is ON at power ON), use Controller Link units soft SW to
set DM parameter areas data link activation bit to ON to activate the data link.
If data link is normally activated, W100.01 turns to ON.
Node1_RUN
P_First_Cycle
_CLK001_LINK_RunDatalink
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
UnitNo
BUSY
(INT)
(BOOL)
NodeNo
OK
(BOOL)
NG
Unit No.
&0
Local node address
&1
W100.00
Busy Flag
W100.00
Normal end
W100.01
Error end
W100.02
Variables Table
[INPUT] (Input Variables)
Name
Variable name
EN
EN
Unit No.
UnitNo
NodeNo
Description
1(ON):FB started
0(OFF):FB not started
Variable name
Description
ENO
(May be omitted.)
ENO
Busy Flag
BUSY
Normal end
OK
Error end
NG
1. Hardware Configuration
SYSMAC
CS/CJ Series
Unit Number 1
125 Kbps
Terminal
Resistance
PS
Slave
2. Operational Workflow
1. Hardware Setup of
DeviceNet Master Unit
Setting
Setting Unit
Unit No.,
No., Node
Node Address
Address and
and Communication
Communication Rate
Rate
of
the
master
unit.
of the master unit.
Setting
Setting Node
Node Address
Address of
of the
the slave.
slave.
2. Wiring Communication
Cable and Connecting
Master and Slave
Wiring
Wiring DeviceNet
DeviceNet communication
communication cables
cables
Turn
Turn the
the power
power ON.
ON.
Creating
Creating I/O
I/O Table
Table
4. Usage Example of
FB Component
Sample
Sample program
program that
that reads
reads out
out operation
operation time
time of
of the
the unit.
unit.
(1) Set the master unit number (Unit Number Setup Switch)
In this example, unit number is set to 1.
The unit number must not overlap that of other CPU Bus unit connected to
the same PLC.
Setup Method
Setup Range
0 to F
Setup Range
1 to 63
ON
1 2 3 4
Pin
Baud Rate
1
OFF
OFF
125 K bit/s
ON
OFF
250 K bit/s
OFF
ON
50 K bit/s
ON
ON
Not allowed
Setup Range
0 to 63
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 and you can feel it by touching) .
Shielded wire
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.
Black (V-)
Master
_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 D0. As a result, &10 is stored in D0.
Start trigger
Busy Flag
_Dnet204_GetONTime_PV
(BOOL)
(BOOL)
ENO
EN
(BOOL)
(INT)
BUSY
MasterUnitNo
(BOOL)
(INT)
OK
NodeNo
(BOOL)
NG
(DINT)
PVt
(WORD)
FINSError
(WORD)
ExplicitError
Busy Flag
Normal end
Error end
Present Unit ON Time
FINS error code
(May be omitted.)
Explicit message error code
(May be omitted.)
Variables Table
[INPUT] (Input Variables)
Name
Variable name
Description
EN
EN
1 (ON): FB started.
0 (OFF): FB not started.
MasterUnitNo
NodeNo
Variable name
Description
ENO
(May be omitted.)
ENO
Busy Flag
BUSY
Normal end
OK
Error end
NG
Present Unit ON
Time
PV
FINSError
Explicit message
error code
(May be omitted.)
ExplicitError
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
Power
Unit
CPU Unit
MECHATROLINK-II
(Up to 16 axes)
Servo Motor
Driver
(R88D-WT)
MECHATROLINK-II
Connection Cable
(JEPMC-W6003-01)
MECHATROLINK-II
Terminal Resistance
(JEPMC-W6022)
Servo
Motor
MECHATROLINK-II
I/F Unit
(JUSP-NS115)
2. Operational Workflow
1. Position Control Unit Setup
Setting
Setting unit
unit number
number by
by using
using rotary
rotary switch
switch on
on the
the front
front panel
panel
Attaching
Attaching MECHATROLINK-II
MECHATROLINK-II I/F
I/F Unit
Unit to
to Servo
Servo Driver
Driver
Setting
Setting servo
servo driver
driver station
station address
address
Connecting
Connecting Position
Position Control
Control Unit
Unit and
and servo
servo driver
driver
by
by MECHATROLINK-II
MECHATROLINK-II Connection
Connection Cable
Cable
Turning
Turning the
the PLC
PLC ON
ON
Connecting
Connecting the
the CX-Programmer
CX-Programmer
Creating
Creating I/O
I/O table
table
6. Starting MECHATORLINK
Communication
Setting
Setting common
common and
and axis
axis parameters
parameters of
of the
the Position
Position Control
Control Unit
Unit
Starting
Starting communication
communication by
by turning
turning the
the connection
connection
establishment
establishment relay
relay from
from OFF
OFF to
to ON
ON
Transmitting
Transmitting parameters
parameters to
to the
the servo
servo driver
driver via
via
MECHATROLINK-II
MECHATROLINK-II
Sample
Sample program
program that
that positions
positions by
by relative
relative movement
movement
LED Display
Shows status of Position Control Unit.
Unit Number Setup Switch
Sets the Position Control
Unit number (UNIT No.).
MECHATROLINK-II
Communication Connector
Based on the configured unit number, CPU Bus unit relay area is
assigned.
Position Control Unit uses the area as a relay area of common operation.
Unit Number
Channel
Assignment (CH)
Unit Number
Channel
Assignment (CH)
1500 to 1524
1700 to 1724
1525 to 1549
1725 to 1749
1550 to 1574
10
1750 to 1774
1575 to 1599
11
1775 to 1799
1600 to 1624
12
1800 to 1824
1625 to 1649
13
1825 to 1849
1650 to 1674
14
1850 to 1874
1575 to 1699
15
1875 to 1899
Caution: Before setting up the unit number, you must turn off the power.
SW2-bit3
SW1
Station Number
OFF
0: Do not set up
1 to F
1 to 15 (01H to 0FH)
0 to F
16 to 30 (10H to 1EH)
ON
MECHATROLINK-II
Connection Cable
(JEPMC-W6003-01)
Power Unit
CPU Unit
Terminal
Resistance
MECHATROLINK-II
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)
(Positioning Complete 1)
(Brake Interlock)
(Servo Ready)
(Back to Origin
Deceleration)
Setting
Description
DM01000
00H0(Hex)
DM01001
0064(Hex)
DM01002
00H0(Hex)
DM01003
01F4(Hex)
DM01004
0040(Hex)
DM01005
~
DM01011
Setting
Description
1506CH
000C(Hex)
1507CH
0082(Hex)
1508CH
03E8(Hex)
1509CH
1838(Hex)
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
1500CH
When data write is finished, data transferring flag turns to OFF. Data transferring flag is
assigned to contact 1515.14.
14 bit
1515CH
Data is being transferred
MECHATROLINK communication
starts when OFF->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
Parameter No..
Parameter Name
Setting
Pn50A
2881
Pn50B
8883
Pn511
6541
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:
Input Terminal
(CN1)
Input Signal
Name
Description
40
Free
41
DEC
42
POT
No assignment
43
NOT
No assignment
44
EXT1
RESET
(Alarm Reset Input)
45
EXT2
PCL
(Forward Current Limit Input)
46
EXT3
NCL
(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.
_NCF021_ MoveRelative_DINT
File Name
_NCF021_ MoveRelative_DINT10.cxf
Functional Overview
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.
&0
Unit No.: 0
NCF
CPU
Servomotor
axis 1
Start Trigger
Bit E
Bit B
Bit C
Servomotor: 1
Axis: 1
Bit D
Bit A
Bit A
Always ON (P_On)
Unit No.
&0
Axis No.
Axis 1 &1
Start
Bit A
Position command
2000 command units +2000
Speed command
2000 command units/s +2000
_NCF011_MoveAbsolute_ DINT
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
UnitNo
Done
(INT)
(BOOL)
Axis
Command Aborted
(BOOL)
(BOOL)
Execute
Error
(DINT)
(WORD)
Position
ErrorID
(DINT)
Velocity
Bit E
Positioning completed
Bit B
Abort
Bit C
Error flag
Bit D
Error code
Variable name
Description
EN
EN
1 (ON): FB started
0 (OFF): FB not started.
Unit No.
UnitNo
Axis No.
Axis
Start
Execute
Position
command
Position
Speed
command
Velocity
Variable name
Description
ENO
ENO
Positioning
completed
Done
Abort
CommandAborted
Turns ON when
the other Move command done (Duplicate Move)
Stopped with DECELERATION STOP or EMERGENCY STOP.
Error flag
Error
Error code
(May be
omitted.)
ErrorID
Returns the error code when an error has occurred in the FB.
Refer to the Related Manuals for details on errors. A code of
#0000 will be returned when the unit number or axis number is
out of range.
1. Hardware Configuration
Driver Cable
XW2Z-J-B7
SmartStep Driver
R7D- AP
Servo Motor
R7M- A / R7M- AP
2. Operation Workflow
1. Hardware Setup
Setting
Setting unit
unit number
number using
using rotary
rotary switches
switches on
on the
the front
front of
of the
the unit
unit
Connecting
Connecting Position
Position Control
Control Unit
Unit and
and servo
servo driver
driver using
using cables,
cables,
terminal
terminal block,
block, etc.
etc.
Turning
Turning the
the PLC
PLC ON
ON
Connecting
Connecting the
the CX-Programmer
CX-Programmer
Creating
Creating I/O
I/O table
table
Setting
Setting common
common and
and axis
axis parameters
parameters
Adjusting
Adjusting servo
servo drivers
drivers gain
gain by
by using
using the
the switch
switch on
on the
the front
front panel
panel
Sample
Sample program
program that
that positions
positions by
by relative
relative movement
movement
Driver Cable
XW2Z- J- B7
Servo Motor
R7M -A/ R7M- AP
Name
Type Code
Qty
CJ1W-NC413
Dedicated Terminal
Block with
Communication Function
XW2B-40J6-4A
NC-End Cable
(for SmartStep only)
XW2Z-100J-A17
Driver Cable
(for SmartStep only)
XW2Z-100J-B7
R7D-APA3L
R7A-CEA003S
Servo Motor
R7M-A03030
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.
Setting
Name
Configuration / Explanation
DM20000
#0000
DM20001
#0000
Beginning word of
operation data area
DM20002
#0F01
Axis parameter
designation
DM20003
#0000
Not used
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.
&0
CPU
Unit No.: 0
NCx
Servo Motor
Axis 1
W1.00
W1.02
Servo Motor: 1
Axis 1
W1.02
W1.03
W1.04
Done
Command
Aborted
Error
W1.01
Start
Start
Always ON(P_On)
Unit No.
&0
Axis No.
&1
Start
W1.01
Position command
2000 pulses +2000
Speed command
20000 pps &20000
Acceleration time
100 ms &100
Deceleration time
200 ms &200
Model selection
&2
_NCx011_MoveAbsolute_DINT
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
UnitNo
Done
(INT)
(BOOL)
Axis
Command Aborted
(BOOL)
(BOOL)
Execute
Error
(DINT)
(WORD)
Position
ErrorID
(DINT)
Velocity
(DINT)
Acceleration
(DINT)
Deceleration
(INT)
Select
Positioning completed
W1.02
Abort
W1.03
Error flag
W1.04
Error code
(May be omitted.)
Variables Table
[INPUT] (Input Variables)
Name
Variable Name
Description
EN
EN
1(ON): FB started
0(OFF): FB not started
Unit No.
UnitNo
Axis No.
Axis
Start
Execute
Position
command
Position
Speed
command
Velocity
Acceleration
time
Acceleration
Deceleration
time
Deceleration
Model
selection
Select
&1: X axis
&2: Y axis
&3: Z axis
&4: U axis
Starts the absolute move.
Variable name
Description
ENO
ENO
Positioning
completed
Done
Abort
Command
Aborted
1(ON): Aborted
- Other Move is moved (multiple activation)
- Terminated by STOP
Error flag
Error
Error code
(May be
omitted.)
ErrorID
Returns the error code when an error has occurred in the 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.
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 number 0 is moved to position of 2000 (command unit)
with speed of 2000 (command unit/s) by absolute move command.
1. Hardware Configuration
Servo Driver
R88D-WT01HL
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. Operational Workflow
1. Hardware Setup
Setting
Setting unit
unit number
number by
by using
using rotary
rotary switch
switch on
on the
the front
front panel.
panel.
Connecting
Connecting the
the Position
Position Control
Control Unit
Unit and
and servo
servo drivers
drivers via
via
cable
and
terminal
block
conversion
unit,
etc.
cable and terminal block conversion unit, etc.
Turning
Turning the
the PLC
PLC ON
ON
Connecting
Connecting the
the CX-Programmer
CX-Programmer
Creating
Creating the
the I/O
I/O table
table
Setting
Setting common
common and
and axis
axis parameters
parameters of
of the
the Position
Position Control
Control Unit.
Unit.
Adjusting
Adjusting servo
servo drivers
drivers gain
gain by
by using
using switch
switch on
on the
the front
front panel.
panel.
Sample
Sample program
program that
that positions
positions by
by absolute
absolute movement.
movement.
[Notice]
To set up, you must turn off the
power.
Primary Components
Name
Position Control Unit
Dedicated Terminal Board for 2-Axis
NC-End Cable (for W servo)
Driver-End Cable (for W servo only)
Servo Driver
Motor Connection Cable
Encoder Cable
Motor
I/O Power Supply
Type Code
Q'ty
CJ1W-NC413
1
XW2B-40J6-2B
1
XW2Z-100J-A7
1
XW2Z-100J-B4
1
R88D-WT01HL
1
R88A-CAWA003S
1
R88A-CRWA003C
1
R88M-W10030H
1
S82K-01524
1
Connection Example
Servo Driver
R88D-WT01HL
Programmable Controller
Position Control Unit
CS1W-NC413
XW2Z-100J-A7
Dedicated Connection Cable
XW2Z-100J-B4
Dedicated Connection Cable
XW2B40J62B
Servo Terminal Unit
For wiring of junction unit, see W series users manual I531-E1 2-7 Servo Junction Unit
and Cable Specification.
#0000
DM20001
#0000
Beginning word of
operation data area
DM20002
#0F01
Axis parameter
designation
DM20003
#0000
Not used
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.
&0
CPU
Unit No.: 0
NCx
Servo Motor
Axis 1
W1.00
W1.02
Servo Motor: 1
Axis 1
W1.02
W1.03
W1.04
Done
Command
Aborted
Error
W1.01
Start
Start
Always ON(P_On)
Unit No.
&0
Axis No.
&1
Start
W1.01
Position command
2000 pulses +2000
Speed command
20000 pps &20000
Acceleration time
100 ms &100
Deceleration time
200 ms &200
Model selection
&2
_NCx011_MoveAbsolute_DINT
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
UnitNo
Done
(INT)
(BOOL)
Axis
Command Aborted
(BOOL)
(BOOL)
Execute
Error
(DINT)
(WORD)
Position
ErrorID
(DINT)
Velocity
(DINT)
Acceleration
(DINT)
Deceleration
(INT)
Select
Positioning completed
W1.02
Abort
W1.03
Error flag
W1.04
Error code
(May be omitted.)
[Notice]
If the origin is not determined, MoveAbsolute cannot be executed. Perform origin search
and determine the origin before.
Variables Table
[INPUT] (Input Variables)
Name
Variable name
Description
EN
EN
1 (ON): FB started
0 (OFF): FB not started.
Unit No.
UnitNo
Axis No.
Axis
Start
Execute
Position
command
Position
Speed command
Velocity
Acceleration time
Acceleration
Deceleration time
Deceleration
Model selection
Select
&1: X axis
&2: Y axis
&3: Z axis
&4: U axis
Starts the absolute move.
Variable name
Description
ENO
ENO
Positioning
completed
Done
Abort
Command
Aborted
1(ON): Aborted
- Other Move is moved (multiple activation)
- Terminated by STOP
Error flag
Error
Error code
(May be omitted.)
ErrorID
2-6 Inverter
3G3MV-A2/-AB/-A4
3G3RV-A2/-A4
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
Power
Unit
CJ Series
CPU Unit
24V
Communication
Power Source
3G3MV-A
3G3MV-PDRT2
DCN1-1C
Motor
3G3RV-
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.
Motor
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.)
Communication
Slave Unit Type Code
3G3MV-PDRT2
3G3RV-PDRT2
3G3RV
series
Type Code
Remarks
3G3MV-A2
3-phase 200V
3G3MV-AB
Single-phase 200V
3G3MV-A4
3-phase 400V
3G3RV-A2
3-phase 200V
3G3RV-A4
3-phase 400V
2-6 Inverter
3G3MV-A2/-AB/-A4
3G3RV-A2/-A4
2. Operation Workflow
1. Hardware Setup of
DeviceNet Master Unit
2. Mounting DeviceNet
Unit/Card
3. Wiring communication
cable and connection
between master and slave
Setting
Setting Unit
Unit No.,
No., Node
Node Address
Address and
and Communication
Communication Rate
Rate
of
of each
each inverter
inverter unit
unit using
using the
the switch
switch on
on the
the front
front panel.
panel.
Mounting
Mounting DeviceNet
DeviceNet Unit/Card
Unit/Card on
on each
each inverter
inverter
and
and setting
setting node
node address
address using
using rotary
rotary switches
switches
Wiring
Wiring communication
communication cable
cable and
and communication
communication power
power cables
cables of
of DeviceNet
DeviceNet
Connect
Connect communication
communication cable
cable between
between master
master and
and slave.
slave.
Turning
Turning PLC
PLC power
power supply
supply ON
ON
Connecting
Connecting CX-Programmer
CX-Programmer
Creating
Creating I/O
I/O Table
Table
6. Setting Inverter
7. Usage Example of FB
Component
Registering
Registering Scan
Scan List
List at
at the
the DeviceNet
DeviceNet master
master unit
unit
Setting
Setting parameters
parameters of
of each
each inverter
inverter
Sample
Sample program
program of
of performing
performing inverter
inverter rotation
rotation
2-6 Inverter
3G3MV-A2/-AB/-A4
3G3RV-A2/-A4
(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
the same PLC.
Setup Method
Setup Range
0 to F
Setup Range
1 to 63
ON
1 2 3 4
OFF
OFF
125 K bit/s
ON
OFF
250 K bit/s
OFF
ON
50 K bit/s
ON
ON
Not allowed
2-6 Inverter
3G3MV-A2/-AB/-A4
3G3RV-A2/-A4
(2) Connect wires between inverter main units 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 inverters 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.
2-6 Inverter
3G3MV-A2/-AB/-A4
3G3RV-A2/-A4
(4) Attach the auxiliary mounting bracket on screws that fixed the digital operator and
terminal board cover, and use auxiliary screws to fix them.
* 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
terminal.
(6) Fit the DeviceNet communication units connector and the inverters 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-A2/-AB/-A4
3G3RV-A2/-A4
2-2-2. 3G3RV-PDRT2 (3G3RV/3G3FV)
Mounting Procedure
(1)
Turn off the inverters main circuit power. After 5 minutes or later, demount the inverters
front cover and check if the CHARGE lamp is lit off.
(2)
(3)
(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 cards 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 inverters
controller board.
(8)
See from the side to make sure that the connector is completely inserted. If not, press
the connector again.
2-6 Inverter
3G3MV-A2/-AB/-A4
3G3RV-A2/-A4
2-2-3. Setting Slave Node Address
Set the slave node address (rotary switch)
Setup Method
Setup Range
0 to 63
3G3RV
2-6 Inverter
3G3MV-A2/-AB/-A4
3G3RV-A2/-A4
2-3. Wiring Communication Cable and Connection between Master and Slave
2-3-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 and you can feel it by touching) .
Shielded wire
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.
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-A2/-AB/-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-6 Inverter
3G3MV-A2/-AB/-A4
3G3RV-A2/-A4
IN(SYSMACINV)
Area
OUT(SYSMACINV)
Selection
(1)
n=3200 3200 CH to 3263 CH m=3300 3300 CH to 3363 CH
&1
Factory
setting
1750.09 (2)
n=3400 3400 CH to 3463 CH m=3500 3500 CH to 3563 CH
&2
1750.10 (3)
n=3600 3600 CH to 3663 CH m=3700 3700 CH to 3763 CH
&3
* 1750 = 1500 + 25 CH X (CPU Bus Unit No. of DeviceNet Master)
Master
switch
1750.08
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-A2/-AB/-A4
3G3RV-A2/-A4
Name
Setup
figure
Factory
setting
Description
n003
Operation command
selection
n004
Frequency command
selection
n035
Unit selection at
frequency command
selection/reference
Unit: Hz
Name
Setup
figure
Factory
setting
Description
b1-01
Frequency command
setting
b1-02
Operation command
selection
F6-01
Operation selection at
communication error
F6-02
Detect always
F6-03
Operation selection at
communication outer error
input
o1-03
Unit: Hz
2-6 Inverter
3G3MV-A2/-AB/-A4
3G3RV-A2/-A4
_INVDRT032_MoveVelocityHz
Program Example
Rotate the Inverter 20 connected with DeviceNet Unit No.10.
&10
CPU
DRM
Unit No.: 10
Area selection: 1
Inverter DRT2: 20
DRT2 20
Inverter
ENO
Always ON
Area selection
&1
Master Unit No.
&10
Inverter slave address
&20
Start
Contact A
Frequency
50.00Hz +50.00
Direction
Reverse &1
_INVDRT032_MoveVelocityHz
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
Select
InVelocity
(INT)
(BOOL)
MasterUnitNo
CommandAborted
(INT)
(BOOL)
NodeNo
Error
(BOOL)
(WORD)
Execute
ErrorID
(REAL)
Velocity
(INT)
Direction
Speed agreement
Contact B
Aborted
Contact C
Error end
Contact D
Error number
2-6 Inverter
3G3MV-A2/-AB/-A4
3G3RV-A2/-A4
Variables Table
[INPUT] (Input Variables)
Name
Variable
name
Data
type
EN
EN
BOOL
Area
selection
Select
INT
Master
Unit No.
Default
Range
Description
1 (ON): FB started
0 (OFF): FB not started.
&1
&1 to &3
MasterUnitNo INT
Inverter
slave
address
NodeNo
INT
&0
Start
Execute
BOOL
0(OFF)
Frequency Velocity
REAL
+0.00 to
+400.00
Direction
INT
&0
&0 to &1
&0: Forward
&1: Reverse
Direction
[OUTPUT](Output Variables)
Name
Variable
name
Description
ENO
(May be
omitted.)
ENO
Speed
agreement
InVelocity
Aborted
CommandAb
orted
1 (ON): Aborted
Other Move is activated (Multiple activation)
Stopped using STOP.
Error end
Error
Error
number
ErrorID
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
CX-Programmer
Power
Supply
Unit
CJ Series
CPU Unit
Servo Driver
SmartStep A
Series
Servo Motor
Servo Driver
W Series
Servo Motor
[Note]
* If you make your own driver cable, refer to document I531-E1 2-6 Cable
Connector Specification.
2. Operational Workflow
1. Wiring and setting of Serial
Communication Unit
Wiring
Wiring serial
serial communication
communication unit
unit and
and servo
servo driver
driver
Setting
Setting serial
serial communication
communication unit
unit number
number
Turn
Turn PLC
PLC power
power supply
supply ON.
ON.
Connecting
Connecting CX-Programmer
CX-Programmer
Creating
Creating I/O
I/O table
table
3. Communication Setting of
Serial Communication Unit
Setting
Setting communication
communication parameter
parameter to
to the
the parameter
parameter area
area (DM)
(DM)
assigned
assigned by
by the
the Unit
Unit No.
No.
Restarting
Restarting the
the unit
unit to
to write
write the
the value
value set
set in
in the
the parameter
parameter area
area
into
serial
communication
unit.
into serial communication unit.
Setting
Setting servo
servo drive
drive unit
unit No.
No. using
using switches
switches on
on the
the front
front
Reads
Reads servo
servo parameters
parameters
CJ Series
CPU Unit
Unit No.3
Unit No.4
Communication Cable
(XW2Z-J-C1)
Unit No.5
Unit No.6
Servo
Motor
Servo
Motor
Servo Driver
SmartStep A
Series
Servo
Motor
Servo
Motor
Servo Driver
W 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 users manual
for servo drivers, I531-E1, I533-E1.
CS1W-SCU21-V1
LED Indicator
Unit No. Setting Switch
RS232C
Port 1
RS232C
Port 2
CS1W-SCU21-V1
CS1W-SCU41-V1
LED Indicator
LED Indicator
Terminal Resistance ON/OFF Switch
RS232C
Port 2
RS232C
Port 1
RS232C
Port 2
Unit
(CS/CJ Series)
Port 1
Port 2
Port 1
Port 2
D32000
D32010
m+10
Description
CJ1W-SCU41
Unit No. 5, Port 1
DM
Setup
Value
DM30500
#8904 *
D32011
m+1
m+11
DM30501
#0006
D32008
D32018
m+8
m+18
DM30508
#0000
D32009
D32019
m+9
m+19
DM30509
#03E8
9600 bit/s
Bit Configuration
Start 1 bit
Data 7 bits
Stop 1 bit
Even parity 1 bit
Synchronization
Start-stop synchronization
XON/XOFF
None
Shift Control
None
Communication Method
Half duplex
Setup value
9: Serial gateway
6: Macro mode (only if macro is used for PLC)
Unit
No.3
Unit
No.4
Unit
No.5
Unit
No.6
Servo Driver
W Series
Servo
Motor
Servo Driver
SmartStep
A A
SmartStep
Series
Servo
Motor
Servo
Motor
Servo
Motor
* Setting
depends on the models.
zSMART STEP A Series
Set the rotary switches shown bellow, Unit No.3 and 4.
zW Series
Set the unit No. with the parameter by digit 2 of Pn000.2 to 6.
Operation Procedure
R88D-WT/-WTH/-WTHL
R88D-WT/-WTH/-WTHL,
R7D-APH/-APL
R7D-APH/-APL
_SRV201_ReadParameter
File Name
_SRV201_ReadParameter 10.cxf
Functional Overview
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
W100.00
SCU/SCB Select
&2
Unit selection
&5
Serial Port No.
&1
Servo unit No.
&6
Parameter No.
#0100
_SRV_ReadParameter_SCx
EN
ENO
(BOOL)
(BOOL)
Select
BUSY
(INT)
(BOOL)
UnitNo
Done
(INT)
(BOOL)
PortNo
Error
(BOOL)
(INT)
AXIS
ErrorID
(INT)
(WORD)
Value
ParameterNo
(WORD)
(INT)
Busy Flag
W100.00
Normal end
W100.01
Error end
W100.02
Error Code
W101
Read value
W102
Variables Table
[INPUT] (Input Variables)
Name
Variable name
Description
EN
EN
1 (ON): FB started
0 (OFF): FB not started.
Unit selection
UnitSelect
PortNo
Axis No.
Axis
Parameter No.
ParameterNo
Variable name
Description
ENO
ENO
(May be omitted.)
Busy Flag
BUSY
Normal end
Done
Error end
Error
Error code
ErrorID
Read value
Value
3. References
Target Servo Driver
Shown below are target servo drivers for communication (multiple models can coexist)
Type Code
W Series
SmartStep A Series
Type Code
R88D-WT__H
R88D-WT___H
R88D-WT__HL
R88D-WT__HL
R7D-AP__H
RD-AP__L
Single-phase 100V
CS1
Communication
Unit Type Code
Specification
CJ1W-SCU41-V1
CJ1W-SCU21-V1
RS232 2 ports
CS1W-SCB41-V1
CS1W-SCB21-V1
RS232 2 ports
CS1W-SCU21-V1
RS232 2 ports
Name
Model
Specification
CJ1W-CIF11
NT-AL001
RS422 Converter
* In both cases, you need to make the cable by yourself as RS422 side is a terminal
block.
Name
Name
Servo Terminal Unit with
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
Name
Communication Cable for
Serial Communication Unit
Servo Driver
W Series
XW2Z-J-A7
SmartStep
XW2Z-J-A9
W Series
XW2Z-J-A11
SmartStep
XW2Z-J-A13
W Series
XW2Z-J-A15
SmartStep
XW2Z-J-A17
W Series
XW2Z-J-A19
SmartStep
XW2Z-J-A21
W Series
XW2Z-J-A6
SmartStep
XW2Z-J-A8
W Series
XW2Z-J-A10
SmartStep
XW2Z-J-A12
W Series
XW2Z-J-A14
SmartStep
XW2Z-J-A16
W Series
XW2Z-J-A18
SmartStep
XW2Z-J-A20
XW2B-20J6-4A
with Communication
CS1W-NC113
CS1W-NC133
CJ1W-NC113
XW2B-20J6-4B
without
Communication
CJ1W-NC133
* Single-axis communication cable for Position Control Unit is not prepared. Use twoaxes cable or make by yourself.
CJ1W-SCU
Port1
Terminal
Resistance
RT
CJ1W-CIF11
SDA
RXD-
SDB
RXD+
RDA
TXD-
RDB
TXD+
R7D-APA5L
Terminal
Resistance
RT
RXDRXD+
TXDTXD+
In case of 2-wire RS485: (Use terminal resistance only for the final driver)
R7D-AP01L
CJ1W-SCU
Port1
RT
Terminal
Resistance
CJ1W-CIF11
SDA
RXD-
SDB
RXD+
RDA
TXD-
RDB
TXD+
R7D-AP01L
RT
Terminal
Resistance
RXDRXD+
TXDTXD+
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.
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 (Moved
object)
Moved
Work (Moved
object)
2. Operational Workflow
1. Hardware Setup of ID Sensor Unit
Setting
Setting DIP
DIP switch
switch and
and unit
unit number
number
Mounting
Mounting the
the unit
unit to
to PLC
PLC
Connecting
Connecting the
the read/write
read/write head
head to
to the
the ID
ID sensor
sensor unit
unit
Turning
Turning on
on the
the PLC
PLC
Creating
Creating I/O
I/O table
table
OFF
Address
Value
D20100
#0000
D20101
#0000
Head No 2 of
CS1W-V600C12
CJ1W^V600C12
m+100
Bit No.
Setting
12-15
Unused
08-11
04-07
System
setting
m+101
00-15
Autostop
waiting
time
setting
Set value
Communication mode
setting
00-03
m+1
Description
_V60x400_WriteData
File Name
_V60x400_WriteData10.cxf
Functional Overview
Program Example
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
Unit No.
&1
Head No.
&1
Data Carrier write address
&10
Bytes to process in Data Carrier
&4
Write data storage area type
P_DM
Write data storage word address
&1000
Communications designation
&0
Processing designation
&0
Cancel
W0.15
W0.1
_V60x400_WriteData
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
UnitNo
BUSY
(INT)
(BOOL)
HeadNo
OK
(WORD)
(BOOL)
CarrierAddress
NG
(INT)
(WORD)
WriteBytes
ErrorCode
(WORD)
DataAreaID
(INT)
DataAreaNo
(INT)
Communications
(INT)
ByteOrder
(BOOL)
Cancel
Busy flag
W0.0
Normal end
W0.2
Error end
W0.3
Error code
Variables Table
[INPUT] (Input Variables)
Name
Variable name
Description
EN
EN
1 (ON): FB started.
0 (OFF): FB not started.
Unit No.
UnitNo
Head No.
HeadNo
&1: Head 1
&2: Head 2 (Two-Head Controllers only)
Data Carrier
write address
CarrierAddress
Bytes to process
in Data Carrier
WriteBytes
Nothing will be performed and a normal end will be output for &0.
Consider the Data Carrier capacity when setting.
Write data
storage area
type
DataAreaID
Write data
storage word
address
DataAreaNo
Communications
designation
Communications
&0: Trigger
&1: Auto
&2: Repeat auto
Processing
designation
ByteOrder
n
n+1
n+2
n+3
CPU
Unit
memory
01
03
1: Lower to upper
Address CPU
02
04
Unit
memory
n
n+1
n+2
n+3
Cancel
Cancel
02
04
01
03
Data Carrier
memory
01
02
03
04
Data Carrier
memory
01
02
03
04
Variable name
Description
ENO
(May be omitted.)
ENO
Busy Flag
BUSY
Normal end
OK
Error end
NG
Error code
(May be omitted.)
ErrorCode
_V60x200_ReadData
File Name
_V60x200_ReadData10.cxf
Functional Overview
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.
W1.0
Unit No.
&1
Head No.
&1
Data Carrier read address
&10
Bytes to read from Data Carrier
&4
Read data storage area type
P_DM
Read data storage word address
&2000
Communications designation
&0
Processing designation
&0
Cancel
W1.15
W1.1
_V60x200_ReadData
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
UnitNo
BUSY
(INT)
(BOOL)
HeadNo
OK
(WORD)
(BOOL)
CarrierAddress
NG
(WORD)
(WORD)
ReadBytes
ErrorCode
(WORD)
StoreAreaID
(INT)
StoreAreaNo
(INT)
Communication
(INT)
ByteOrder
(BOOL)
Cancel
Busy flag
W1.1
Normal end
W1.2
Error end
W1.3
Error code
Variables Table
[INPUT] (Input Variables)
Name
Variable name
Description
EN
EN
1 (ON): FB started.
0 (OFF): FB not started.
Unit No.
UnitNo
Head No.
HeadNo
&1: Head 1
&2: Head 2 (Two-Head Controllers only)
Data Carrier
read address
CarrierAddress
Bytes to read
from Data
Carrier
ReadBytes
Read data
storage area
type
RecvAreaID
Read data
storage word
address
RecvAreaNo
Communications
designation
Communicatio
ns
&0: Trigger
&1: Auto
&2: Repeat auto
Processing
designation
ByteOrder
0012
03
0013
04
1: Lower to upper
Address Data Carrier
memory
0010
01
0011
02
0012
03
0013
04
Cancel
Cancel
CPU Unit
memory
01
02
03
04
CPU Unit
memory
02
01
04
03
Variable name
Description
ENO (May
be omitted.)
ENO
Busy Flag
BUSY
Normal
end
OK
Error end
NG
Error code
(May be
omitted.)
ErrorCode
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
(Length: 2m)
F160-VM2M
(Length: 2m)
Controller
F160-C10
Camera
F150-SLC20
Camera Cable
F150-VS3M
RS-232C Cable
XW2Z-200T
Power Supply
DC24V
(+10%, -15%)
Recommend:
S8VS-06024
(OMRON)
Monitor
F150-M05L
Monitor Cable
F150-VM82M
[Note]
This drawing shows connection to CPU units built-in port.
Connection is available for serial communication unit/board.
2. Operational Workflow
3. Communication Setup
Connecting
Connecting console,
console, monitor,
monitor, power
power cable,
cable, etc.
etc.
Wiring
Wiring communication
communication cable
cable between
between PLC
PLC
and
Vision
Sensor.
and Vision Sensor.
Configuring
Configuring PLC
PLC and
and Vision
Vision Sensor
Sensor communication
communication setup
setup
Changes
Changes vision
vision sensors
sensors scene
scene number.
number.
Acquires
changed
scene
number
Acquires changed scene number from
from vision
vision
sensor.
sensor.
2-1-3. Connect a camera cable to the vision sensor and the camera.
Source Voltage
1.6A or more
To PLC
Signal
Pin No.
FG
Pin No.
Signal
SD(TXD)
SD(TXD)
RD(RXD)
RD(RXD)
RS(RTS)
RS(RTS)
CS(CTS)
CS(CTS)
SG(GND)
SG(GND)
2-2-2. Connect a cable between CPU units communication port of PLC and the vision sensor.
Communication Speed
38400 bps
8 bits
Parity Check
None
Stop Bit
1 bit
Start Code
None
End Code
PLC
PLC Setting
Setting
Activate CX-Programmer,
then click PC System Setup
icon
PC System Setup
screen pops up.
Vision
Vision Sensor
Sensor Setting
Setting
None. Use with the default factory setup.
_Fxxx201_ChangeSceneNo
File Name
_Fxxx201_ChangeSceneNo10.cxf
Functional Overview
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.
If an error occurs by any reason, contact W0.03 is set to ON by 1 cycle.
W0.00
W0.01
Unit selection
#FFFF
Serial Port No.
&1
Scene No.
&7
Response monitor time
&0
_Fxxx201_ChangeSceneNo
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
UnitSelect
BUSY
(INT)
(BOOL)
PortNo
OK
(INT)
(BOOL)
SceneNo
NG
(INT)
TimeOut
Busy Flag
W0.01
Normal end
W0.02
Error end
Variables Table
[INPUT] (Input Variables)
Name
Variable name
Description
EN
EN
1 (ON): FB started.
0 (OFF): FB not started.
Unit selection
UnitSelect
PortNo
Unit selection
Serial port No.
#FFFF
Not accessed.
(&1 recommended)
Connected to Serial Communication Board(SCB)
Unit selection
#BBBB
Serial port No.
&1: Port 1
&2: Port 2
Connected to Serial Communication Unit(SCU)
Unit selection
SCU Unit No. (&0 to &15)
Serial port No.
&1: Port 1
Scene No.
SceneNo
Response
monitor time
TimeOut
Variable name
Description
ENO
(May be omitted.)
ENO
Busy Flag
BUSY
Normal end
OK
Error end
NG
_Fxxx200_GetSceneNo
File Name
_Fxxx200_GetSceneNo10.cxf
Functional Overview
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.
If an error occurs by any reason, contact W1.03 is set to ON by 1 cycle.
W1.00
W1.01
Unit selection
#FFFF
Serial Port No.
&1
Response monitor time
&0
_Fxxx200_GetSceneNo
(BOOL)
EN
(INT)
UnitSelect
(INT)
PortNo
(INT)
TimeOut
(BOOL)
ENO
(BOOL)
BUSY
(BOOL)
OK
(BOOL)
NG
(INT)
SceneNo
Busy Flag
W1.01
Normal end
W1.02
Error end
W1.03
Scene No.
D100
Variables Table
[INPUT] (Input Variables)
Name
Variable name
Description
EN
EN
1 (ON): FB started.
0 (OFF): FB not started.
Unit selection
UnitSelect
PortNo
Variable name
Description
ENO
(May be omitted.)
ENO
Busy Flag
BUSY
Normal end
OK
Error end
NG
Scene No.
SceneNo
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 Cable
F150-VM2M(2m)
Camera
F150-SLC20
Console
F150-KP
Programmable Controller
SYSMAC
CJ1G-CPUH
CJ1H-CPUH
CJ1M-CPU
CS1G-CPUH
CS1H-CPUH
[Notice]
This drawing shows connection to CPU units built-in port.
Connection is available for serial communication unit/board.
2. Operational Workflow
Wiring
Wiring of
of camera,
camera, etc.
etc.
Wiring
Wiring communication
communication cable
cable between
between PLC
PLC and
and 2DCR
2DCR
3. Communication Setup
Configuring
Configuring communication
communication setting
setting of
of PLC
PLC and
and 2DCR
2DCR
Configure
Configure readout
readout condition
condition for
for code
code reader.
reader.
Acquire
Acquire QR
QR code
code data
data from
from the
the code
code reader.
reader.
Source Voltage
1.6A or more
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)
Communication Rate
38400 bps
8 bits
Parity Check
None
Stop Bit
1 bit
Start Code
None
End Code
#000D (CR)
PLC
PLC Setting
Setting
PC System Setup
screen pops up.
2D
2D Code
Code Reader
Reader Setting
Setting
None.
Use with the default factory setup.
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.
Select [Black]
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 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.
_2DCR401_ExecRead
File Name
_2DCR401_ExecRead.cxf
Functional Overview
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.
W0.0
W0.1
Unit selection
#FFFF
Serial Port No.
&1
Storage order designation
&0
_2DCR401_ExecRead
(BOOL)
EN
(INT)
UnitSelect
(INT)
PortNo
(INT)
BytesOrder
(WORD)
RecvAreaID
(INT)
RecvAreaNo
(INT)
RecvBytes
(INT)
TimeOut
(BOOL)
ENO
(BOOL)
BUSY
(BOOL)
OK
(BOOL)
NG
Busy Flag
W0.1
Normal end
W0.2
Error end
W0.3
Variables Table
[INPUT] (Input Variables)
EN
Name
Variable name
EN
Unit selection
Serial Port No.
UnitSelect
PortNo
Storage order
designation
ByteOrder
Description
1 (ON): FB started.
0 (OFF): FB not started.
Specify the Unit selection and the serial port.
Connected to CPU Unit
Unit selection
#FFFF
Serial port No.
Not accessed.
(&1 recommended)
Connected to Serial Communication Board(SCB)
Unit selection
#BBBB
Serial port No.
&1: Port 1
&2: Port 2
Connected to Serial Communication Unit(SCU)
Unit selection
SCU Unit No. (&0 to &15)
Serial port No.
&1: Port 1
&2: Port 2
01
02
03
04
1: Lower to upper
Address Read data
0010
0011
0012
0013
RecvAreaID
RecvAreaNo
01
02
03
04
CPU Unit
memory
01
02
03
04
CPU Unit
memory
02
01
04
03
RecvBytes
TimeOut
Variable name
ENO
BUSY
OK
NG
Description
1 (ON): FB processed normally.
0 (OFF): FB not processed or ended in an error.
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.
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
Communication
Cable
Interface Unit
ZX-SF11
Power Supply
DC12V~24V (+/-10%)
Recommendation:
S8VS-06024 (OMRON)
Amplifier Unit
ZX-LDA11-N
Automatic teaching
Detected
Object
[Note]
This drawing shows connection to CPU units built-in port.
Connection is available for serial communication unit/board.
2. Operational Workflow
Confirm
Confirm that
that the
the current/voltage
current/voltage switch
switch is
is at
at the
the factory
factory
default
default setting.
setting.
Setting
Setting DIP
DIP switch
switch of
of amplifier
amplifier unit
unit to
to RUN
RUN mode
mode
2. Wiring Communication
Cable and Connecting
to the Unit
Wiring
Wiring communication
communication cable
cable between
between PLC
PLC and
and the
the interface
interface unit
unit
3. Communication Setup
Configuring
Configuring PLC
PLC and
and Smart
Smart Sensor
Sensor communication
communication setup
setup
4. Usage Example of
FB Component
Performs
Performs Smart
Smart Sensor
Sensor teaching
teaching and
and reads
reads out
out
the
threshold
value.
the threshold value.
To interface unit
(Female)
To PLC (Male)
Signal
Pin No.
Pin No.
Signal
FG
NC
SD
RD
RD
SD
RS
NC
CS
SG
SG
NC
Communication Speed
38400 bps
8 bits
Parity Check
None
Stop Bit
1 bit
PLC
PLC Setting
Setting
PC System Setup
screen pops up.
Smart
Smart Sensor
Sensor Setting
Setting
None. Use with the default factory setup.
Unit selection
#FFFF
Serial Port No.
&1
_ZXL002_StartAutoTeach
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
UnitSelect
BUSY
(INT)
(BOOL)
PortNo
OK
(BOOL)
NG
Busy Flag
W0.01
Normal end
W0.02
Error end
W0.03
Unit selection
#FFFF
Serial Port No.
&1
_ZXL003_StopAutoTeach
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
UnitSelect
BUSY
(INT)
(BOOL)
PortNo
OK
(BOOL)
NG
Busy Flag
W1.01
Normal end
W1.02
Error end
W1.03
W0.01
W1.00
W1.01
Variables Table
[INPUT] (Input Variables)
Name
Variable name
Description
EN
EN
1 (ON): FB started.
0 (OFF): FB not started.
Unit selection
UnitSelect
PortNo
Variable name
Description
ENO
(May be omitted.)
ENO
Busy Flag
BUSY
Normal end
OK
Error end
NG
W2.01
Unit selection
#FFFF
Serial Port No.
&1
W2.02
W3.01
Unit selection
#FFFF
Serial Port No.
&1
_ZXL207_ReadHighThreshold
(BOOL)
(BOOL)
EN
ENO
(BOOL)
(INT)
UnitSelect
BUSY
(INT)
(BOOL)
PortNo
OK
(BOOL)
NG
(DINT)
Threshold
Busy flag
W2.01
Normal end
W2.02
Error end
W2.03
Threshold
D0
_ZXL208_ReadLowThreshold
(BOOL)
(BOOL)
EN
ENO
(INT)
(BOOL)
UnitSelect
BUSY
(INT)
(BOOL)
PortNo
OK
(BOOL)
NG
(DINT)
Threshold
Busy flag
W3.01
Normal end
W3.02
Error end
W3.03
Threshold
D0
Variables Table
[INPUT] (Input Variables)
Name
Variable name
Description
EN
EN
1 (ON): FB started.
0 (OFF): FB not started.
Unit selection
UnitSelect
PortNo
Variable name
Description
ENO
(May be omitted.)
ENO
Busy Flag
BUSY
Normal end
OK
Error end
NG
Shown below is an example of using CS/CJ series CPU unit to read current values of temperature controller
E5ZNs unit number 1 and 3.
1. Hardware Configuration
SYSMAC CS/CJ Series
Attachment Adapter
K32-23209
Communication
Converter
K3SC-10
Terminal Unit
Setting Indicator
roller (E5ZN-SDL)
[Note]
This drawing shows connection to CPU units built-in port.
Connection is available for serial communication unit/board.
Side Connector
(DC24V, RS-485, to connect
setting interface)
DIN Rail Installing Position
Temperature Controller
(E5ZN-2)
Terminal Unit
(E5ZN-SCTS)
2. Operational Workflow
Setting
Setting Unit
Unit No.
No. using
using rotary
rotary switch
switch on
on front
front panel
panel
Setting
Setting communication
communication rate
rate using
using rotary
rotary switch
switch on
on front
front panel
panel
Connecting
Connecting terminal
terminal unit
unit Temperature
Temperature Controller
Controller to
to Terminal
Terminal Unit
Unit
Wiring
Wiring Setting
Setting Indicator
Indicator and
and Power
Power Cable
Cable
Setting
Setting and
and Wiring
Wiring DIP
DIP switches
switches of
of Communication
Communication Converter
Converter
3. Communication Setup
Wiring
WiringCommunication
CommunicationCable
Cableand
andconnecting
connectingto
tobuild-in
build-incommunication
communicationport
portof
ofCPU
CPU
Configuring
Configuring PLC
PLC and
and E5ZN
E5ZN communication
communication setup
setup
19
Temperature
controller side
Terminal Unit
20
21
22
+
Input Power
DC24V
Input Power
DC24V
B(+)
A(-)
Setting
indicator side
Terminal Unit
4
3
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 setting indicator side to terminal 22 on the temperature controller side.
K3SC
()
(+)
21
23
Input Power
[Note]
1: If the communication condition is set to RS-485 (DIP SW9 is OFF), shortcircuit (8)-(9) and (11)-(12) internally.
Available input voltage is AC100 to 240V or AC/DC24V (no polarity).
To attachment
adapter
To PLC
Signal
Pin No.
Pin No.
Signal
RD
SD
SD
RD
ER
RS
SG
CS
DR
DR
RS
ER
CS
SG
FG
FG
64IN
HL
Communication Speed
9600 bps
7 bits
Parity Check
Even parity
Stop Bit
2 bits
PLC
PLC Setting
Setting
PC System Setup
screen pops up.
Temperature
Temperature Controller
Controller Setting
Setting
None. Use with the default factory setup.
_E5xx202_ReadPV
File Name
_E5xx202_ReadPV10.cxf
Functional Overview
Program Example
When contact W0.00 is ON, readout of current values start from three channels of
temperature controllers 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.
_E5xx202_ReadPV
W0.00
W0.01
Unit selection
#FFFF
Serial Port No.
&1
Controller unit No.
&1
Channel No.
&3
(BOOL)
EN
(INT)
UnitSelect
(INT)
PortNo
(INT)
TCNo
(INT)
ChannelNo
(BOOL)
ENO
(BOOL)
BUSY
(BOOL)
OK
(BOOL)
NG
(DINT)
PV
Busy Flag
W0.01
Normal end
W0.02
Error end
W0.03
Process value
D100
Variable name
Description
EN
EN
1 (ON): FB started.
0 (OFF): FB not started.
Unit selection
UnitSelect
PortNo
Channel No.
E5AR/E5ER
Specify the channel number.
&1: Channel 1
Etc.
&4: Channel 4
E5ZN
Specify the channel number.
&1: Channel 1
&2: Channel 2
E5CN/E5CN-U
Always &1.
ChannelNo
Variable name
Description
ENO
(May be omitted.)
ENO
Busy Flag
BUSY
Normal end
OK
Error end
NG
Process value
PV
Variable Name
ErrorCode
Description
Outputs result information of the command to the
temperature controller. See below for details.
Description
0000
Normal Termination
2203
Operation Error
Details
Shown below is an example of using CJ1W-TC001 Temperature Control Unit for CJ series, and Supposing
Unit No. is 0 and use K-type thermocouple (-200 to 1,300).
1. Hardware Configuration
[Notice]
1. Shown above is a usage example of 4-loop thermocouple /NPN output type (type code CJ1WTC001) and 2-loop platinum thermo-resistance with heater disconnection warning//NPN output
type (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 loops 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. Operational Workflow
1. Hardware Setup
Setting
Setting unit
unit No.
No. using
using aa rotary
rotary switch
switch on
on the
the front
front panel
panel
Setting
Setting input
input type
type using
using aa rotary
rotary switch
switch on
on the
the front
front panel
panel
Setting
Setting temperature
temperaturecontrol
control function
function using
using aarotary
rotaryswitch
switch on
on the
the front
front panel
panel
Wiring
Wiring the
the compensating
compensating lead
lead wire
wire of
of heat
heat coupler
coupler to
to the
the unit
unit
Turning
Turning PC
PC main
main unit
unit ON
ON
Connecting
Connecting the
the CX-Programmer
CX-Programmer
Creating
Creating I/O
I/O table
table
Turning
Turning restart
restart flag
flag of
of temperature
temperature control
control unit
unit ON
ON and
and read
read
setting
setting value
value into
into the
the unit.
unit.
Setting
Setting PID
PID constant,
constant, operation
operation cycle,
cycle, alarm
alarm mode
mode setting
setting
figures,
figures, etc
etc in
in DM
DM parameter
parameter area.
area.
Sample
Sample program
program that
that set
set setting
setting value
value into
into the
the temperature
temperature
setting
unit.
setting unit.
Function
Setting
Switch
[0]
[0]
2-1-3. Input Type Setting
Input Type
Temperature Ranges
0 to 1700C (0 to 3000F)
0 to 1700C (0 to 3000F)
ON at right
SW No.
Function
ON
OFF
Continue
Stop
Data format
16-bit binary
4-digit BCD
Forward (cooling)
Reverse (heating)
Forward (cooling)
Reverse (heating)
Control method
ON/OFF control
PID control
Initialize
Do not initialize
Transfer
Do not transfer
Factory
setting
OFF
ON
SYSMAC CJ Series
CJ1W-TC
D(m)
D(m+1)
Unit 94
D29400 - 29499
D(m+2)
-
Unit n
Allocated DM No.
D20000 - 20099
D20100 - 20199
D20200 - 20299
D20300 - 20399
D20400 - 20499
D20500 - 20599
D20600 - 20699
D20700 - 20799
D20800 - 20899
D20900 - 20999
-
Unit 0
Unit 1
Unit 2
Unit 3
Unit 4
Unit 5
Unit 6
Unit 7
Unit 8
Unit 9
D(m+9)
Loop 1and 2
Alarm mode setting
Loop 3 and 4
*1
*1
Alarm hysteresis
setting
[Notice]
1. DM number is assigned as m = 20000 + 100 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 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).
Function
A50215
A50300
-
A50200
A50201
A50714
Unit No. 94
D (m + 10)
D (m + 11)
D (m + 12)
D (m + 13)
D (m + 14)
D (m + 15)
D (m + 16)
D (m + 17)
D (m + 18)
D (m + 19)
Loop 1
Alarm 1 SV
Alarm 2 SV
Input Compensation Value
Control Period
Control Sensitivity
Proportional Band
Integral Time
Derivative Time
(Not allocated)
(Not allocated)
_TCx403_WriteSP
File Name
_TCx403_WriteSP10.cxf
Functional Overview
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.
W0.00
_TCx403_WriteSP
Model selection
&4
Unit No.
&0
Loop No.
&1
Set point
Unit Set for BCD Data
#0050
(BOOL)
EN
(INT)
Select
(INT)
UnitNo
(INT)
LoopNo
(INT)
SP
(BOOL)
ENO
[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)
Name
Variable name
Description
EN
EN
1 (ON): FB started
0 (OFF): FB not started.
Model selection
Select
Unit No.
UnitNo
Loop No.
LoopNo
Set point
SP
Variable name
Description
ENO
1 (ON): FB processed normally.
(May be omitted.) 0 (OFF): FB not processed or ended in an error.
FBL
omronlib
CodeReader
DCR
Inverter
INVRT
LaserSensor
ZXL
PLC
CLK
DNet
CPU
ETN
SCx
UNIT
Position
Controller
NCF
NC
RemoteIO
SmartIO
RFID
V600
ServoDriver
SRV
Serial
E5R
DNet
Temperature
Controller
Serial
E5CN
Serial
E5ZN
DNet
Serial
TCx
VisionSensor
Fxxx
Code
Reader
2DCR
FBL
omronlib
FB Name
Function Name
_2DCR401_ExecRead
2DCR
CodeReader
Execute Read
2DCR
Basic function
Executes one read for a 2D Code Reader.
_2DCR200_GetSceneNo
Target
V530-R2000
V530-R160
V530-R150V3
Inverter
INVRT
FBL
FB Name
INVRT Dnet
omronlib
INVERTER
Function Name
INVRT
DNet
Basic function
_INVDRT032_MoveVelocityHz
Move Inverter Hz
_INVDRT033_MoveVelocityRPM
_INVDRT060_Stop
Stop Inverter
_ INVDRT080_Reset
_INVDRT200_ReadStatus
_INVDRT201_ReadParameter
_INVDRT203_ReadAxisError
_INVDRT401_WriteParameter
Target
3G3MV
3G3RV
Laser
Sensor
ZXL
FBL
FB Name
ZXL
omronlib
LaserSensor
Function Name
ZXL
Basic function
_ZXL001_InitializeParameter
Initialize Settings
_ZXL002_StartAutoTeach
Start Autoteaching
_ZXL003_StopAutoTeach
Stop Autoteaching
_ZXL004_ExeZeroReset
_ZXL005_StopZeroReset
_ZXL006_StartLDOFF
_ZXL007_StopLDOFF
_ZXL008_Teach1HighThreshold
_ZXL009_Teach1LowThreshold
_ZXL010_Teach2HighThreshold
_ZXL011_Teach2LowThreshold
_ZXL200_ReadMemArea
_ZXL201_ReadMainDisplay
Reads the numeric value displayed on the main digital display of a Smart Sensor.
_ZXL202_ReadDecimalPoint
Reads the decimal point position set for the main digital display of a Smart Sensor.
_ZXL203_ReadIncidentLevel
_ZXL204_ReadResolution
Read Resolution
_ZXL205_ReadOutputs
_ZXL206_ReadEnableData
_ZXL207_ReadHighThreshold
_ZXL208_ReadLowThreshold
_ZXL407_WriteHighThreshold
_ZXL408_WriteLowThreshold
Target
ZX-LDA-N
PLC
CLK
FBL
omronlib
FB Name
CLK
PLC
CLK
Function Name
Basic function
_CLK001_LINK_RunDatalink
_CLK002_LINK_StopDatalink
_CLK003_CheckNode32
_CLK004_CheckNode62
CPU
FBL
omronlib
FB Name
PLC
Function Name
Target
CS1W-CLK21-V1
CS1W-CLK12-V1
CS1W-CLK52-V1
CJ1W-CLK21-V1
CPU
Basic function
_CPU001_TP_BCD
Turns ON the output for a specified time after the input turns
ON.
_CPU002_TP_BIN
Turns ON the output for a specified time after the input turns
ON.
_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
Turns OFF the output a specified time after the input turns
OFF.
_CPU006_TOF_BIN
Turns OFF the output a specified time after the input turns
OFF.
_CPU007_MakeClockPulse_BCD
_CPU008_MakeClockPulse_BIN
_CPU010_SendData
Send Data
_CPU011_ReceiveData
Receive Data
_CPU012_SendCommand
Send Command
_CPU013_PMCR
_CPU014_RXD
_CPU015_TXD
CPU
Target
CS1G
CS1H
CJ1G
CJ1H
CJ1M
ETN
FBL
omronlib
FB Name
ETN
Function Name
Basic function
Issues a request to the specified Ethernet Unit to open a TCP socket using
passive processing.
_ETN002_SOCKET_TcpOpenActive
Issues a request to the specified Ethernet Unit to open a TCP socket using
active processing.
_ETN003_SOCKET_TcpClose
_ETN004_SOCKET_TcpSend
_ETN005_SOCKET_TcpRecv
Target
_ETN011_SOCKET_UdpOpen
CS1W-ETN21
CS1W-ETN11
Issues a request to the specified Ethernet Unit to send using a TCP socket. CS1W-ETN01
CJ1W-ETN21
Issues a request to the specified Ethernet Unit to receive using a TCP socket.
CJ1W-ETN11
CJ1W-ETN01
Issues a request to the specified Ethernet Unit to open a UDP socket.
_ETN013_SOCKET_UdpClose
Performs UDP socket close processing for the specified Ethernet Unit.
_ETN014_SOCKET_UdpRecv
Issues a request to the specified Ethernet Unit to receive using a UDP socket.
_ETN015_SOCKET_UdpSend
Issues a request to the specified Ethernet Unit to send using a UDP socket.
FBL
Performs TCP socket close processing for the specified Ethernet Unit.
omronlib
FB Name
PLC
SCx
Function Name
Basic function
_SCx001_ResetPort
_SCx002_PMCR_Abort
_SCx003_PMCR_ReleaseWait
Release Wait
_SCx600_SetPortSYSWAY
_SCx601_SetPortNTLINK
_SCx602_SetPortPMCR
_SCx603_SetPortNOPRTCL
_SCx604_SetPortGATEWAY
_SCx605_SetPortLOOPBACK
UNIT
FBL
FB Name
UNIT
ETN
_ETN001_SOCKET_TcpOpenPassive
SCx
SCx
PLC
_UNIT001_Restart
omronlib
Function Name
Unit Restart
PLC
Target
CS1WSCU21-V1
CS1WSCU41-V1
CJ1WSCU21-V1
CJ1WSCU41-V1
CS1WSCB21-V1
CS1WSCB41-V1
UNIT
Basic function
Restarts the unit or board.
Target
Position
NCF
Controller
FBL
omronlib
FB Name
NCF
Position
Controller
Function Name
NCF
Basic function
_NCF010_MoveAbsolute_ REAL
Move Absolute
_NCF011_MoveAbsolute_DINT
Absolute Move
_NCF020_MoveRelative_ REAL
Move Relative
_NCF021_MoveRelative_DINT
Relative Move
_NCF030_MoveVelocity_ REAL
Speed Control
_NCF031_MoveVelocity_DINT
Speed Control
_NCF040_TorqueControl_REAL
Torque Control
Controls torque.
_NCF041_TorqueControl_DINT
Control Torque
Controls torque.
_NCF050_Home_REAL
Origin Search
_NCF051_Home_DINT
Origin Search
_NCF060_Stop
Stop Deceleration
_NCF070_Power
Operation Command
_NCF080_Reset
_NCF200_ReadStatus
Read Status
_NCF201_ReadParameter
Read Parameter
_NCF202_ReadBoolParameter
_NCF203_ReadAxisError
_NCF204_ReadActualPosition_REAL
_NCF205_ReadActualPosition_DINT
_NCF401_WriteParameter
Write Parameter
_NCF402_WriteBoolParameter
NCx
FBL
omronlib
FB Name
_NCx010_MoveAbsolute_REAL
NCx
Position
Controller
Function Name
Move Absolute
Target
CJ1W-NCF7
NCx
Basic function
Target
_NCx011_MoveAbsolute_DINT
Move Absolute
_NCx020_MoveRelative_REAL
Move Relative
_NCx021_MoveRelative_DINT
Move Relative
_NCx050_Home_REAL
Origin Search
_NCx051_Home_DINT
Origin Search
_NCx060_Stop
Deceleration Stop
_NCx080_Reset
_NCx200_ReadStatus
Read Status
_NCx201_ReadParameter
Read Parameter
_NCx202_ReadBoolParameter
_NCx203_ReadAxisError
_NCx204_ReadActualPosition_REAL
_NCx205_ReadActualPosition_DINT
_NCx401_WriteParameter
Write Parameter
_NCx402_WriteBoolParameter
_NCx600_Setting
Set Unit
CS1WNC113/133
CS1WNC213/233
CS1WNC413/433
CJ1WNC113/133
CJ1WNC213/233
CJ1WNC413/433
RemoteIO
SmartIO
FBL
FB Name
SmartIO
omronlib
RemoteIO
Function Name
SmartIO
Basic function
_Dnet200_GetGenericStat
_Dnet201_GetNetVoltage_PV
_Dnet202_GetNetVoltage_Min
_Dnet203_GetNetVoltage_Max
_Dnet204_GetONTime_PV
_Dnet205_GetONTime_Stat
_Dnet206_GetCounter_IN_PV
_Dnet207_GetCounter_IN_SV
Read Input Terminal Maintenance Counter Set Reads the set values of terminal maintenance
Value
counters from slaves connected to DeviceNet.
_Dnet208_GetCounter_OUT_PV
_Dnet209_GetCounter_OUT_SV
_Dnet210_GetCounter_Stat
_Dnet211_GetInputPower_Stat
_Dnet212_GetOutPower_Stat
_Dnet213_GetLoadShort_Stat
_Dnet214_GetLoadOffWire_Hold
_Dnet215_GetLoadOffWire_Stat
_Dnet216_GetOperationTime_PV
_Dnet217_GetOperationTime_SV
_Dnet218_GetOperationTime_Stat
_Dnet219_GetOperationTime_Hold
_Dnet220_GetOperationTime_Peak
_Dnet221_GetSensorOffWire_Stat
_Dnet222_GetSensorOffWire_Hold
_Dnet223_GetSensorShort_Stat
_Dnet224_GetSensorShort_Hold
Read Sensor Power Supply Short-circuit Hold Reads the power supply short circuit hold status from
Status
slaves connected to DeviceNet.
Target
DRT2ID16/OD16/R
OS16
ID16TA/OD16
Reads maintenance counter status from slaves
TA/MD16TA
connected to DeviceNet.
ID32ML/OD32
Reads the input power status from slaves connected to ML
DeviceNet.
ID16S/MD16S
Reads the power supply status for outputs from slaves ID32SLH/OD3
2SLH/MD32S
connected to DeviceNet.
LH
Reads the load OFF short-circuit status from slaves
ID32SL/OD32
connected to DeviceNet.
SL/MD32SL
Reads the load OFF wire hold status from slaves
ID08C/OC08C
connected to DeviceNet.
HD16C
Reads the load OFF wire status from slaves connected AD04/AD04H
DA02
to DeviceNet. Use this FM for output terminals.
TS04
Reads the present values of the operation time
monitors from slaves connected to DeviceNet.
Reads the set values of terminal maintenance
counters from slaves connected to DeviceNet.
FBL-2
List of The OMRON
FB Library
RFID
V600
FBL
omronlib
FB Name
V600
V600
Function Name
Basic function
_V60x001_CheckData
The CRC is calculated and written for the data in the Data Carrier.
_V60x002_ControlWrites
_V60x200_ReadData
_V60x400_WriteData
_V60x401_SetBit
_V60x402_ClearBit
_V60x403_WriteMaskBit
Writes the specified data to a Data Carrier using the specified mask
data.
_V60x404_WriteCalculation
Write Calculation
_V60x405_FillData
_V60x406_Copy
Copies the data from one Data Carrier and writes it to another Data
Carrier.
_V60x600_SetSystemSetting
Servo
SRV
Serial
Target
CS1WV600C11
CS1WV600C12
CJ1WV600C11
CJ1WV600C12
Driver
FBL
FB Name
SRV
RFID
omronlib
Function Name
ServoDriver
SRV
Basic function
_SRV080_Reset
_SRV201_ReadParameter
_SRV203_ReadAxisError
_SRV206_ReadValue
_SRV401_WriteParameter
Target
R88D-Wxx
R7D-Axx
TemperatureController
E5R
FBL
FB Name
Dnet
E5R
Serial
omronlib
Function Name
Temperature
Controller
E5R
Basic function
_E5xxDRT001_ExeOperation
Operation Command
_E5xxDRT002_Run
Start Operation
_E5xxDRT003_Stop
Stop Operation
_E5xRDRT004_ExecuteAT
Autotune
_E5xRDRT005_CancelAT
Stop Autotuning
_E5xxDRT200_ReadVariable
_E5xxDRT201_ReadStatus
Read Status
_E5xxDRT202_ReadPV
_E5xxDRT203_ReadSP
_E5xxDRT204_ReadCoolingMV
Read Cooling MV
_E5xxDRT205_ReadHeatingMV
Read Heating MV
_E5xRDRT206_ReadValveOpening
_E5xxDRT400_WriteVariable
_E5xxDRT403_WriteSP
_E5xx001_ExeOperation
Operation Command
_E5xx002_Run
Start Operation
_E5xx003_Stop
Stop Operation
_E5xR004_ExecuteAT
Autotune
_E5xR005_CancelAT
Stop Autotuning
_E5xx200_ReadVariable
_E5xx201_ReadStatus
Read Status
_E5xx202_ReadPV
Target
_E5xx203_ReadSP
_E5xx204_ReadCoolingMV
Read Cooling MV
_E5xx205_ReadHeatingMV
Read Heating MV
_E5xR206_ReadValveOpening
Reads the monitor value for valve opening for the specified channel of
a Controller.
_E5xx400_WriteVariable
_E5xx403_WriteSP
E5AR
E5ER
E5CN
FBL
FB Name
E5CN
Serial
omronlib
Function Name
Temperature
Controller
E5CN
Basic function
_E5xx001_ExeOperation
Operation Command
_E5xx002_Run
Start Operation
_E5xx003_Stop
Stop Operation
_E5xN004_ExecuteAT
Autotune
_E5xN005_CancelAT
Stop Autotuning
_E5xx200_ReadVariable
_E5xx201_ReadStatus
Read Status
_E5xx202_ReadPV
_E5xx203_ReadSP
_E5xx204_ReadCoolingMV
Read Cooling MV
_E5xx205_ReadHeatingMV
Read Heating MV
_E5xx400_WriteVariable
_E5xx403_WriteSP
Target
E5CN/E5C
N-U
E5ZN
FBL
FB Name
omronlib
Function Name
Serial
E5ZN
Basic function
_E5xxDRT001_ExeOperation
Operation Command
_E5xxDRT002_Run
Start Operation
_E5xxDRT003_Stop
Stop Operation
_E5ZNDRT004_ExecuteAT
Autotune
_E5ZNDRT005_CancelAT
Stop Autotuning
_E5xxDRT200_ReadVariable
_E5xxDRT201_ReadStatus
Read Status
_E5xxDRT202_ReadPV
_E5xxDRT203_ReadSP
_E5xxDRT204_ReadCoolingMV
Read Cooling MV
_E5xxDRT205_ReadHeatingMV
Read Heating MV
_E5xxDRT400_WriteVariable
_E5xxDRT403_WriteSP
_E5xx001_ExeOperation
Operation Command
_E5xx002_Run
Start Operation
_E5xx003_Stop
Stop Operation
_E5xR004_ExecuteAT
Autotune
_E5xR005_CancelAT
Stop Autotuning
_E5xx200_ReadVariable
_E5xx201_ReadStatus
Read Status
_E5xx202_ReadPV
_E5xx203_ReadSP
_E5xx204_ReadCoolingMV
Read Cooling MV
_E5xx205_ReadHeatingMV
Read Heating MV
_E5xR206_ReadValveOpening
Reads the monitor value for valve opening for the specified channel
of a Controller.
Dnet
E5ZN
Temperature
Controller
Target
E5ZN-DRT
_E5xx400_WriteVariable
_E5xx403_WriteSP
E5ZN
TCx
FBL
omronlib
FB Name
TCx
Function Name
Temperature
Controller
TCx
Basic function
_TCx002_Run
Start Control
_TCx003_Stop
Stop Control
_TCx004_ExecuteAT
Autotune
_TCx005_CancelAT
Cancel Autotuning
_TCx201_ReadStatus
Read Status
_TCx202_ReadPV
_TCx203_ReadSP
_TCx403_WriteSP
Target
CJ1W-TCx
Vision
Sensor
Fxxx
FBL
omronlib
FB Name
_Fxxx001_Reset
Fxxx
VisionSensor
Function Name
Reset
Fxxx
Basic function
Target
_Fxxx200_GetSceneNo
_Fxxx201_ChangeSceneNo
Change Scene
_Fxxx202_GetSceneGrNo
_Fxxx203_ChangeSceneGrNo
_Fxxx401_ExecMeasure
Execute Measurement
_Fxxx402_ExecPictureMeasure
F160
F210
Authorized Distributor:
Printed in Japan