Professional Documents
Culture Documents
Chapter
6
Communication control
Communication control
Each of these commands issues the specified trigger. For non-procedural commands
• Send
For non-procedural commands
• Send TA
• Receive
T1 Issues Trigger 1.
Execution result
• 0: Success
• 22: Some unnecessary parameter is included.
• 03: The command was sent when triggers could not
be accepted or when trigger input was disabled
(when READY* is not turned on).
Real-time performance
This does not affect the measurement processing time
• Send • Receive
R0 S0
• Send
For number-specified commands
The number-specified command No. is "8". Word device *
• Send 9
* Starting word device (command address)
Word device *
8 • Receive
* Starting word device (command address) Word device *
Real-time performance
The command is instantly executed.
• Receive Word *
device
Word
* 15
device
* Starting word device (command address)
Return Execution
value result • Receive
* Starting word device (command result address) Word *
device
Parameters (common)
Return Execution
• n: Specified screen type (0 - 1)
value result
0: Image display
* Starting word device (command result address)
1: Operation screen
• mm: Screen No. Execution result
0 - 4: Camera No. (1 - 4, 0 = All cameras) • 0: Success
0 - 9: Operation screen No. (S00 - S09) • 22: Some unnecessary parameter is included.
Real-time performance
This does not affect the measurement processing time.
device PW
16
For number-specified commands
* Starting word device (command address) The number-specified command No. is "24".
• Receive • Send
Word * Word
*+1
*+2
*+3
*+1
*+2
*+3
*+4
*+5
*
device device
Return Execution n 24 d nnn
value result * Starting word device (command address)
* Starting word device (command result address)
• Receive
Parameters (common) Word
*
• n: Controller status device
0: Setup mode Return Execution
1: Run mode value result
* Starting word device (command result address)
Execution result
• 0: Success Parameters (common)
• 22: Some unnecessary parameter is included. • d: SD card No. (1 or 2)
- 1: SD1
Real-time performance
- 2: SD2
This does not affect the measurement processing
• nnn: Program No. (0 to 999)
time.
Execution result
• 0: Success
• 22: The number of parameters or the range of the
parameter is incorrect.
• 03:
- The program does not exist.
- The SD card has not been inserted or cannot be
accessed.
- The controller ID lock is applied to the specified
program.
- When the switching destination program is lower
than version 4.0 (Conversion via manual switching
operation is necessary) (In the case of the CV-
X400/X300 Series only)
Real-time performance
The program is changed after measurement
processing finishes.
Word CSH
* 2: 1/60
device
Return Execution d nnn 3: 1/120
value result 4: 1/240
* Starting word device (command result address) 5: 1/500
6: 1/1000
Parameters (common) 7: 1/2000
• d: SD card No. (1 or 2) 8: 1/5000
- 1: SD1 9: 1/10000
- 2: SD2 10: 1/20000
• nnn: Program No. (0 to 999) 11: 1/50000*1
Execution result 12: 1/100000*1
• 0: Success - p: Capture number (for Program Setting
• 22: Some unnecessary parameter is included. (Generic)) or capture point (for Program Setting
(Connector)) (1 to 8)
Real-time performance - l: Lighting for multiple image capture (1 to 2)
This command does not affect the measurement 1: Lighting A
processing time. 2: Lighting B
Lighting in 3D Capture Mode (1 to 2)
1: Lighting for 2D Capture
2: Lighting for 3D Capture
Lighting in Outline Capture Mode (1 to 2)
1: Lighting for acquiring normal images and
moving object correction images
2: Lighting for acquiring images in each direction
*1 Can only be specified for CA-H500CX/H500MX/H200CX/
H200MX/HX500C/HX500M/HX200C/HX200M
*+1
*+2
*+3
*+4
*+5
* parameter is incorrect.
device
32 c nn - The capture number (p) parameter has not been
set when multi-capture is used.
Word
- The capture number (p) and lighting (l)
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*
device
parameters have not been set when connector
32 c nn p
multiple image capture (multi-capture) is used.
Word - The capture number (p) and lighting (l)
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device parameters are set when multiple image capture
32 c nn p l (multi-capture) is not used.
* Starting word device (command address) - An invalid capture number or lighting was
Control/data output via commands
• Receive specified.
• 03:
Word
* - The specified camera No. is invalid or the camera
device
is disconnected.
Return Execution
- When a camera No. where the LJ-V Series head is
value result
selected is specified.
* Starting word device (command result address)
If the same camera settings are set as
• Parameter Reference
shared for different capture numbers, the
- c: Camera No. (1 to 4) same setting is changed for all such
- nn: Shutter speed capture numbers.
0: 1/15
Real-time performance
1: 1/30
This command is executed by stopping the current
2: 1/60
measurement temporarily.
3: 1/120
4: 1/240
5: 1/500
6: 1/1000
7: 1/2000
8: 1/5000
9: 1/10000
10: 1/20000
11: 1/50000*1
12: 1/100000*1
- p: Capture number (for Program Setting
(Generic)) or capture point (for Program Setting
(Connector)) (1 to 8)
- l: Lighting for multiple image capture (1 to 2)
1: Lighting A
2: Lighting B
Lighting in 3D Capture Mode (1 to 2)
1: Lighting for 2D Capture
2: Lighting for 3D Capture
Lighting in Outline Capture Mode (1 to 2)
1: Lighting for acquiring normal images and
moving object correction images
2: Lighting for acquiring images in each direction
*1 Can only be specified for CA-H500CX/H500MX/H200CX/
H200MX/HX500C/HX500M/HX200C/HX200M
*
device
is disconnected.
33 c nn
- When a camera No. where the LJ-V Series head is
Word selected is specified.
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*
device
If the same camera settings are set as
33 c nn p Reference
shared for different capture numbers, the
same setting is changed for all such
Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
* capture numbers.
device
33 c nn p l Real-time performance
* Starting word device (command address) This command is executed by stopping the current
• Receive measurement temporarily.
Word
*
device
Return Execution
value result
* Starting word device (command result address)
specified.
- nnn: Trigger delay (0 to 999) (ms)
• 03:
- p: Capture number (for Program Setting
- The specified camera No. is invalid or the camera
(Generic)) or capture point (for Program Setting
is disconnected.
(Connector)) (1 - 8)
- When a camera No. where the LJ-V Series head is
- l: Lighting for multiple image capture (1 - 2)
selected is specified.
1: Lighting A
2: Lighting B If the same camera settings are set as
Reference
shared for different capture numbers, the
For number-specified commands same setting is changed for all such
The number-specified command No. is "34". capture numbers.
• Send
Real-time performance
Word This command is executed by stopping the current
*+1
*+2
*+3
*+4
*+5
*
device measurement temporarily.
34 c nnn
Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*
device
34 c nnn p
Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device
34 c nnn p l
* Starting word device (command address)
• Receive
Word
*
device
Return Execution
value result
* Starting word device (command result address)
• Parameter
- c: Camera No. (1 to 4)
- nnn: Trigger delay (0 to 999) (ms)
- p: Capture number (for Program Setting
(Generic)) or capture point (for Program Setting
(Connector)) (1 - 8)
- l: Lighting for multiple image capture (1 - 2)
1: Lighting A
2: Lighting B
*+1
*+2
*+3
*+4
*+5
*
• Send device
CLV,c,nnnn 35 c nnn
CLV,c,nnnn,p Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*
CLV,c,nnnn,p,l device
• Receive 35 c nnn p
CLV Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device
• Parameter
35 c nnn p l
- c: Light No.
* Starting word device (command address)
1 to 8 (CV-X200/X100 Series)
Execution result
• 0: Success Vision tool
• 22:
- The number of parameters or the range of the BS: Image registration
parameter is incorrect. This command saves the latest current image as a reference
- The capture number (p) parameter has not been image with number nnn, and then calculates the reference
set when multi-capture is used. value based on the saved reference image. If the parameters
- The capture number (p) and lighting (l) are not specified, the command recalculates the reference
parameters have not been set when connector value based on the current reference image.
multiple image capture (multi-capture) is used.
• If a file with the same number exists, that file
- The capture number (p) and lighting (l) Reference
will be overwritten unless it is read-only.
parameters are set when multiple image capture • For number-specified commands, setting 0 for
(multi-capture) is not used. the first argument will recalculate the reference
- An invalid capture number or lighting was value based on the current reference image.
• For more details about reference image
Control/data output via commands
specified.
numbers when registering images taken by
• 03: The illumination expansion unit is disconnected/
high-functioning cameras or LJ-V series heads,
The specified illumination expansion unit is turned refer to "Reference image numbers for capture
off/The setting of the specified illumination using high-functioning cameras or LJ-V series
expansion unit is invalid. heads" (Page 7-14).
*+1
*+2
*+3
*+4
*+5
*
device For non-procedural commands
40 c nnn • Send
Word EXW,n
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*
device • Receive
40 c nnn p
EXW
Word
For number-specified commands
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device
The number-specified command No. is "41".
40 c nnn p l
• Send
* Starting word device (command address)
Word
Real-time performance
This command is executed by stopping the current
measurement temporarily.
CV-X UM_A 6-17
Details of communication control commands
*
device - If the string is changed to the latest readout
result, a space of 20 characters in the case of
Return Execution n
the OCR tool and 40 characters in the case of
value result the OCR2 tool is allocated if measurement has
* Starting word device (command result address) not yet been performed. If the string read is
less than the maximum number of characters,
Parameters (common) spaces are inserted for the remaining
characters.
• n: 0 to 99 (execute condition number)
- If a recognized character is "? (recognition
impossible)", a space is placed for the character.
Execution result - If no string is specified (CW,nnn,m," ),
• 0: Success the registered string is cleared.
• 22: Some unnecessary parameter is included. - If measurement has not yet been performed,
spaces are set.
• The following restrictions apply when using with
Real-time performance
the 1D code reader tool and 2D code reader tool.
This does not affect the measurement processing - The string is cleared if measurement has not
time. yet been performed.
- The registered string ssss can contain a
maximum of 200 characters.
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*
device
character strings as the [Registered String] and
43 nnn m t
[Reference Pattern] on the tool edit screen. In the case of
* Starting word device (command address) the number-specified command, when the end of the
• Send (t=1) string is reached, 0 is stored and the process ends.
Word
*+10
*+11
For non-procedural commands
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
* ···
device
• Send
43 nnn m t s1 s2 ···
CR,nnn,m
* Starting word device (command address)
• Receive
• Receive
For 2D code reader tool: Number of characters 0 - 512 * Starting word device (command address)
• Receive
Execution result
• 0: Success Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
* ···
• 03: device
- A tool other than OCR, OCR2, 1D code reader, or Return Execution s1 s2 s3 ···
2D code reader was specified. value result
- The specified tool has a setting error. * Starting word device (command result address)
• 22: • Parameter
- The number of parameters or the range of the - nnn: Tool No. (100 to 499)
parameter is incorrect. - m: Line No./Reference condition No.
- An unnecessary parameter is included. For OCR tool or OCR2 tool: 1 (fixed)
- A character that cannot be used has been For 1D code reader tool or 2D code reader tool: 1 - 16
specified. - ssss: Registered string (2 words are used per
character. Terminator is 0 (zero).)
Real-time performance For OCR tool: Number of characters 0 - 20
This command is executed by stopping the current For OCR2 tool: Number of characters 0 - 40
measurement temporarily. For 1D code reader tool: Number of characters 0 - 128
For 2D code reader tool: Number of characters 0 - 512
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device
45 nnn aaa b mmm
* Starting word device (command address)
• Receive
Word
*
device
Return Execution
value result
* Starting word device (command result address)
Parameters (common)
• nnn: Tool No. (100 to 499)
When Multi-Region Mode is ON, the region No.
Reference
can be specified by specifying the following
values.
100 *Tool No. (100 to 499) + Region No. (0 to 31)
If no region No. is specified (if a value between
100 and 499 is specified), the region with the
youngest number will be the target.
• Receive
Word
*+1
*+2
*+3
*
device
Return Execution mmm
value result
* Starting word device (command result address)
Parameters (common)
• nnn: Tool No. (100 to 499)
When Multi-Region Mode is ON, the region No.
Reference
can be specified by specifying the following
values.
100 *Tool No. (100 to 499) + Region No. (0 to 31)
If no region No. is specified (if a value between
100 and 499 is specified), the region with the
youngest number will be the target.
*+1
*+2
*+3
*+4
*+5
*
device
Control/data output via commands
47 nnn mmm
* Starting word device (command address)
• Receive
Word
*
device
Return Execution
value result
* Starting word device (command result address)
Parameters (common)
• nnn: Tool No. (100 to 499)
When Multi-Region Mode is ON, the region No.
Reference
can be specified by specifying the following
values.
100 *Tool No. (100 to 499) + Region No. (0 to 31)
If no region No. is specified (if a value between
100 and 499 is specified), the region with the
youngest number will be the target.
Execution result
• 0: Success
• 22: The number, the number of digits, or the range of
the parameter is incorrect.
• 03:
- Specified tool is not a defect tool.
- The custom menu screen is open.
- The new value is incorrect.
Real-time performance
This does not affect the measurement processing time.
* Word
*+10
*+11
*+12
*+13
*+14
*+15
*+16
device
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
* Word
*+1
device *
device
Return Execution mmm
Return Execution
value result
value result
* Starting word device (command result address)
* Starting word device (command result address)
Parameters (common)
Parameters (common)
• nnn: Tool No. (100 to 499)
• nnn: Tool No. (100 to 499)
Reference
When Multi-Region Mode is ON, the region No. • m: Detect result row number (1)
can be specified by specifying the following • aa: Detect result character number
values.
- For OCR tool: 1 to 20
100 *Tool No. (100 to 499) + Region No. (0 to 31)
- For OCR2 tool: 1 to 40
If no region No. is specified (if a value between
100 and 499 is specified), the region with the • ccc: Destination character type (Page 6-24)
youngest number will be the target. - For OCR tool: -1 to 65 (does nothing when -1)
- For OCR2 tool: -1 to 68 (does nothing when -1)
• mmm: Defect level value
Execution result
Execution result
• 0: Success
• 0: Success
• 03:
• 22: The number, the number of digits, or the range of
- The SD card has not been inserted or cannot be
the parameter is incorrect.
accessed
• 03: Specified tool is not a defect tool.
- The tool does not exist or a tool other than OCR/
• 05: Command response output failed (insufficient OCR2 is specified
command response output area) - The built-in library is selected in the tool or the
Real-time performance specified library file does not exist
- Failed to register to the OCR library
This does not affect the measurement processing time.
• 22:
- The number of parameters or the range of the
parameter is incorrect.
Real-time performance
This command is instantly executed.
CD: Delete 1 Character from Library Character type specified in the CA/CD command
The registration destination character type specified by the
Deletes the character for the last Register No. of the
CA command and character type to be deleted by using the
specified character type from the OCR library.
CD command is specified by using the code which
For non-procedural commands corresponds to the character type.
• Send The corresponding code for the character types are shown
CD,nnn,ccc below.
Character type Code Character type Code
• Receive
Not specified -1 - 36
CD
0 0 . 37
1 1 : 38
For number-specified commands
The number-specified command No. is "50". 2 2 / 39
• Send 3 3 a 40
4 4 b 41
Control/data output via commands
Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
* 5 5 c 42
device
50 nnn ccc 6 6 d 43
* A 10 h 47
device
B 11 i 48
Return Execution
value result C 12 j 49
*
device region with the youngest number will be
the target.
51 c x y z rx ry rz
* Starting word device (command address) - m:
Measurement Item No. (0 to 31, for Profile
• Receive
Measurement or Continuous Profile Measurement)
Word Item ID for the judgment conditions type (for Height
* Measurement or Trend Height Measurement)
device
- a: Value
Return Execution
- c: Correction value
value result
For number-specified commands
* Starting word device (command result address)
The number-specified command No. is "52".
Parameters (common) • Send
• c: All cameras (0) or Camera No. (1 to 4) Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*
• x: X position (-9999.999 to 9999.999) device
*
• rz: Angle Z (-180.000 to 180.000) device
- The range of the parameter is incorrect. value after correction for correction values 1 and 2 in
- When the number of digits of the parameter is too order to calculate these values.
many. (4) Change the correction method to 2-point correction,
perform an inverse calculation on the specified
Real-time performance coefficients A and B from the set value after correction,
This does not affect the measurement processing and then set this result as the correction value.
time.
For non-procedural commands
• Send
MCW,nnn,m,l,c,f (1)
MCW,nnn,m,l,o (2)
MCW,nnn,m,l,c1,f1,c2,f2 (3)
MCW,nnn,m,l,a,b (4)
• Receive
MCW
• Parameter
- nnn: Tool No. (100 to 499)
When Multi-Region Mode is ON, the
Reference
region No. can be specified by specifying
the following values.
100 *Tool No. (100 to 499) + Region No. (0 to 31)
If no region No. is specified (if a value
between 100 and 499 is specified), the
region with the youngest number will be
the target.
- m:
Measurement Item No. (0 to 31, for Profile
Measurement or Continuous Profile Measurement)
AL (All measurement items)
Item ID for the judgment conditions type (for Height
Measurement or Trend Height Measurement)
- l: Correction method
0: 1-point correction (1)(2)
1: 2-point correction (3)(4)
- c: Value before correction
- f: Value after correction
- o: Offset value
- c1: Value before correction 1
- c2: Value before correction 2
- f1: Value after correction 1
- f2: Value after correction 2
- a: Coefficient A
- b: Coefficient B
*+10
*+11
*+12
*+13
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device Measurement, Trend Height Measurement, Profile
53 nnn m l t c f Measurement, or Continuous Profile Measurement
Word is specified
*+10
*+11
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device - A measurement item number that is not covered is
53 nnn m l t o specified when Profile Measurement or
Word Continuous Profile Measurement is set.
*+10
*+11
*+12
*+13
*+14
*+15
*+16
*+17
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
* - The correction calculation failed.
device
53 nnn m l t c1 f1 c2 f2 • 22:
- The number of parameters is incorrect.
Word
*+10
*+11
*+12
*+13
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
- m:
Measurement Item No. (0 to 31, for Profile
Measurement or Continuous Profile Measurement)
AL (All measurement items)
Item ID for the judgment conditions type (for Height
Measurement or Trend Height Measurement)
- l: Correction method
0: 1-point correction (1)(2)
1: 2-point correction (3)(4)
- t: Specification Method
0: Specify Correction Value
1: Specify offset and coefficient
- c: Value before correction
- f: Value after correction
- o: Offset value
- c1: Value before correction 1
- c2: Value before correction 2
- f1: Value after correction 1
- f2: Value after correction 2
- a: Coefficient A
- b: Coefficient B
*
device
54 nnn m Real-time performance
* Starting word device (command address) This does not affect the measurement processing
• Receive time.
Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device
Return Execution
0 c f o
value result
Word
*+10
*+11
*+12
*+13
*+14
*+15
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device
Return Execution
1 c1 f1 c2 f2 a b
value result
Word
*
device For number-specified commands
56 n The number-specified command No. is "57".
* Starting word device (command address) • Send
• Receive Word
*+1
*+2
*+3
*
Word device
*
device 57 n
Return Execution * Starting word device (command address)
value result
• Receive
* Starting word device (command result address)
Word
*
Parameters (common) device
• n: Return Execution
- 0: Trigger input disabled value result
- 1: Trigger input enabled * Starting word device (command result address)
Real-time performance
- This does not affect the measurement processing
time.
OR changes. However, such change is not applied to The number-specified command No. is "64".
the terminal blocks. • Send
- When output is enabled, the current value of OR is Word
immediately applied to the external terminals. *
device
- For STO, OUT_DATA0 to 15, output is resumed at the 64
next trigger execution. * Starting word device (command address)
• Relationship with TEST
• Receive
- There is no priority setting between OE and TEST
terminal. The value specified later overwrites the Word
*
setting by which output is enabled or disabled. device
*
device
65 n
* Starting word device (command address)
• Receive
Word
*
device
Return Execution
value result
* Starting word device (command result address)
Parameters
• n: File type for saving
- 0: Measured values file (a save file using the list of
measured values)
- 1: Statistics files (a save file using process
monitor)
• ssss: Output destination folder name (a string with a
maximum of 221 characters, a double-byte
character is counted as two single-byte characters)
Real-time performance
This does not affect the measurement processing
time.
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device
"Image Capture" of the global setting (Page 5-30).
67 n m h c
* Starting word device (command address) For non-procedural commands
• Send
• Receive
BC
Word
* BC, n
device
Return Execution • Receive
value result
BC
* Starting word device (command result address)
For number-specified commands
*+1
*+2
*+3
*
0 (Latest Archive) device
1 (Total NG Archive) 68 n
- h: Measurement Count (binary of 2 words in little * Starting word device (command address)
endian) • Receive
1 to 1000000000: measurement count
Word
0: latest measurement (NW) *
device
-1: all measurements (AL)
Return Execution
- c: Camera No.
value result
0: AL (all cameras)
* Starting word device (command result address)
1 to 4: Camera No.
- d: Device Parameters (common)
0: SD Card • n: Output destination
1: USB HDD - None: SD2
Execution result - 0: SD2
• 0: Success - 1: FTP
• 22: The number of parameters or the range of the - 2: VisionDataStorage(USB)
parameter is incorrect. Execution result
• 03: • 0: Success
- Data saving failed at least once (per image). • 22: Some unnecessary parameter is included.
- The SD card/USB HDD is not inserted. • 03:
- The saving destination folder or file cannot be - The SD card is not writable.
created. - The SD card is not found.
- The saving destination file cannot be opened. - FTP output, or VisionDataStorage(USB) output
- The SD card/USB HDD capacity is full. failed.
- When the following parameter settings and results
exist. Real-time performance
When NW or an integer value is specified for This does not affect the measurement processing
Measurement Count and the archived image with time.
the specified measurement count does not exist.
When AL is specified and no archived images
exist.
When AL is specified and the image archived at
the time of receiving the command is not available
for output (overwritten).
Real-time performance
This does not affect the measurement processing
time.
OW,n • Parameters
• Receive - n: Specify the Externally Specified String to be
changed (0 to 9)
OW
- "ssss: Changing string (number of characters 0 to 64)
For number-specified commands
For number-specified commands
Control/data output via commands
*+1
*+2
*+3
*+4
*+5
*+6
*+7
* * ...
device device
69 n 70 n s1 s2 ...
* Starting word device (command address) * Starting word device (command address)
• Receive • Receive
Word Word
*
* device
device
Return Execution
Return Execution value result
value result
* Starting word device (command result address)
* Starting word device (command result address)
• Parameters
Parameters (common) - n: Specify the Externally Specified String to be
• n: Select the target for changing changed (0 to 9)
- 0: Changes the SD2/FTP/VisionDataStorage(USB)/ - "ssss: Changing string (number of characters 0 to 64)
USB HDD result output file Two words per character are used, and the
- 1: Changes the SD2/FTP/VisionDataStorage(USB)/ termination code is 0 (zero)
USB HDD/PC Program image output folder
Execution result
Execution result • 0: Success
• 0: Success • 03: When the Externally Specified String cannot be
• 22: The number of parameters or the range of the utilized (in the case of old version of program setting
parameter is incorrect. etc.)
• 22:
Real-time performance
- Some unnecessary parameter is included.
This command is instantly executed.
- The range of the parameter is incorrect.
Real-time performance
This command is instantly executed.
*
device • 0: Success
71 n • 22
* Starting word device (command address) - The characters in the parameter exceed 128
• Receive characters.
Word
- The character string of the parameter includes a
*+1
*+2
*+3
*+4
*+5
*+6
*+7
* ...
device character other than those specified above.
Return Execution s1 s2 s3 ... - The number of parameters is incorrect.
value result
* Starting word device (command result address) Real-time performance
• Parameters This does not affect the measurement processing
- n: Specify the Externally Specified String to be time.
read (0 to 9)
- ssss: Read string (number of characters 0 to 64)
Two words per character are used, and the
termination code is 0 (zero)
Execution result
• 0: Success
• 03: When the Externally Specified String cannot be
utilized (in the case of old version of program setting
etc.)
• 22:
- Some unnecessary parameter is included.
- The range of the parameter is incorrect.
Real-time performance
This command is instantly executed.
TR : Read date/time
System
This command reads the current date and time on the
TW: Write Date/Time controller.
This command sets the date and time of the controller. For non-procedural commands
• Send
For non-procedural commands
• Send TR
• Receive
TW,yy,mo,dd,hh,mi,ss
TW,yyyy,mo,dd,hh,mi,ss TR,yy,mo,dd,hh,mi,ss
*+12
*+13
*+10
*+11
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
Word *
*+12
*+13
*+10
*+11
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
* device
device
Return Execution
80 yyyy mo dd hh mi ss yy mo dd hh mi ss
value result
* Starting word device (command address)
* Starting word device (command result address)
• Receive
Parameters (common)
Word
* • yy: Year (0 to 99, lower two digits of the western
device
calendar (05 for 2005))
Return Execution
• mo: Month (1 to 12)
value result
• dd: Day (1 to 31)
* Starting word device (command result address)
• hh: Hour (0 to 23, 24-hour format)
Parameters (common) • mi: Minutes (0 to 59)
• yy: Year (0 to 99, lower two digits of the western • ss: Seconds (0 to 59)
calendar (05 for 2005)). When 00 to 99 is specified,
Execution result
2000 will be added to the value before processing.
• 0: Success
• yyyy: Year (2000 to 2099)
• 22: Some unnecessary parameter is included.
• mo: Month (1 to 12)
• dd: Day (1 to 31) Real-time performance
• hh: Hour (0 to 23, 24-hour format) This does not affect the measurement processing
• mi: Minutes (0 to 59) time.
• ss: Seconds (0 to 59)
Execution result
• 0: Success
• 22: The number of parameters or the range of the
parameter is incorrect.
• 03: The date/time setting failed.
Real-time performance
This does not affect the measurement processing
time.
Word
*
device
82
* Starting word device (command address)
• Receive
Word
*+10
*+11
*+1
*+2
*+3
*+4
*+5
*+6
*+7
*+8
*+9
*
device
Return Execution
nnn g hw mj mn
value result
* Starting word device (command result address)
• Parameter
- nnn: The numbers of the model. (numerical
values)
- g: Package (F=0, M=1, A=2, R=3, E=4, LJ=5)
- hw: The first number of the major version in the
ROM version information
- mj: The second number of the major version in the
ROM version information
- mn: Minor version included in the ROM version
information
- Example: The model is "CV-X172F", the ROM
version is "2.0.0001", and the command result
address is set as 200.
DM202-203 172
DM204-205 0
DM206-207 2
DM208-209 0
DM210-211 1
• Receive • Receive
TZW TZR,n
*+1
* *
device device
Control/data output via commands
83 n 84
* Starting word device (command address) * Starting word device (command address)
• Receive • Receive
Word Word
*+1
*+2
*+3
*+4
*+1
* *
device device
Return Execution Return Execution n
value result value result
* Starting word device (command result address) * Starting word device (command result address)
The images output via the VisionDatabase function are For non-procedural commands
deleted in accordance with the VisionDatabase settings. • Send
This command is only received and then a response is DSW,n,ssss
returned.
• Receive
Delete processing is implemented separately after the
command is received. DSW
• Parameter
For non-procedural commands
- n: Specifies the External Input String to change
• Send
0: External Input String 1
DDF
1: External Input String 2
Word Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
* * ···
device device
96 97 n s1 s2 ···
* Starting word device (command address) * Starting word device (command address)
• Receive • Receive
Word Word
* *
device device
Return Execution Return Execution
value result value result
* Starting word device (command result address) * Starting word device (command result address)
• Parameter
Execution result - n: Specifies the External Input String to change
• 0: Success 0: External Input String 1
• 03: 1: External Input String 2
- The command was received during deletion - ssss: Changing string (Number of characters 0 - 200)
processing.
(2 words are used per character. Terminator is 0 (zero).)
- If the VisionDatabase output function has not been
added to the controller Execution result
• 22: Some unnecessary parameter is included. • 0: Success
• 03: If the VisionDatabase output function has not
Real-time performance
been added to the controller
This does not affect the measurement processing
• 22:
time.
- Some unnecessary parameter is included.
- A character that cannot be used has been
specified.
- The number of parameters is incorrect.
Real-time performance
This does not affect the measurement processing
time.
• Parameter
- n: Specifies the External Input String to read
0: External Input String 1
1: External Input String 2
Control/data output via commands
*
device
98 n
* Starting word device (command address)
• Receive
Word
*+1
*+2
*+3
*+4
*+5
*+6
*+7
* ···
device
Return Execution ···
s1 s2 s3
value result
* Starting word device (command result address)
• Parameter
- n: Specifies the External Input String to read
0: External Input String 1
1: External Input String 2
- ssss: Read string (Number of characters 0 - 200)
(2 words are used per character. Terminator is 0 (zero).)
Execution result
• 0: Success
• 03: If the VisionDatabase output function has not
been added to the controller
• 22:
- Some unnecessary parameter is included.
- A character that cannot be used has been
specified.
- The number of parameters is incorrect.
Real-time performance
This does not affect the measurement processing
time.
Control/data output
via commands
Control/data output
q
via the PLC-Link
Control/data output
Controller PLC
DM100 80 Instruction No.
DM101
DM102 12 Year
DM103
Date & Time of Command DM104 2 Month
import DM105
the controller is
changed to DM106 12 Day
Command
2012/02/12 DM107
execution
03:27:10. DM108 3 Time
DM109
DM110 27 Minute
DM111
DM112 10 Second
DM113
• The range of data memories differ depending on the system. For more details, refer to the manual for each PLC.
Reference
• Except for some PLCs, only connections via a link unit are supported.
Keyence Corporation
Series name PLC Controller Link unit PLC operation mode PLC type
Omron Corporation
Series name PLC Controller Link unit PLC operation mode PLC type
SYSMAC SPM1 SRM1-C01 CPM1-C1F01 Upper link (SYSWAY) SYSMAC C Series
SRM1-C02
SYSMAC CPM1 CPM1 CPM1-C1F01 Upper link (SYSWAY) SYSMAC C Series
SYSMAC CPM1A CPM1A
SYSMAC CPM2A CPM2A-30CD**, CPM2A-40CD**, CPM1-C1F01 Upper link (SYSWAY) SYSMAC C Series
CPM2A-60CD**
SYSMAC CPM2C CPM2C-10CD**, CPM2C-20CD** CPM1-C1F01 Upper link (SYSWAY) SYSMAC C Series
CPM2C-C1F01
SYSMAC CQM1H CQM1H-CPU11*, CQM1H-CPU21*, CPM1-C1F01 Upper link (SYSWAY) SYSMAC C Series
CQM1H-CPU51/61 CQM1H-SCB41
SYSMAC C C120, C120F C120-LK201-V1 Upper link (SYSWAY) SYSMAC C Series
C200H C200H-LK201 (-V1) Upper link (SYSWAY) SYSMAC C Series
C200HS-CPU01, C200HS-CPU03,C200HS-CPU21/23, C200H-LK201 (-V1) Upper link (SYSWAY) SYSMAC C Series
Control/data output via the PLC-Link
C200HS-CPU31/33
C500, C500F, C1000H, C1000HF, C2000, C2000H C120-LK201-V1 Upper link (SYSWAY) SYSMAC C Series
C500-LK201-V1
C500-LK203
SYSMAC α C200HE-CPU11, C200HE-CPU32, C200HE-CPU42 C200H-LK201 (-V1) Upper link (SYSWAY) SYSMAC C Series
C200HG-CPU33, C200HG-CPU43, C200HG-CPU53, C200H-LK201 (-V1) Upper link (SYSWAY) SYSMAC C Series
C200HG-CPU63
C200HX-CPU34, C200HX-CPU44, C200HX-CPU54, C200H-LK201 (-V1) Upper link (SYSWAY) SYSMAC C Series
C200HX-CPU64, C200HX-CPU65-Z, C200HX-CPU85-Z
SYSMAC CJ CJ1M-CPU11-ETN, CJ1M-CPU12, CJ1M-CPU12-ETN, CJ1W-SCU21 (-V1), Upper link (SYSWAY) SYSMAC CJ/CS1/CP1
CJ1M-CPU13, CJ1M-CPU13-ETN, CJ1M-CPU22, CJ1W-SCU22, Series
CJ1M-CPU23, CJ1G-CPU44, CJ1G-CPU45, CJ1W-SCU41
CJ1G-CPU42H, CJ1G-CPU43H, CJ1G-CPU44H,
CJ1G-CPU45H, CJ1H-CPU64H-R, CJ1H-CPU65H,
CJ1H-CPU65H-R, CJ1H-CPU66H, CJ1H-CPU66H-R,
CJ1H-CPU67H, CJ1H-CPU67H-R, CJ2M-CPU11,
CJ2M-CPU12, CJ2M-CPU13, CJ2M-CPU14,
CJ2M-CPU15, CJ2M-CPU31, CJ2M-CPU32,
CJ2M-CPU33, CJ2M-CPU34, CJ2M-CPU35,
CJ2H-CPU64-EIP, CJ2H-CPU65-EIP, CJ2H-CPU66-EIP,
CJ2H-CPU67-EIP, CJ2H-CPU68-EIP
SYSMAC CS1 CS1G-CPU42 (H), CS1G-CPU43 (H), CS1G-CPU44 (H), CS1W-SCU21 (-V1) Upper link (SYSWAY) SYSMAC CJ/CS1/CP1
CS1G-CPU45 (H), CS1H-CPU63 (H), CS1H-CPU64 (H), Series
CS1H-CPU65 (H), CS1H-CPU66 (H), CS1H-CPU67 (H)
SYSMAC CP1 CP1H-Y20DT-D, CP1H-XA40D*-*, CP1H-X40D*-*, CP1W-CIF01 Upper link (SYSWAY) SYSMAC CJ/CS1/CP1
CP1L-M60D*-*, CP1L-M40D*-*, CP1L-M30D*-*, Series
CP1L-L20D*-*, CP1L-L14D*-*, CP1E-NA20D*-*,
CP1E-N60D*-*, CP1E-N40D*-*, CP1E-N30D*-*
* The CQM1H-SCB41 link unit cannot be used.
Series name PLC Controller Link unit PLC operation mode PLC type
MP2000 MP2200, MP2300, 217IF-01, 218IF-01 MEMOBUS YASKAWA MP Series
MP2310, MP2300S 218IF-02
MP900 MP920*, MP930* 217IF** MEMOBUS YASKAWA MP Series
* Also compatible with the built-in RS-232C interface on the system.
** Cannot be connected to MP930.
Keyence Corporation
Omron Corporation
1. Wiring overview
The PLC is wired to the controller in the following way.
PLC Controller
PLC
(CPU internal port RS-232C
or or
Link unit) Ethernet
Control/data output via the PLC-Link
Terminal block
I/O unit
(PLC)
• When the controller is not receiving commands from the PLC or when it is polling, the PLC does not need to be connected to
Reference
the terminal block (PLC).
• Since the controller complies with the modem definition, when connecting the controller to a device that complies with the
terminal definition via RS-232C, connect the SD signal of the controller to the SD signal of the device and the RD signal of the
controller to the RD signal of the device.
2. Wiring for the PLC-Link and setting the link unit (RS-232C)
5.RD 1.SD
3.SD 2.RD
1.CS 5.ER
6.RS 6.DR
3.RS
4.CS
4.SG 7.SG
5.RD 3.SD
3.SD 2.RD
1.CS 4.ER
6.RS 6.DR
7.RS
2.NC 8.CS
4.SG 5.SG
1.CD
9.RI
Reference When connecting to a SYSMAC C, adapt the wiring described here to the pins on the actual connectors used for the connection.
• Use OP-84384 (D-sub 9-pin male connector) and OP-26487 (2.5 m straight cable) for the SYSMAC (9-pin).
• Set the link unit operation mode to "upper link (SYSWAY)".
• Set the 1:1 or 1:N process to "1:N process".
• Set the unit number to "No. 0".
• Set the CS control to "None".
• When enabling settings using CX-Programmer 6.0 or later, make sure to set the [Optional settings on/off] item to [On].
When set to "Off", changes to other settings will not be enabled.
Point • If OP-26486 and OP-26487 are used as is to connect to a SYSMAC (9-pin), it may cause damage to the controller or the
connected device. Do not use this connector.
• In the CV-X400/X300/X100 Series, the controller's signal GND and power GND are insulated.
• In the CV-X200 Series, the controller's signal GND and power GND are common. Take care to avoid voltage discrepancies
between this unit and the destination signal GND as it may cause damage to the controller or the connected device.
• When connected to the A Series, "RS-232C CD terminal unchecked" must be defined in the ladder. Refer to the manual for the
Reference
Mitsubishi Electric computing link unit for more details.
• It is necessary to convert to a D-sub 9 pin male connector when using the OP-26486 (D-sub 9 pin female connector)
with the MELSEC AnN, Q/L/iQ-R Series. Use a commercially available gender converter (D-sub 9 pin female to D-sub 9
pin male, straight connection).
• When using the Q Series link unit QJ71C24 (N) -R2 with the settings "Baud rate 115200 bit/s, data length 8 bits, stop bit 1, even
parity", the switch setting in the PC parameters will be "0BEE (hexadecimal)".
Point • In the CV-X400/X300/X100 Series, the controller's signal GND and power GND are insulated.
• In the CV-X200 Series, the controller's signal GND and power GND are common. Take care to avoid voltage discrepancies
between this unit and the destination signal GND as it may cause damage to the controller or the connected device.
5.RD 3.SD
3.SD 2.RD
1.CS 4.ER
6.RS 6.DR
7.RS
2.NC 8.CS
4.SG 5.SG
1.CD
Control/data output via the PLC-Link
9.RI
Point • To connect to the MELSEC FX5 Series, refer to "Connecting to a MELSEC AnN, Q/L/iQ-R/iQ-F Series PLC".
• In the CV-X400/X300/X100 Series, the controller's signal GND and power GND are insulated.
• In the CV-X200 Series, the controller's signal GND and power GND are common. Take care to avoid voltage discrepancies
between this unit and the destination signal GND as it may cause damage to the controller or the connected device.
5.RD 2.SD
3.SD 3.RD
1.CS 4.RS
6.RS 5.CS
4.SG 7.SG
6.SR
9.TR
1.FG
Point • If OP-26486 and OP-26487 are connected as they are, it may result in damage to the controller and the connected device. Do
not use this connector.
• In the CV-X400/X300/X100 Series, the controller's signal GND and power GND are insulated.
• In the CV-X200 Series, the controller's signal GND and power GND are common. Take care to avoid voltage discrepancies
between this unit and the destination signal GND as it may cause damage to the controller or the connected device.
c c
The measured data is written to the DM The measured data is written to the Result
continued from the Result Output Address. Output Address.
d d
When the data writing for 1 measurement is Check the completion of measured data writing
completed, write 1 to the DM at the Result Ack for 1 measurement by confirming that the value
Address (bit). in the Result Ack Address (bit) is changed (set)
to 1 and then reference the data of the Result
Output Address.
e
e
Detect that the DM value of the Result Ack
Address (bit) is changed (set) to 1 and check Write 1 to the Result Ack Address (bit).
the completion of the data reading.*1
f f
Write 0 to the DM of the Result Ready Address Confirm that the value in the Result Ready
(bit). Address (bit) is changed (set) to 0.
a
Write 0 to the Result Ack Address (bit).
• For processing with the [Acknowledge result output completion] and [Enable Handshake] options enabled, all result data can be
retrieved on the PLC side. If not all result data is necessary and you only need to retrieve the latest result data on the PLC side, the
following settings can reduce the time required to output the results.
If you disable [Enable Handshake], you can restrict Result Ack Address (bit) value confirmation in Steps 2 and 5 (in this case, the
controller outputs the result data regardless of whether data has been completely read or not on the PLC side). Moreover, if you disable
[Acknowledge result output completion], you can restrict writing to Result Ready Address (bit) in Steps 4 and 6 (in this case, you cannot
determine on the PLC side whether the result data has been updated).
Timing Chart
b
Result Ack Address (bit) The PLC writes.
ac d e f a
For detailed settings, see the steps starting from the next page.
Using the PLC-Link via RS-232C 6 Specify the starting address of the data memory to
(Measurement Data Output) which the controller outputs data for the PLC unit
in the [Result Output Address] field as required.
Change the settings on the controller to output data via the
As all measurement data on the controller is output in
PLC-Link.
32 bits, a word device for 1 data is 2 words.
When the controller is changed to run mode, the
Reference The controller can write data to the PLC within
warning message "Failed to establish a link with the Reference
the following data memory ranges.
PLC." could be repeatedly displayed. In this case,
• KV-L20 Series: 00000 to 65535
the PLC-Link settings or connection of an active
• MELSEC AnA Series: 0000 to 8191
PLC may be incorrect.
• MELSEC Q/L/iQ-R/iQ-F Series: 00000 to 32767
• MELSEC FX Series: 0000 to 7999
• SYSMAC C Series: 0000 to 9999
1 From [Global], select [Communications & I/O] - • SYSMAC CJ/CS1/CP1 Series: 00000 to
[PLC-Link] in setup mode. 32767
The [PLC-Link] screen appears. • YASKAWA MP Series: 0000 to 4095
Control/data output via the PLC-Link
Using the PLC-Link via Ethernet 6 Specify the starting address of the data memory to
(Measurement Data Output) which the controller outputs data for the PLC unit
in the [Result Output Address] field as required.
Change the settings on the controller to output data via the
As all measurement data on the controller is output in
PLC-Link.
32 bits, a word device for 1 data is 2 words.
When the controller is changed to run mode, the
Reference The controller can write data to the PLC within
warning message "Failed to establish a link with the Reference
the following data memory ranges.
PLC." could be repeatedly displayed. In this case,
• KV Series: 00000 to 65535
the PLC-Link settings or connection of an active
• MELSEC Q/L/iQ-R/iQ-F Series: 00000 to 32767
PLC may be incorrect.
• SYSMAC CJ/CS1/CP1 Series: 00000 to 32767
• YASKAWA MP Series: 0000 to 4095
If the data is written outside the specified data
1 From [Global], select [Communications & I/O] - memory range, an error message appears,
[PLC-Link] in setup mode. indicating communication is interrupted.
The [PLC-Link] screen appears. Additionally, the data memory range actually
Shorting/opening the PLC terminals directly allows commands to be read and executed as with command execute address
(bit).Wiring to the PLC terminals is required.(Page 6-46)
a
Write the command No. and parameters to the
command address.
b
At the timing that the PLC terminal is set, the b
controller reads the command No. and Turn the terminal input [PLC] of the controller ON.
parameters from the DM of the command
address and executes the command.
c
d
When the command execution is completed, the
response data of the command execution is The response data is written to the Command
written to the DM continued from the Command Result Address.
Result Address.
e
e
Check the completion of command execution by
Write the response data of command execution confirming that the value in the Command
and write 1 to the DM value at the Command Complete Address (bit) is changed (set) to 1,
Complete Address (bit). and then check the response data.
f
g Set the PLC terminal of the controller.
Detect that the PLC terminal is set and reset the g
value of the Command Complete Address (bit)
to 0. Confirm that the Command Complete Address
(bit) is changed (set) to 0 and move to the next
command operation.
• The returned data varies depending on the commands. For more details, see "Details of communication control commands" (Page 6-5)
and confirm the received data of each command
Timing Chart
.
햴 햶
Command Result Address The controller writes.
햲 햵
For detailed settings, see the steps starting from the next page.
Using the PLC-Link via RS-232C 6 Select [PLC Terminal] in [Command Execute
(PLC Terminal) Event].
Change the settings to control the system via the PLC-Link 7 In the [Command Complete Address (bit)], specify
(PLC terminal). the data memory address used by the system to
The number-specified commands can be used for notify of the completion of command execution.
controlling the system. See "Details of communication Check the written results when the command
control commands" (Page 6-5) for more details on number- complete address (bit) changes to 1.
specified commands.
8 In the [Command Address], specify the starting
When the controller is changed to run mode, the address of the data memory in which instruction
Reference
warning message "Failed to establish a link with the
(command) codes and parameters for the
PLC." could be repeatedly displayed. In this case,
the PLC-Link settings or connection of an active
controller are stored.
PLC may be incorrect. • Only a starting address can be specified. Multiple
addresses cannot be specified at a time.
3 In [PLC Type], select the PLC type for the 9 In the [Command Result Address], specify the
connected PLC model. starting address of the data memory which stores
When the PLC type is selected, the relevant setting the data string returned to the PLC as a result of
items are displayed. the command execution.
Refer to "Types of compatible PLC-Link connections" • Only a starting address can be specified. Multiple
(Page 6-43) for more details on the [PLC Type] to be addresses cannot be specified at a time.
selected for the connected PLC model. • Using the number-specified commands (Page 6-5)
format, the command response is stored in the
4 Change the settings as required. starting address in 16bit-binary and the command
Baud rate data is stored successively from the starting
Select 9600 (Default), 19200, 38400, 57600, 115200 or address +2 in 32bit-binary for 1 data item.
230400 (CV-X400/X300/X200 Series only) (bps) for the 10After completing the setting, left-click [OK].
baud rate.
11 Restart the controller.
Stop Bit
Select [1] (default) or [2] for the stop bit.
Parity Bit
Select [Even] (default), [Odd], or [None] for the parity
bit.
Using the PLC-Link via Ethernet 6 Select [PLC Terminal] in [Command Execute
(PLC Terminal) Event].
Change the settings to control the system via the PLC-Link 7 In the [Command Complete Address (bit)], specify
(PLC terminal). the data memory address used by the system to
The number-specified commands can be used for notify of the completion of command execution.
controlling the system. See "Details of communication Check the written results when the command
control commands" (Page 6-5) for more details on number- complete address (bit) changes to 1.
specified commands.
8 In the [Command Address], specify the starting
When the controller is changed to run mode, the address of the data memory in which instruction
Reference
warning message "Failed to establish a link with the
(command) codes and parameters for the
PLC." could be repeatedly displayed. In this case,
the PLC-Link settings or connection of an active
controller are stored.
PLC may be incorrect. • Only a starting address can be specified. Multiple
addresses cannot be specified at a time.
Control/data output via the PLC-Link
3 In [PLC Type], select the PLC type for the 9 In the [Command Result Address], specify the
connected PLC model. starting address of the data memory which stores
When the PLC type is selected, the relevant setting the data string returned to the PLC as a result of
items are displayed. the command execution.
Refer to "Types of compatible PLC-Link connections" • Only a starting address can be specified. Multiple
(Page 6-43) for more details on the [PLC Type] to be addresses cannot be specified at a time.
selected for the connected PLC model. • Using the number-specified commands (Page 6-5)
format, the command response is stored in the
4 Change the settings as required. starting address in 16bit-binary and the command
IP Address data is stored successively from the starting
Enter the IP address for the unit that the controller is address +2 in 32bit-binary for 1 data item.
communicating with. 10After completing the setting, left-click [OK].
A confirmation message will appear if any setting is
Port
changed.
Enter the port number to be used for the PLC-Link.
Set the controller to perform constant monitoring (polling) on the bit changes in the command execute address (bit) to read
and execute a command.
c
d
When the command execution is completed, the
The response data is written to the Command
response data of the command execution is written to
Result Address.
the DM continued from the Command Result Address.
e
e
Check the completion of command execution by
Write the response data of command execution and write confirming that the value in the Command Complete
1 to the DM value at the Command Complete Address (bit). Address (bit) is changed (set) to 1, and then check the
response data of the Command Result Address.
f
g
Reset the value in the Command Execute Address (bit) to 0.
Detect that the value of the Command Execute
g
Address (bit) is changed (set) to 0 and reset the value
of the Command Complete Address (bit) to 0. Confirm that the Command Complete Address
(bit) is changed (set) to 0 and move to the next
command operation.
• The returned data varies depending on the commands. For more details, see "Details of communication control commands" (Page 6-5)
and confirm the received data of each command.
Timing Chart
c e
Command Result Address The controller writes.
a d
For detailed settings, see the steps starting from the next page.
CV-X UM_A 6-57
Controlling the system via PLC-Link (Polling)
Using the PLC-Link via RS-232C 6 Select [Polling] in [Command Execute Event].
(Polling)
7 In the [Command Execute Address (bit)], specify
Change the settings to control the system via the PLC-Link the data memory address which indicates the
(Polling). command execution timing.
The number-specified commands can be used for For control via polling, reading data from the system
controlling the system. See "Details of communication will start when this bit device changes to 1.
control commands" (Page 6-5) for more details on number-
specified commands.
8 In the [Command Complete Address (bit)], specify
the data memory address used by the system to
When the controller is changed to run mode, the notify of the completion of command execution.
Reference
warning message "Failed to establish a link with the
Check the written results when the command
PLC." could be repeatedly displayed. In this case,
the PLC-Link settings or connection of an active
complete address (bit) changes to 1.
PLC may be incorrect.
9 In the [Command Address], specify the starting
Control/data output via the PLC-Link
Parity Bit
11 After completing the setting, left-click [OK].
Select [Even] (default), [Odd], or [None] for the parity 12Restart the controller.
bit.
Troubleshooting
The message "Initializing PLC-Link Try No. *" PLC-Link is established, however, data cannot be
appears repeatedly at the bottom right of the written to the connected PLC.
screen. There is a limit to the range of data memory that can be
The system failed to establish PLC-Link communication written to. Check the range that can be written to at the
with the PLC, and the initialization process is occurring in connected PLC.
order to reconnect.
Control/data output via the PLC-Link
• When connected by RS-232C: Check the PLC-Link Monitoring of the communications status is being
communication settings, connection cable, and status at performed with the RS-232C monitor, however,
the device the cable is connected to. the text is garbled.
• When connected by Ethernet: Check the PLC-Link
The RS-232C monitor does not support monitoring of the
communication settings, IP address, connection cable
communications used in PLC-Link communications.
(cross cable if connected directly), and status at the
device the cable is connected to.
Error Message
by EtherCAT Reference
It is also possible to use the encoder input when
using the LJ-V Series head with the CV-X482 or
CV-X480LJ. For more details, refer to "LJ-V Input
Unit (CA-E100LJ/E110LJ: Option)" (Page 6-88).
Output
Results output
• Judgment output: Outputs upper/lower limit judgment
results on the processed images.
Control
• FLASH output: Outputs signals for Strobe control in
synchronization with triggers.
• Control output: Outputs signals for system errors or
synchronization with external devices.
Reference The output signals STO, OR, and OUT_DATA0 to 15 are output only in run mode.
When using ERROR, RUN, and FLASH1 to 4, always apply DC24V ±10% between COMOUT_F+ and COMOUT_F-.
Reference
(MSB)
CMD_CODE0 Command input bit 0 (LSB) Used to input command codes from the parallel I/O interface in binary. (Page 6-98)
CMD_CODE1 Command input bit 1
CMD_CODE2 Command input bit 2
CMD_CODE3 Command input bit 3 (MSB)
CST Command confirmation input Executes commands and parameters from the parallel I/O interface. (leading edge
synchronization)
• When an acceptance check of CST is performed, check that CMD_READY has fallen
after the CST input.
• When confirmation of command execution completion is performed, check that ACK
(success) or NACK(failure) has risen after the CST input.
RESET Reset Used to reset operation.
• OR output and OUT_DATA 0 to 15 are set to the normal state.
• The measurement count returns to 0.
• All of archived image data are deleted.
• All of the data in the output buffer are reset.
• A new measurement result output destination file is created. A new image output
destination folder is created.
• The trigger waiting state of individual triggers is canceled.
PST Output data switch input Used to issue an instruction to switch data for the case of terminal data output with
handshake.
As long as there is no PST input handshake control, output after the first STO rise stops.
See "Terminal data output timing (Handshake: ON)" (Page 6-128) for more details.
COMOUT2 Connector output common Common output terminal for the parallel I/O interface. This is internally common with the
terminal No. 40 COMOUT2.
ACK Execution success confirmation The signal is output when the commands from the parallel I/O interface successfully finish.
output for command inputs
NACK Execution failure confirmation The signal is output when the commands from the parallel I/O interface unsuccessfully
output for command inputs finish.
BUSY BUSY signal output This signal is output during image processing or command processing.
While BUSY is on, some delays may occur with start of the execution for the next image/
command processing.
EXPOSURE_BUSY Camera exposure in progress This signal is output when exposure is in progress at any of the connected cameras.
signal output
CMD_READY Permission output for The signal is output when execution of commands from the parallel I/O interface is
command input acceptable.
When CST is input with CMD_READY turned off, CST is ignored.
READY1 Trigger 1 input permission output Turns on when trigger 1 input is acceptable.
READY2 Trigger 2 input permission output Turns on when trigger 2 input is acceptable.
READY3 Trigger 3 input permission output Turns on when trigger 3 input is acceptable.
READY4 Trigger 4 input permission output Turns on when trigger 4 input is acceptable.
Use the dedicated parallel connection cable (3 m) OP-51657 (sold separately) to wire devices to the connector.
Reference
Standard Specifications
Terminal block specifications for the controller are as follows.
Point Tightening above the specified torque may cause damage to the terminal block.
Pin Layout
OUTPUT connector
• Power source 0V, COMOUT1, COMOUT_F+, and COMOUT_F- are all isolated.
Reference
• COMOUT1 is a common terminal exclusively used for terminal outputs 1 and 2.
• COMOUT_F+ and COMOUT_F- are the common terminals exclusively used for terminal outputs 3 to 4 and 6 to 7.
INPUT connector
Standard Specifications
Terminal block specifications for the controller are as follows.
Point Tightening above the specified torque may cause damage to the terminal block.
Pin Layout
OUTPUT connector
• Power source 0V, COMOUT1, COMOUT_F+, and COMOUT_F- are all isolated.
Reference
• COMOUT1 is a common terminal exclusively used for terminal outputs 1 and 2.
• COMOUT_F+ and COMOUT_F- are the common terminals exclusively used for terminal outputs 3 to 4 and 6 to 7.
INPUT connector
NOTICE Tightening above the specified torque may cause damage to the terminal block.
4
3
LIGHT 2
• Compatible wires: POWER
4
3
LIGHT 2
2 2
AWG14 to 22 1
AWG14 to 22 1
4 4 LIGHT 1
LIGHT 1
• Terminal block 3
2
1
• Terminal block 3
2
1
Nm or less Nm or less
IN 햶 IN
햲
Control/data output via I/O terminals
Connector Specifications
• OUT Connector Terminal Block
No. Signal Signal Description Description
(terminal block display)
1 LIGHT2+ (L2+) + ve terminal for Light 2 Connect the + ve side of light 2.
2 LIGHT2- (L2-) - ve terminal for Light 2 Connect the - ve side of light 2.
3 NC (NC) Not used Not used
4 LIGHT1+ (L1+) + ve terminal for Light 1 Connect the + ve side of light 1.
5 LIGHT1- (L1-) - ve terminal for Light 1 Connect the - ve side of light 1.
• Connecting a 12 V DC illumination unit to an output terminal at 24 V DC may cause fire, electric shock, or damage
to the controller and user operating the unit.
CAUTION
• Ensure that the DIP switch located on the right side of the CA-DC21E is configured correctly for the illumination
being connected.
1 2 3 4 5 6 7 8
OFF OFF OFF OFF — — — — Light 1: 12 V
ON ON ON OFF — — — — Light 1: 24 V
— — — — OFF OFF OFF OFF Light 2: 12 V
ON
— — — — ON ON ON OFF Light 2: 24 V
Setting the output voltage incorrectly may cause fire, electric shock, or product malfunction. When
CAUTION
connecting the KEYENCE illumination unit, use the factory setting of 12V.
NOTICE Tightening above the specified torque may cause damage to the terminal block.
INPUT connector
• Compatible wires: AWG14 to 22
• Terminal block screw torque: 0.25 Nm or less
Connector Specifications
• IN Connector Terminal Block
No. Signal Signal Description Description
(terminal block display)
1 24VDC (24V) + ve power supply input (24 V DC) Supplies a 24 V power source for the illumination
expansion unit.
2 NC Not used Not used.
3 0 V (0 V) - power supply (0 V) input Supplies a 0 V power source for the illumination
expansion unit.
The power source 0V and the controller power source 0V are insulated respectively.
Power connector
• Compatible wires: AWG14 to 22 POWER
LIGHT 2
IN
햲
햴
Connector Specifications
• Power Connector Terminal Block
Control/data output via I/O terminals
Circuit A (For F_IN0 to 3 only, EV compatible) When connecting an NPN PLC output to the system input
R1
OUT IN
IN
R2
com
COM(-) COMIN*
4.7 kΩ
com
The overcurrent protective Poly Switch is set to trip at 1 A. For the power supplied to output, use a 1 A or larger power
NOTICE
source.
Output circuit diagram (NPN output type) Output circuit diagram (PNP output type, controllers
with a "P" at the end of the part number)
COMOUT_F+ COMOUT_F+
OUT
Poly Switch
Control/data output via I/O terminals
OUT
Poly Switch
COMOUT_F- COMOUT_F-
OUT COM
Poly Switch
COM OUT
Poly Switch
When connecting an NPN output from the controller to a PLC with a positive common
IN OUT
Poly Switch
COM(+) COM
OUT
COM
When connecting the F_OUT output (NPN) from the controller to the no-voltage input terminal for the CA-DC100
LED light controller
COMOUT_F+
5V
EXT OUT
Poly
Switch
0V COM COMOUT_F-
When connecting the F_OUT output (NPN) from the controller to a PLC with a positive common
IN COMOUT_F+
OUT
Poly
Switch
COM(+) COMOUT_F-
• The common output terminal for the terminal block1 is the COMOUT1 terminal.
Point
• The common output terminal for the I/O connector is the COMOUT2 terminal of the parallel I/O interface.
Example of connections (PNP output type, controllers with a "P" at the end of the part number)
When connecting a PNP output from the controller to a PLC with a negative common
COM(-) COM
IN OUT
Poly Switch
PLC input circuit negative common Output circuit on controller
COM
Control/data output via I/O terminals
Load
OUT
Poly Switch
Relay Output circuit on controller
When connecting the F_OUT output (PNP) from the controller to the no-voltage input terminal for the CA-DC100
LED light controller
COMOUT_F+
5V
10kΩ
100Ω EXT1
EXT2 1kΩ OUT
(1W) Poly
Switch
0V COM COMOUT_F-
When connecting the F_OUT output (PNP) from the controller to a PLC with a negative common
COM(-) COMOUT_F+
OUT
Poly
Switch
IN
COMOUT_F-
• The common output terminal for the terminal block1 is the COMOUT1 terminal.
Point
• The common output terminal for the I/O connector is the COMOUT2 terminal of the parallel I/O interface.
Reference The output signals STO, OR, and OUT_DATA0 to 15 are output only in run mode.
(MSB)
CMD_CODE0 Command input bit 0 (LSB) Used to input command codes from the parallel I/O interface in binary. (Page 6-98)
CMD_CODE1 Command input bit 1
CMD_CODE2 Command input bit 2
CMD_CODE3 Command input bit 3 (MSB)
CST Command confirmation input Executes commands and parameters from the parallel I/O interface. (leading edge
synchronization)
• When an acceptance check of CST is performed, check that CMD_READY has fallen
after the CST input.
• When confirmation of command execution completion is performed, check that ACK
(success) or NACK(failure) has risen after the CST input.
RESET Reset Used to reset operation.
• OR output and OUT_DATA 0 to 15 are set to the normal state.
• The measurement count returns to 0.
• All of archived image data are deleted.
• All of the data in the output buffer are reset.
• A new measurement result output destination file is created. A new image output
destination folder is created.
• The trigger waiting state of individual triggers is canceled.
PST Output data switch input Used to issue an instruction to switch data for the case of terminal data output with
handshake.
As long as there is no PST input handshake control, output after the first STO rise stops.
See "Terminal data output timing (Handshake: ON)" (Page 6-128) for more details.
COMOUT2 Connector output common Common output terminal for the parallel I/O interface. This is internally common with the
terminal No. 40 COMOUT2.
ACK Execution success confirmation The signal is output when the commands from the parallel I/O interface successfully finish.
output for command inputs
NACK Execution failure confirmation The signal is output when the commands from the parallel I/O interface unsuccessfully
output for command inputs finish.
BUSY BUSY signal output This signal is output during image processing or command processing.
While BUSY is on, some delays may occur with start of the execution for the next image/
command processing.
EXPOSURE_BUSY Camera exposure in progress This signal is output when exposure is in progress at any of the connected cameras.
signal output
CMD_READY Permission output for The signal is output when execution of commands from the parallel I/O interface is
command input acceptable.
When CST is input with CMD_READY turned off, CST is ignored.
READY1 Trigger 1 input permission output Turns on when trigger 1 input is acceptable.
READY2 Trigger 2 input permission output Turns on when trigger 2 input is acceptable.
READY3 Trigger 3 input permission output Turns on when trigger 3 input is acceptable.
READY4 Trigger 4 input permission output Turns on when trigger 4 input is acceptable.
Use the dedicated parallel connection cable (3 m) OP-51657 (sold separately) to wire devices to the connector.
Reference
Standard Specifications
Terminal block specifications for the controller are as follows.
Point Tightening above the specified torque may cause damage to the terminal block.
햲
Control/data output via I/O terminals
Pin Layout
OUTPUT connector
INPUT connector
Point Tightening above the specified torque may cause damage to the terminal block.
L2+ (1)
L2-
COM
IN
(1)
L1+ LOFF
2
(4)
L1- LOFF
1
24V
DC
0V
FG
(6)
Connector Specifications
• OUT Connector Terminal Block
No. Signal (terminal block display) Signal Description Description
1 LIGHT2+(L2+) + ve terminal for Light 2 Connect the + ve side of light 2.
2 LIGHT2-(L2-) - ve terminal for Light 2 Connect the - ve side of light 2.
3 LIGHT1+(L1+) + ve terminal for Light 1 Connect the + ve side of light 1.
4 LIGHT1-(L1-) - ve terminal for Light 1 Connect the - ve side of light 1.
If a 12 V illumination unit is connected to a terminal block for which the voltage has been set to 24 V, this may cause a
CAUTION fire, electric shock, or product malfunction. Normally, use the standard voltage for Keyence illumination units, 12 V,
which is also the default setting.
If the voltage has been set to 24 V, nothing will be output from the Light 1 Output Connector or the Light 2 Output
Point
Connector.
Point The 0 V power supply, COMIN, controller, and other expansion unit commons are all insulated.
24V (1)
0V
FG
(3)
Point The 0 V power supply, controller, and other expansion unit commons are all insulated.
Connector Specifications
• Power supply Connector Terminal Block
Point The 0 V power supply, controller, and other expansion unit commons are all insulated.
Point Tightening with a force above the standard torque may cause damage to the terminal block.
24V (1)
12V
5V
(+)
COM
(-)
24V
12V
5V
(+)
COM
(-)
24V
5V
OUT (1)
0V
12V OUT
Control/data output via I/O terminals
N.C.
5V
COM
(+)
COM
(-) (15) RMT (5)
No. Terminal name Terminal block Terminal explanation Signal Circuit diagram
display at time direction (Page 6-90)
of shipment
1 OC A 24 24V Open collector Encoder input A (24V) In D
2 OC A 12 12V Open collector Encoder input A (12V) In D
3 OC A 5 5V Open collector Encoder input A (5V) In D
4 422 A+ + RS-422 Encoder input A+ In D
5 ENC A COM COM(-) Encoder input A common (-) - -
6 OC B 24 24V Open collector Encoder input B (24V) In D
7 OC B 12 12V Open collector Encoder input B (12V) In D
8 OC B 5 5V Open collector Encoder input B (5V) In D
9 422 B+ + RS-422 Encoder input B+ In D
10 ENC B COM COM(-) Encoder input B common (-) - -
11 OC Z 24 24V Open collector Encoder input Z (24V) In D
12 OC Z 12 12V Open collector Encoder input Z (12V) In D
13 OC Z 5 5V Open collector Encoder input Z (5V) In D
14 422 Z+ + RS-422 Encoder input Z+ In D
15 ENC Z COM COM(-) Encoder input Z common (-) - -
• Use a shield cable that supports an RS-422 signal for the connection, and always connect the Cable shield to the FG.
Point
• There is continuity between each input circuit. Pay attention so that potential differences are not generated between
the signals.
• The ENC A COM, ENC B COM, ENC Z COM, 0V OUT and REMOTE COM are respectively insulated from the controller
and the other expansion unit commons.
No. Terminal name Terminal block Terminal explanation Signal Circuit diagram
display at time direction (Page 6-90)
of shipment
1 5V OUT 5V OUT Encoder service power supply - -
2 0V OUT 0V OUT (150mA MAX) - -
3 N.C - - - -
4 RMT COM COM Laser remote interlock input common - -
5 REMOTE RMT Laser remote interlock input In E
• The rated output for the 5 V OUT is 150 mA. When using encoders which are going to exceed that, prepare an external
Point
5 V power supply.
• The laser remote interlock inputs are non-voltage inputs. The laser beams are emitted from the LJ-V Series head which
are connected to CA-E100LJ/E110LJ via short-circuits with the input commons, and if the aperture is open the trigger
receiving is also cancelled in conjunction with all of the LJ-V Series head emissions being terminated. (factory default
Circuit A (For F_IN0 to 3 only, EV compatible) When connecting an NPN PLC output to the system input
7.5 kΩ
IN OUT IN
910 Ω
COMIN *
COM(-) COMIN*
2.7 kΩ OUT
COMIN*
PLC (PNP output)
Since this instrument utilizes a photo MOSFET in the output elements, any one of the NPN inputs, or PNP inputs is
Point
connectable.
Point If the input instrument is compatible with the NPN open collector outputs, then refer to this connection example.
When connecting the output from the controller to a PLC with a positive common
IN
Poly Switch
OUT
COMOUT*
COM(+)
Poly Switch
Load
OUT
COMOUT*
* The commons which are connected differ according to the OUT terminals. The common terminal for OUT connectors 1
Point
- 2 is COMOUT1, and the common terminal for OUT connectors 3 - 4/6 - 7 is COMOUT_F, and the common terminal for
parallel I/O connectors 18 - 39 is COMOUT2.
Example of connections: When connecting the output from the controller with a negative common
Point If the input instrument is compatible with the PNP open collector outputs, then refer to this connection example.
When connecting the output from the controller to a PLC with a negative common
IN
Poly Switch
OUT
COMOUT*
COM(-)
Poly Switch
Load
OUT
COMOUT*
* The commons which are connected differ according to the OUT terminals. The common terminal for OUT
Point
connectors 1 - 2 is COMOUT1, and the common terminal for OUT connectors 3 - 4/6 - 7 is COMOUT_F, and the
common terminal for parallel I/O connectors 18 - 39 is COMOUT2.
Internal circuit
422 + REMOTE
Poly Switch Internal
1kΩ
circuit
ENC COM
Poly Switch 150Ω RMT COM
* The diagram is for the example where 12 V was used. Connect to 5V/12V/24V in accordance with the power supply.
ENC COM
Poly Switch
Input circuit on CA-E100LJ/E110LJ
OUT
* The diagram is for the example where 12 V was used. Connect to 5V/12V/24V in accordance with the power supply.
RS-422 output OC 24
on Encoder
A phase/ Shielded
twisted pair cable OC 12
B phase/
Z phase + OC 5
422 +
Poly Switch Internal
circuit
Point Use a shielded cable that conforms with the RS-422 signal for the connection.
(1)
...
(15)
(1)
...
(5)
I/O Connector
No. Terminal name*
1 5V OUT
When connecting the NPN open collector output PLC When connecting the PNP open collector output PLC
Internal circuit
Internal circuit
OUT REMOTE COM(+) REMOTE
Reference Except for image capture and clear error, the commands can be input only when the controller is operating in run mode.
a
CST D A
C b
BUSY C
c
ACK (execution successful) B
c
NACK (execution failed) B d
e
CMD_READY
C C
f (Always ON)
READY1
A: 1 msec or more B: Same as the STO output time C: Within 1 msec D: 500 µsec or more
TRG1
READY1
TRG1
Command
execution
waiting time
• When a command request is received during processing, the command is executed as soon as image processing is
completed.
• READY signal does not turn on until the command execution is completed. Therefore, a next trigger input is not accepted until
READY signal turns on.
CST
Command
ACK Execute Time
The command is executed immediately and READY signal turns off during the command execution.
• Except for image capture and clear error, the I/O commands can be input only when the controller is operating in run mode.
Reference
• To confirm a command, input the command to CMD_PARAM0 to 7, CMD_CODE0 to 3 and then turn the CST input on
(recognition of the leading edge).
• ACK output and NACK output ON time is of the same duration as STO output time.
• As the commands based on real-time execution are executed along with the measurement process, execution of that kind of
command does not affect the image processing. However, command execution time for this case will take longer than when
the command alone is solely executed.
Parameter
CMD_PARAM0: Type of file for writing data (0: measured
value 1: statistical data)
Parameter
• CMD_PARAM7 to 6: Camera No.(0: CAM1, 1: CAM2, 2:
CAM3, 3: CAM4)
• CMD_PARAM4: 0 (fixed)
• CMD_PARAM3 to 0: Shutter speed (0:1/15, 1:1/30, 2:1/
60, 3:1/120, 4:1/240, 5:1/500, 6:1/1000, 7:1/2000, 8:1/
5000, 9:1/10000, 10:1/20000)
• When multiple image capture is used, it is necessary to
specify the capture number using [1. Specify parameter
in upper 8 bits].
Example of changing to the program 15 on the SD card 1 using the I/O commands.
CMD_CODE(3-0)
command type
CMD_PARAM(7-0)
command parameter
CST
CMD_READY
ACK(NACK)
/Enter the command codes of the change program (SD card 1) command in CMD_CODE0 to 3.
CMD_CODE3: 0 (OFF)
CMD_CODE2: 0 (OFF)
CMD_CODE1: 1 (ON)
CMD_CODE0: 0 (OFF)
0Enter the codes of program 15 to which the setting is changed in CMD_PARAM7 to 0.
CMD_PARAM7: 0 (OFF)
CMD_PARAM6: 0 (OFF)
CMD_PARAM5: 0 (OFF)
CMD_PARAM4: 0 (OFF)
CMD_PARAM3: 1 (ON)
CMD_PARAM2: 1 (ON)
CMD_PARAM1: 1 (ON)
CMD_PARAM0: 1 (ON)
1Turn the input of CST on.
2CMD_READY turns off and program change starts.
3When the setting is changed to program 15, ACK turns on for a certain time, and then CMD_READY turns on after ACK
falls.
Reference ACK output and NACK output duration time is the same as the time set with STO (default: 10ms).
Output order
According to the output order, the data specified in the output settings is output from OUT_DATA0 to 15 sequentially.
The items and order for output can be specified in [OUT terminal] of [Output Settings] (Page 3-100) as required.
Examples of output details and timing are shown in the following pages.
• STO output is generated one time even when none of the output settings is specified.
Reference
• When the controller is operating in setup mode or TEST terminal (Page 6-131) is ON, the data is not output.
• If asynchronous trigger capture (Page 3-19) is enabled, the output of the judgment value and measurement result are
implemented by camera. In order to check which camera’s measurement results the output data are, change the settings so
Control/data output via I/O terminals
that they include the CAM * Execute Status in the output data.
Example of output
If measurement is performed using the settings below, the timing chart of output signals is as follows in the next page.
• Measurement conditions
- CAM1 T100: Area, T101: Area, T102: Area, T103: Area, T104: Area, T105: Area, T106: Area, T107: Area
- CAM2 T200: Blob
- CAM3 T300: Pattern search, T301: Profile defect
- CAM4 T400: Edge Position, T401: Edge Position, T402: Defect, T403: Blob
• Output setting
- First time: CAM1 Judgment, Second: Tool Judgment for T100 to T107, Third: CAM2 Judgment, Fourth: Tool Judgment
for T200, Fifth: CAM3 Judgment, Sixth: Tool Judgment for T301, Seventh: CAM4 Judgment, Eighth: Tool Judgment for
T402 and 403
For these output settings, a total of 8 times of separated outputs will be performed for 1 measurement.
If [Enable Handshake] is set to OFF, output turns on and off repeatedly 8 times at the output switch cycle time with STO. On
the output device, read OUT_DATA0 to 15 in synchronization with the leading edge of STO.
TRG
/ 0 1 2 3 4 5 6
OUT0 CAM 1 T100 CAM 2 T200 CAM 3 T301 CAM 4 T402
Judgment Judged value Judgment Judged value Judgment Judged value Judgment Judged value
OUT1 0 T101 0 0 0 0 0 T403
Judged value Judged value
OUT2 0 T102 0 0 0 0 0 0
Judged value
OUT3 0 T103 0 0 0 0 0 0
Judged value
OUT4 0 T104 0 0 0 0 0 0
Judged value
OUT5 0 T105 0 0 0 0 0 0
Judged value
OUT6 0 T106 Judged 0 0 0 0 0 0
value
OUT7 0 T107 0 0 0 0 0 0
Judged value
OUT8 0 0 0 0 0 0 0 0
OUT9 0 0 0 0 0 0 0 0
OUT10 0 0 0 0 0 0 0 0
OUT11 0 0 0 0 0 0 0 0
OUT12 0 0 0 0 0 0 0 0
OUT13 0 0 0 0 0 0 0 0
OUT14 0 0 0 0 0 0 0 0
OUT15 0 0 0 0 0 0 0 0
OUT_DATA a b c d e f g h
0 to 15
STO
A
B A: Output rise time B: Output time C: Output change time
C
• For more details on how to set items A - C above, refer to "Changing Terminal settings (External Terminal)" (Page 5-4).
• The output duration for 1 measurement via the I/O terminals is segment count x output switch cycle time.
Timing chart
1. Operations at startup
ON Power on
Power supply
A B
OFF
BUSY
Control/data output via I/O terminals
a
RUN
F C
CMD_READY D G
b
c
READY1
FLASH1 E
READY2
d
FLASH2 E
ACK
NACK
OUT_DATA
ERROR
STO
OR
/When the system enters run mode, the RUN terminal turns on.
0Command inputs will be accepted when CMD_READY turns on/off once after startup and then turns on again.
1The input of TRG1 is accepted after READY1 turns on.
2This terminal remains off unless TRG2 is enabled in the settings. When enabled, this terminal turns on in the same way as
READY1.
ON Power on
Power supply
A B
OFF
BUSY
a
RUN
E C
CMD_READY D F
b
c
READY1
FLASH1
FLASH2
ACK
NACK
OUT_DATA
ERROR
STO
OR
/When the system enters run mode, the RUN terminal turns on.
0Command inputs will be accepted when CMD_READY turns on/off once after startup and then turns on again.
1The input of TRG1 is accepted after READY1 turns on.
2This terminal remains off unless TRG2 is enabled in the settings. When enabled, this terminal turns on in the same way as
READY1.
ON Power on
Power supply
OFF
햲 A 햳
Open
N.O
All output terminals
(except for FLASH)
N.C
Close
햲 B 햳
Open
N.O
FLASH*
N.C
Close
Control/data output via I/O terminals
/The system enters normally open state immediately after startup, regardless of the settings.
0 The normally closed settings are reflected after a certain period of time.
Basic operation
ON
TRG1
A
FLASH1*1
B
햲 햴
READY1
C
/The input of TRG1 is accepted while the READY1 output is on. When a trigger is input, an image is captured and transmitted
by camera 1. The READY1 turns off during this time.
0The trigger input turns on flash lighting duration for the specified duration (can be changed with setting). See "2. Typical
operations at trigger input (FLASH Output Timing)" (Page 6-120) for more details.
1If there is space in the image buffer count buffer after image capture and transmission is complete, READY1 turns on to
accept the next trigger input even while the image processing is being performed.
*1 The assignment of the trigger terminals and FLASH terminals can be changed. The above example shows the setting which assigns TRG1
and FLASH1 to camera 1.
ON 햲
TRG1
A
OFF
FLASH1*1
B
햳 햴
READY1
C
Control/data output via I/O terminals
TRG2 햲
FLASH2*1
B
햳 햵
READY2
C
/Although TRG1 and TRG2 can be input in any order, the same trigger cannot be input consecutively. (1) To input the same
trigger consecutively, the image buffer count must be set to two or more times.
0The input of TRG1 is accepted while READY1 is on. The input of TRG2 is accepted while READY2 is on.
1When the image buffer is reserved for only one image, READY1 for camera 1 which completed image capture/transmission
does not turn on until the buffer space is available after camera 2 completes image capture/transmission.
2If there is space in the image buffer, READY2 for camera 2 which completed image capture/transmission turns on to allow
reception of the next trigger input even during image processing.
*1 The assignment of the trigger terminals and FLASH terminals can be changed. The above example shows the setting which assigns TRG1
and FLASH1 to camera 1 and TRG2 and FLASH2 to camera 2.
Basic operations (when using trigger 1 and trigger 2: trigger delay valid)
ON a
TRG1 A
OFF
Image sensor shutter B
of camera 1 b
C
FLASH1*1 c
d D d
READY1
f
EXPOSURE_BUSY E E
TRG2 A
C
FLASH3*1 c
C
FLASH4*1 c
e
D
READY2
When the image processing time is shorter than the image capture/transmission time
1st trigger 2nd trigger 3rd trigger
TRG1 a
READY1
Measurement time
When the image processing time is longer than the image capture/transmission time
1st trigger 2nd trigger 3rd trigger
TRG1
READY1
Waiting time for processing Waiting time for processing
image of 2nd trigger image of 3rd trigger
1st image capture/ 2nd image capture/ 3rd image capture/
transmission transmission transmission
1st image processing 2nd image processing 3rd image processing
Measurement time
* When the next trigger is input during image processing, the measurement time shown on the screen also includes the waiting
time for completion of image processing.
Basic operations for multiple measurements (Behavior at full buffer is "overwrite oldest image")
TRG1 a
READY1
Waiting time for processing image of 3rd trigger
*
1st image capture/ 2nd image capture/ 3rd image capture/ 4th image capture/
transmission transmission transmission transmission
1st image processing 2nd image processing (Image of 3rd trigger is used.)
* By the time the second image processing starts, the third image capture/transmission is complete and the image for the
second trigger in the buffer is overwritten and thus not used in image processing.
TRG1 햲
READY1 *
Waiting time for processing image of 2nd trigger
1st image capture/ 2nd image capture/ 3rd image capture/ 4th image capture/
transmission transmission transmission transmission
1st image processing 2nd image processing
Measurement time
* When the image buffer is enabled for two times, up to three triggers (including the one for current image processing) can be
input in the shortest amount of time.
Increasing the image buffer count within the range of the available space of image memory allows a specific number of times of
image capturing in advance during the processing of the previous image.
When the capture option is set to [None], trigger cannot be input while measurement is being executed.
1st trigger 2nd trigger
TRG1
READY1
Internal trigger
READY1
/When the internal trigger is selected, trigger signals are generated in a specified trigger cycle. Although a trigger signal
generated when READY1/2 turns on is accepted and the image capture starts, a signal generated when READY1/2 is off
is ignored. Consequently, a time lag between the signal generation and an actual image capture execution will occur
until a trigger signal is generated in the next trigger cycle.
For this reason, to shorten the processing time, it is recommended that the trigger cycle is set to 1ms to reduce the
possible time lag. In addition, to capture images in a regular cycle, it is recommended that the trigger cycle is set to a
value longer than the displayed time interval between triggers (This action prevents the internal trigger from being
generated when READY1/2 is OFF).
Internal trigger
READY1
Internal trigger
Stop of acceptance
READY1
EXT
/READY1/2 output turns off while EXT terminal is ON. Therefore, internal triggers are not accepted, and thus, the image
capture is not performed.
By inputting the trigger signal having the same number as the camera number (TRG1 for CAM 1), the capture +
measurement processing of only the arbitrary 1 camera is executed and processed as 1 measurement.
c d
b
1st image capture/ 2nd image capture/ 3rd image capture/ 4th image capture/
Camera 1 transmission transmission transmission transmission
Control/data output via I/O terminals
a a a a
TRG1
READY1
a a
TRG2
READY2
/When TRG1 is input, capture is performed with CAM 1 and the captured image is saved in the image buffer of CAM 1.
When TRG2 is input, capture is performed with CAM 2 and the captured image is saved in the image buffer of CAM 2.
There is no restriction on the input timing or order of TRG1 and TRG2, so they are accepted independently of each other.
In addition, TRG1 and TRG2 can be accepted even during measurement.
0As the first measurement, measurement is performed for the first image of CAM 1 saved in the image buffer.
1As the second measurement, measurement is performed for the second image of CAM 1 saved following the first image
in the image buffer.
2As the third measurement, measurement is performed for the first image of CAM 2 saved following the second image in
the image buffer.
• If the capture type is asynchronous trigger, assignments of trigger terminals cannot be changed. TRG1 is assigned to
Reference
CAM1, TRG2 to CAM2, TRG3 to CAM3, TRG4 to CAM4.
• When the result output is set, the result is output for each measurement. By including the system variable “CAM N
Execute Status” in the result output, the camera with which measurement has been performed using asynchronous
trigger can be identified.
Performs multiple image captures at the same location and processes them as a single measurement. You can also use this
capture type to capture images while varying the lighting settings or shutter speed at each capture.
a a a
TRG1
READY1
a a
TRG2
READY2
If settings are configured so that the light and camera settings change for each count, the READY signal will be delayed
Reference
to apply the settings each time. The delay time varies depending on the settings to change, the camera, and lighting.
Image Capture
Image processing
Capturing (1st) Capturing (2nd) … Capturing (n-th) LumiTrax processing
TRG1
A
Emission of light
Imaging element
shutter B B B
Control/data output via I/O terminals
C
READY1
BUSY
EXPOSURE_BUSY
Image Capture
Image processing
Capturing (1st) Capturing (2nd) ... Capturing (n-th) MultiSpectrum processing
TRG1
A
Emission of light
Imaging element B B B
shutter
BUSY
EXPOSURE_BUSY
B: Time from light emission start to capturing start: 220 to 240 μs (Internal fixed value)
Image Capture
Image processing
3D Capture Controller
Capturing (1st) Capturing (2nd) ... Capturing (n-th) processing processing
TRG1
A
READY1
Control/data output via I/O terminals
BUSY
B
EXPOSURE_BUSY
Image Capture
Outline Capture Image processing
Capturing (1st) Capturing (2nd) ... Capturing (n-th) processing
TRG1
Emission of light A
Imaging element
shutter B B B
BUSY
EXPOSURE_BUSY
• If you select [Normally Closed] in FLASH Output Mode, lighting connected to a light controller (CA-DC*E; sold separately)
Reference
turns on up to 30 μs before the FLASH signal.
• If one trigger is selected for multiple cameras with different trigger delay settings, the second rise onwards may
overlap with output as the FLASH is also output multiple times in conjunction with camera capture. If the rise signal is
necessary for every image capture with a strobe light, adjust the FLASH output time and configure it so that output
does not overlap.
ON
TRG1
OFF B
A
Control/data output via I/O terminals
Imaging element a D
shutter
C c
FLASH1 b
E E
EXPOSURE_BUSY
/After receiving the TRG1 input, the controller gives an order for a camera to operate the imaging element shutter.
0Sets the FLASH output start point as the time to start FLASH output based on the timing of ordering the imaging element
shutter operation.
1The flash output time is the length of time the FLASH output is turned on.
ON
TRG1
B
OFF
C
b
Imaging element
shutter D
a
FLASH1 A
E E
EXPOSURE_BUSY
A: 60 μs (±10 μs)*1
When trigger delay is set: (All models) Trigger delay time + 60 μs (Response fluctuation: -10 to +210 μs)
B: Shutter time
/If the FLASH output start point is negative, the FLASH1 output turns on first after receiving TRG1 input.
0After delaying for the duration of the extent of the absolute value of the FLASH1 [Flash Output to Start Capture] time, the
controller gives a command for a camera to operate the imaging element shutter.
*1 When one FLASH terminal is assigned to TRG1
Setting + example
• TRG1 is assigned to CAM1.
• FLASH1 output timing "Flash Output to Start Capture" 200 μs
• FLASH2 output timing "Flash Output to Start Capture" 100 μs
• FLASH3 output timing "Start Capture to Flash Output" 150 μs
• FLASH4 output timing "Start Capture to Flash Output" 250 μs
ON
TRG1
OFF
*1 FLASH1 output time
a
Control/data output via I/O terminals
FLASH1
200 μs
FLASH2 output time
b
FLASH2
100 μs
Shutter time
Imaging element c
shutter of camera 1
FLASH3 d
FLASH4 e
*2
/After TRG1 input is received, the FLASH output timing is set to "Flash Output to Start Capture" and the FLASH1 output which
has the longest duration set is turned on.
0FLASH2 output turns on.
1After a delay for the duration of "Flash Output to Start Capture" for FLASH1 initially turned on, the controller gives an order to
operate the image sensor shutter of camera 1.
2FLASH output timing is set to "Start Capture to Flash Output" based on the timing of ordering for the image sensor shutter
operation. FLASH3, which has the shortest duration set, is turned on.
3Based on the timing of ordering for the image sensor shutter operation, FLASH4 with the FLASH output timing setting of "Start
Capture to Flash Output" is turned on.
*2 When using the CV-X200/X100 series, to assign several FLASH terminals to a single camera, you must set the on-delay values so that all
FLASH lightings start within the range of 500 μs or less.
2. Typical operations at trigger input (Current Images when Run Screen Update Mode
is Live Image)
FLASH1 햳
TRG1 햴
Image processing
with 3rd image
A
A: Measurement time
To make the updating method of the screen during run mode continuous, check the [Live Image in Run Mode] box via [Run
Reference
Screen Update Mode] in [Global] (Page 5-23). To specify the updating method for the screen in setup mode, choose [Live] on
the VIEW Toolbar.
Camera settings
Number of Lines 10
Line Scan Interval Specify Encoder
1 pulse/line
Sampling mode x1
Trg1
(2)
Ext D
Control/data output via I/O terminals
Encoder (A phase)
A A
(1)
READY1 B B C
(1) Capture starts with trigger input to Trg1 and READY1 is always off during capture.
(2) Capture finishes with Ext input and the final scan line is copied to the remaining lines.
Camera settings
Number of Lines 10*
Number of Overlapping Lines Two lines*
Total Number of Lines Disabled
Line Scan Interval Specify Encoder
1 pulse/line
Sampling mode x1
* For the purposes of this description, the number of lines is 10 and number of overlap lines is two. If you specify the
number of overlap lines, the minimum number of lines that you can actually set is 128 and the minimum number of
overlap lines is 64.
(2)
Reset
Encoder (A phase)
A
(1)
READY1 B
Erase 17 18 19 20 21 22
(1) Capture starts with trigger input to Trg1 and READY1 is always off during capture.
(2) Continuous capture stops with Reset input and data that was in the middle of being captured is deleted by reset processing.
• If [External Trigger] is set to [Reset Pulse Count and Trigger], the encoder count and coordinates are reset when an
Reference
external trigger is input.
• The behavior for Ext input is the same as Sheet-fed (Page 6-124).
Camera settings
Number of Lines 10*
Number of Overlapping Lines Two lines*
Total Number of Lines Enabled, 23 lines*
Line Scan Interval Specify Encoder
1 pulse/line
Sampling mode x1
* For the purposes of this description, the number of lines is 10, the number of overlap lines is two, and the number of total
lines is 23. If you specify the number of overlap lines, the minimum number of lines that you can set when the total number
of lines is enabled is 128, the minimum number of overlap lines is 64, and the minimum total number of lines is 128.
Control/data output via I/O terminals
Trg1
Encoder (A phase)
A
(1)
READY1 B
Image3 17 18 19 20 21 22 23 24 25 26
(1) Capture starts with trigger input to Trg1 and READY1 is always off during capture.
(2) Capture finishes if the number of capture lines reaches the total number of lines and the final scan line is copied to the
remaining lines.
Reference • If [External Trigger] is set to [Reset Pulse Count and Trigger], the encoder count and coordinates are reset when an
external trigger is input.
• The behavior for Ext input is the same as Sheet-fed (Page 6-124).
End of calculation
C
b
OUT_DATA[15:0]
OR
B
a A c
STO
A: Status change time (1 to 999 ms) B: Output time (1 to 999 ms) C: OUT cycle time (2 - 1000 ms)
However, set the value to "A+B ≤C".
• See "Outputting data via I/O terminals" (Page 6-102) for more details on terminal data output.
Reference
• If asynchronous trigger capture is enabled, the output of the judgment value and measurement result are implemented by
camera. In order to check which camera’s measurement results the output data are, change the settings so that they
include the CAM * Execute Status in the output data. Additionally, the judgment values of tools that were not executed with
the asynchronous trigger capture are output as OK and the measurement results are output as 0. To not refresh the output
data for the tools that have not been executed, select [Do Not Output When Tool(s) Unexecuted] in the output settings.
End of calculation
C
OUT_DATA[15:0] 햲
햵
OR
A 햳 햴 A 햶 햷
STO
D
햴 햵
PST
E F
A: Status change time (1 to 999 ms) B: Output time (1 to 999 ms) C: Cycle time (2 to 1000 ms)
D: PST OFF response time (0.5 ms or less) E: PST minimum input time (1.0 ms or more) F: PST ON response time (0.5 ms or less)
Control/data output via I/O terminals
/The judgment result data is output to OUT_DATA [15:0]. Every time the data is output, the OUT_DATA [15:0] is changed
sequentially.
0The first data is output after the image processing finishes and the STO output turns on when A ms (output rise time)
passes. To read each measurement result data, synchronize the timing with the STO rise time.
1Switching the PST input from ON to OFF after the STO rising edge is reached, the STO output turns off.
2Then, when the PST input is turned from off to on, the data is changed.
3The STO output turns on when A (output rise time) ms pass after the data is changed. Repeating steps 3 to 5 switches
the output data sequentially. After all of the judgment result data has been output, repeating these steps no longer
changes the data or turns the STO on and off.
4When handshake is ON, the data can be changed at any time.
• See "Outputting data via I/O terminals" (Page 6-102) for more details on terminal data output.
Reference
• As long as the PST input is without handshake control, the data output after the first STO rise time stops. Therefore, terminal
output data while output is disabled is stored in the buffer memory, and when the buffer memory is full, new output data
overflows. In this case, overflow data is not output.
Reference For more details on the RESET operation, refer to Page 6-64.
RESET
C B
C
READY2
C
BUSY
RESET
TRG1
READY1
OUT_DATA[15:0] D
OR D
STO
Image
Image capture processing Reset operation
BUSY
D: 0 ms or more
RESET
TRG1
READY1
OUT_DATA[15:0]
OR
STO
Control/data output via I/O terminals
BUSY
/The completion of the RESET operation is confirmed by monitoring the falling edge of BUSY.
0During the RESET operation, the READY1/2 terminal is forcibly turned off once and turned back on after the reset
operation is complete. The RESET operation also cancels the input waiting state of any of TRG1/2 and resets it to the
state before the trigger input.
1When RESET is input during data output, data output including image output is canceled after completing the current
output for 1 count of data measurement, and no more data will be output until the RESET operation is complete. In
addition, if RESET is input before data output, no data is output.
a c
TEST
A
TRG1
READY1
B
a
OUT_DATA[15:0]
a
STO
/While the TEST input is ON, terminal output (OUT_DATA[15:0], OR, STO) is forcibly set to normal state. (The response
delay is within 500 μs).
0As for output to RS-232C, Ethernet, SD card, PLC-Link, EtherNet/IP, PROFINET, EtherCAT or PC program, even when the
TEST terminal turns on during result data output for 1 trigger, that data output does not stop.
1If the TEST terminal is ON before result data output for 1 trigger starts, all of output for that trigger is stopped, and result
output is not performed even when the TEST terminal is turned OFF later on.
Image archiving (Page 4-42) will stop during input to the TEST terminal. However, the output of image data that are
Reference
already saved in the image buffer memory will continue.
EXT
A
a b
READY1
B B
a b
READY2
A: EXT minimum input time (1 ms or more) B: READY response delay (0.5 ms or less)
/When the EXT input is ON, READY1 and READY2 output is OFF. The trigger cannot be input during this state (all of
external terminal, PLC communication, RS-232C, Ethernet, mouse). Even when any internal trigger is selected, capturing
and processing of images stop as soon as READY turns off. The result data output for the trigger input, which was
accepted before the EXT input turned on, will be performed regardless of the EXT state.
0When the EXT input turns off, the READY1 and READY2 output return to a state based on the camera condition.
TEST terminal operations for the total status output (OR) when the "OR terminal output mode" is set to
"Hold Status"
The status condition is normally updated for each trigger. However, if the status is NG, the condition is unchanged until
input such as TEST is executed.
TRG1
READY1
Control/data output via I/O terminals
OUT_DATA[15:0]
OR
STO
TEST
(Continued)
TRG1
READY1
OUT_DATA[15:0]
OR
STO
TEST
A
/If [Hold Status] is enabled and the last status is NG, the OR output remains NG regardless of an actual status result.
0When the TEST input is turned on/off, the hold status is cancelled and all terminals are reset to the normal status. And,
the OR output condition will be updated when the result for the next OR output is output.
1As the TEST input is not turned on, if the last status result is NG, the OR output remains NG regardless of an actual status
result.
Output operations of the total status output (OR) when "OR terminal output mode" is set to "One Shot
Output"
TRG1
OR (one shot 햲 햴 햶
A A
output)
OR (Update 햳 햵
Every Judge)
STO 햶
/If the one shot output is enabled, the OR output is in NG state when the image processing started by trigger input is NG
after the image processing finishes (not synchronized with the STO rise).
0When "Update Every Judge" is enabled, the OR output is in the NG state along with the STO rise.
1If the one shot output is enabled, the OR output holds the NG state for the specified period of time, and then resets the
NG state.
2When "Update Every Judge" is enabled, the OR output holds the NG state until the next result output for image
processing is started. Therefore, if output results are consecutively judged as NG, the OR output holds the NG state.
3If image processing is continuously performed with one shot output enabled, the previous NG state may remain at the
time of image processing results being finalized by the STO.
If a result is judged as NG while the NG state is held, the OR output holds NG state for one shot time from that timing. If signals
Reference
need to rise and fall for each NG, set the one shot time to the value smaller than output cycle.
Message communication
Operation flow
This can be used for communications that do not require
punctuality as is needed with cyclic communications (Explicit Checking the specifications (Page 6-139)
message).
• Check whether or not the connected PLC is a model
There is no functional difference between the controller
that supports EtherNet/IP connections.
message communication function and cyclic communication
• Check the allocation conditions of the input and output
function. As a result, it is not necessary to use it in most
data.
cases. However, it can be used for EtherNet/IP
communications with PLC devices that do not support cyclic
communication (SLC5/05 Series, etc.). Changing the EtherNet/IP settings (Page 6-144)
• Configure the controller settings for EtherNet/IP connection.
Main setting items: Enable/Disable setting for the EtherNet/IP,
Controller IP address (the IP address for the EtherNet/IP
module when using the EtherNet/IP module), PLC type,
Keyence PLC
KV Series
PLC model EtherNet/IP communication unit Firmware version
Control and data output by EtherNet/IP
Rockwell PLC
ControlLogix PLC
PLC model EtherNet/IP communication unit Firmware version
1756 ControlLogix 1756-ENBT, 1756-EN2T Ver. 13 or later
1756-L81E Ver. 32 or later
1769 CompactLogix - (Controller internal port) Ver. 32 or later
SLC5/05 PLC
PLC model EtherNet/IP Communications unit Firmware version
1747 SLC5/05 - (Controller internal port) OS firmware level Series C, FRN 10 or later
1763 MicroLogix 1100 - (Controller internal port) 16.000 or later
Omron PLC
P1 port
Control and data output by EtherNet/IP
P2 port
Standard specifications
Point • Since the explicit message communication performs TCP/IP communication, it is not suitable for a high speed control
when compared to the implicit communication using UDP.
• Although the explicit message communication is a communication through TCP/IP, the data may not be delivered
depending on the condition of the network. Design the control (e.g. re-sending with time-out) at the PLC considering
such a case.
Setting Address 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0bit
condition (byte)
Bit 0000 B007 Reserved B006 Reserved B005 Reserved B004 Result OR B003 Result B002 Cmd B001 Cmd Error B000 Cmd
area Ready Ready Complete
0001 B00F Reserved B00E Reserved B00D Reserved B00C Reserved B00B READY4 B00A READY3 B009 READY2 B008 READY1
0002 B017 Reserved B016 Reserved B015 Reserved B014 Reserved B013 ACK4 B012 ACK3 B011 ACK2 B010 ACK1
0003 B01F OUTPUT B01E OUTPUT B01D Reserved B01C Reserved B01B RUN B01A Reserved B019 ERROR B018 BUSY
_IMG _IMG
Control and data output by EtherNet/IP
_STATUS _BUSY
0004 B027 Tool Judge B026 Tool Judge B025 Tool Judge B024 Tool Judge B023 Tool Judge B022 Tool Judge B021 Tool Judge B020 Tool Judge
Value7 Value6 Value5 Value4 Value3 Value2 Value1 Value0
0005 B02F Tool Judge B02E Tool Judge B02D Tool Judge B02C Tool Judge B02B Tool Judge B02A Tool Judge B029 Tool Judge B028 Tool Judge
Value15 Value14 Value13 Value12 Value11 Value10 Value9 Value8
0006 B037 Tool Judge B036 Tool Judge B035 Tool Judge B034 Tool Judge B033 Tool Judge B032 Tool Judge B031 Tool Judge B030 Tool Judge
Value23 Value22 Value21 Value20 Value19 Value18 Value17 Value16
0007 B03F Tool Judge B03E Tool Judge B03D Tool Judge B03C Tool Judge B03B Tool Judge B03A Tool Judge B039 Tool Judge B038 Tool Judge
Value31 Value30 Value29 Value28 Value27 Value26 Value25 Value24
0008 B047 Tool Judge B046 Tool Judge B045 Tool Judge B044 Tool Judge B043 Tool Judge B042 Tool Judge B041 Tool Judge B040 Tool Judge
Value39 Value38 Value37 Value36 Value35 Value34 Value33 Value32
0009 B04F Tool Judge B04E Tool Judge B04D Tool Judge B04C Tool Judge B04B Tool Judge B04A Tool Judge B049 Tool Judge B048 Tool Judge
Value47 Value46 Value45 Value44 Value43 Value42 Value41 Value40
0010 B057 Tool Judge B056 Tool Judge B055 Tool Judge B054 Tool Judge B053 Tool Judge B052 Tool Judge B051 Tool Judge B050 Tool Judge
Value55 Value54 Value53 Value52 Value51 Value50 Value49 Value48
0011 B05F Tool Judge B05E Tool Judge B05D Tool Judge B05C Tool Judge B05B Tool Judge B05A Tool Judge B059 Tool Judge B058 Tool Judge
Value63 Value62 Value61 Value60 Value59 Value58 Value57 Value56
Error 0012 W000 Error Code
code area 0013
Reserved 0014 W001 Reserved
area 0015
Measurement 0016 W002 Total Count
count 0017
area
0018
0019
Command 0020 W004 Command Result
output area 0021
0022
0023
0024 W006 Command Data 1
0025
0026
0027
0028 W008 Command Data 2
0029
0030
0031
Setting Address 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0bit
condition (byte)
Command
···
output area 0044 W010 Command Data 6
0045
0046
0047
Results 0048 W012 Result Data 1
output 0049
area
0050
0051
0052 W014 Result Data 2
0053
0054
0055
Setting Address 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0bit
condition (byte)
Bit 0000 B067 Reserved B066 Reserved B065 Reserved B064 Error reset B063 Result ack B062 Reserved B061 Reserved B060 Cmd
area request Request
0001 B06F Reserved B06E Reserved B06D Reserved B06C Reserved B06B TRG4 B06A TRG3 B069 TRG2 B068 TRG1
0002 B077 Reserved B076 Reserved B075 Reserved B074 Reserved B073 Reserved B072 TEST B071 EXT B070 RESET
0003 B07F Reserved B07E Reserved B07D Reserved B07C Reserved B07B Reserved B07A Reserved B079 Reserved B078 Reserved
0004 B087 Reserved B086 Reserved B085 Reserved B084 Reserved B083 Reserved B082 Reserved B081 Reserved B080 Reserved
0005 B08F Reserved B08E Reserved B08D Reserved B08C Reserved B08B Reserved B08A Reserved B089 Reserved B088 Reserved
0006 B097 Reserved B096 Reserved B095 Reserved B094 Reserved B093 Reserved B092 Reserved B091 Reserved B090 Reserved
0007 B09F Reserved B09E Reserved B09D Reserved B09C Reserved B09B Reserved B09A Reserved B099 Reserved B098 Reserved
Control and data output by EtherNet/IP
0008 B0A7 Reserved B0A6 Reserved B0A5 Reserved B0A4 Reserved B0A3 Reserved B0A2 Reserved B0A1 Reserved B0A0 Reserved
0009 B0AF Reserved B0AE Reserved B0AD Reserved B0AC Reserved B0AB Reserved B0AA Reserved B0A9 Reserved B0A8 Reserved
0010 B0B7 Reserved B0B6 Reserved B0B5 Reserved B0B4 Reserved B0B3 Reserved B0B2 Reserved B0B1 Reserved B0B0 Reserved
0011 B0BF Reserved B0BE Reserved B0BD Reserved B0BC Reserved B0BB Reserved B0BA Reserved B0B9 Reserved B0B8 Reserved
Execute 0012 W0F2 ExecCondNo
condition 0013
number
0014 W0F3 Reserved
0015
Command 0016 W0F4 Command number
input area 0017
0018
0019
0020 W0F6 Cmd Parameter1
0021
0022
0023
0024 W0F8 Cmd Parameter2
0025
0026
0027
0028 W0FA Cmd Parameter3
0029
0030
0031
···
IP Address Setting
Point If the wrong setting is made, not only this unit but
other devices on the network may not function
• The Ethernet settings, such as the IP address properly. For details of the setting value, consult
Reference
and subnet mask when using the EtherNet/IP the system or network administrator.
communications via the Ethernet port on the
controller, are changed on the [Network If [Enable] or [Disable] is selected for [Enable/
Reference
Settings] screen (Page 5-3). The Ethernet Disable], the settings for the Ethernet port on the
settings for the EtherNet/IP communications controller are displayed.
via the EtherNet/IP module connected to the
controller are changed on this screen.
IP Address
• If the EtherNet/IP settings were changed, it is Input the IP address of the EtherNet/IP module (default
necessary to restart the controller in order to setting: 192.168.0.20).
apply the settings.
Subnet Mask
1 From [Global], select [Communications & I/O] - Input the subnet mask of the EtherNet/IP module (default
[EtherNet/IP]. setting: 255.255.255.0).
The [EtherNet/IP] screen appears.
Default Gateway
2 Left-click [Enable EtherNet/IP] to check the box. Input the IP address of the default gateway of the EtherNet/
3 Change the settings as required. IP module (default setting: 0.0.0.0).
See "EtherNet/IP setting items that can be set with this The set values are common for the P1 and P2
Point
system" (Page 6-144) for details of the settings for ports on the communications expansion unit.
each item.
4 Click [OK].
MAC Address
Other Settings
Enable Handshake
The Handshake keeps this controller from loading its
Control and data output by EtherNet/IP
• Data output via EtherNet/IP is performed only in run mode. Data is not output in setup mode.
Reference
• With EtherNet/IP, images and other binary data cannot be output.
b
a
Confirm that Result ack flag is turned off.*1
Turn off Result ack flag.
c c
Write data to ResultData and Result OR flag, The data is written to the ResultData and Result
Tool Judge Value. OR flag, Tool Judge Value.
d
d
Check the completion of data writing by
When the data writing is completed, turn on
confirming that Result ready flag changes to on,
Result ready flag.
and then reference the data.
e e
Check completion of the data reading by Turn on Result ack flag.
detecting that Result ack flag is turned on.
f f
Turn off Result ready flag. The change of Result ready flag to off is
detected.
a
Turn off Result ack flag.
*1 When handshake is OFF, output data is overwritten and updated without checking whether the Result ack flag is OFF. To take the rise
of Result ready flag as a data reference synchronization signal, turn the Result ack flag ON at each output, which will turn the Result
ready flag OFF.
Timing Chart
햲 햴 햵 햶 햷 햲
Control and data output by EtherNet/IP
• The "Result OR flag" is updated in coordination with results output with EtherNet/IP as the output destination. When the
Reference
"Result OR flag" is used, it is necessary to configure the output setting so that 1 or more data item is output via EtherNet/IP.
• If asynchronous trigger capture (Page 3-19) is enabled, the output of judgment value and measurement result are
implemented by camera. In order to check which camera’s measurement results the output data are, change the settings so
that they include the CAM * Execute Status in the output data.
c b
When the controller detects that the Command Confirm that Command ready flag is turned on
request flag is turned on, it reads the command and then turn on Command request flag.
from the Command Number and the command
parameters from the Command Parameter and Confirm the start of command execution by
executes the command, and then it turns off the detecting that Command ready flag has turned off.
Command ready flag.
d
When the command execution is completed, the
The response data is written to the Command
response data is written to Command Data and
Data*1
the error status is set in Command error flag.
e
e Confirm completion of the command execution by
detecting that Command complete flag has
Command complete flag turns on. turned on. Reference the response data and
command execution result.
g
When the controller confirms that Command
f
request flag is turned off, it turns off Turn off Command request flag.
Command complete flag and Command
error flag and turns on Command ready flag.
*1 In the case of a command for which there is no response data, data is not output in response to the Command Data.
When an error occurs, the command execution results are written to Command Result. (0: Success, <Error code>:
Reference
Failure). Error codes are as specified in "When an error occurs on command acceptance" (Page 6-3).
Timing Chart
햲햳햴 햵햶 햷햸
Flow of execute condition No. change using EtherNet/IP (example of connection with
PLC EtherNet/IP unit)
The controller changes the execute condition No. value using EtherNet/IP in the following manner.
The changed value is applied at the next measurement.
RPI
Specify the cyclic communication interval.
Bidirectional InputOnly
communication PLC connection PLC
(Max.: 1 PLC)
RPI value Any value Same value as at left
InputAssembly 100 (decimal) Same value as at left
Instance No.
InputAssembly Any value Same value as at left • Tags that contain MSG command management
data size information (message - Message type)
OutputAssembly • 101 (decimal): • 254 (decimal): • Tags that contain send/receive-data by MSG
Instance No. When the Ethernet When the Ethernet commands (tx_ param, rx_param - DINT type)
port of the port of the
controller is used controller is used 2 Add MSG commands to the RsLogic 5000 ladder.
• 150 (decimal): • 3 (decimal):
When the When the
communication communication
expansion unit is expansion unit is
used used
OutputAssembly Any value 0 bytes
data size
Comm Format Data-DINT Input Data
-DINT
ServiceType, Class, Instance, Attribute 4 Open the [Communication] tab and change the
Set values according to the messages that will be sent. MSG communication settings.
• Example 1: Setting 1 for the Vision System Object TRG
bit when writing to the attribute
ServiceType SetAttributeSingle
ServiceCode - (Cannot be specified.)
Class 6AHex
Instance 01Hex
Attribute 69Hex
SourceElement Name of tag storing send-data
SourceLength 1 byte
(because attribute size is 1) Path
Destination - (Cannot be specified.) Specify the device name that was set for [Cyclic
Communication Settings]. (The figure above shows an
Control and data output by EtherNet/IP
• Example 2: Acquiring the Vision System Object example when the device is CV-X.)
READY1 bit value when reading the attribute
ServiceType GetAttributeSingle
5 Connected, Cache connections
• UCMM connection: Disable both (default).
ServiceCode - (Cannot be specified.)
• Class3 connection: Enable both.
Class 6AHex
Instance 01Hex 6 Enter the send-data settings and process for
Attribute 65Hex receive-data acquisition in a ladder program and
SourceElement - (Cannot be specified.) download it to the PLC.
SourceLength - (Cannot be specified.)
Destination Name of tag storing receive-data Other precautions concerning settings
• Example 3: Using the results data acquisition The format of the value of decimal fraction data varies as
service (4DHex) of the Vision System Object when shown below according to the setting selected for [Decimal
executing a service Point]. (This applies to the decimal fraction values in the
DW/DR command parameters and results data.)
ServiceType Custom
ServiceCode 4DHex When [Fixed-point] is selected
Class 6AHex The value multiplied by 1000 is stored as an integer.
Instance 01Hex
When [Floating-point] is selected
Attribute 01Hex
The value is stored as single-precision floating decimal point
SourceElement Name of tag storing send-data
form.
SourceLength 4 bytes
Destination Name of tag storing receive-data
2 Add EEM commands to the RsLogix 500 ladder. • Example 2: Acquiring the Vision System Object
READY bit value when reading the attribute
Service Generic Get Attribute Single
ServiceCode - (Cannot be specified.)
Class 6AHex
Instance 01Hex
Attribute 65Hex
Data Table Address - (Cannot be specified.)
(Send-data)
Size In Words (Send- - (Cannot be specified.)
data)
3 In the EEM command Control Block, specify the file
Data Table Address Name of file storing receive-data
to be used in the EEM commands that were defined
(Receive-data)
in Step 1 and open SetupScreen.
Size In Words 1 word (because attribute size is 1)
Control and data output by EtherNet/IP
(Receive-data)
• Example 4: Accessing 4 Open the [MultiHop] tab and set the controller IP
Assembly Object attribute3:data during control address.
using the same format and procedure as for cyclic
data
- 1) Acquiring controller input data
Service ReadAssembly
ServiceCode 0EHex (cannot be specified)
Class 04Hex (cannot be specified)
Instance 64Hex
Attribute 03Hex (cannot be specified)
The figure above shows an example when the
Data Table Address (Cannot be specified.) controller IP address is 192.168.0.10.
(Send-data)
Size In Words (Send- (Cannot be specified.) 5 Open the [Send Data] tab and [Receive Data] tab,
data) and check the contents of the files that contain
Example when using SLC5/05 to access data expressed in floating decimal-point form
1 Prepare files containing a Float type and Integer type array (2 elements).
2 Use COP commands and MOV commands to exchange the floating decimal value with the controller.
• Acquiring the floating decimal value:
Use a MOV command or other means to copy the Integer-type 2-element data that was acquired by message and in
which the upper word and lower word were reversed to the Integer array that was prepared in advance. Then use a
COP command to copy the copied Integer array to Float type file.
MOV command COP command
Integer 0 Integer 1
(16bit) (16bit) Float
1 0 (32bit)
(16bit) (16bit)
array. Then use a MOV command to copy the 2 Integer-type element data with the upper word and lower word
reversed to the Integer array.
MOV command COP command
Integer 0 Integer 1
(16bit) (16bit) Float
1 0 (32bit)
(16bit) (16bit)
Troubleshooting
Checking whether or not the EtherNet/IP Although results data is output beginning from
connection is correct byte address 0048, it is unknown where the data
Select the controller [Global] - [Communications & I/O] - is output to on the PLC (KV Series) side.
[EtherNet/IP], then check [Cyclic Communication Status:] With the KV Series, when automatic allocation is used for
at the bottom of the [EtherNet/IP] screen. If [Not the first CV-X series, the CV-X series results data is written
Connected] is displayed here, then communication has beginning from link register W0012.
Error Message
Object configuration
The EtherNet/IP function provided by the controller's Ethernet port and the communication expansion unit support the
following objects. Access to these objects can be achieved through the message communication.
Reference • For detailed procedures for issuing the message with the PLC device in use, refer to the PLC operation manual.
• This manual mainly describes the Vision System Object which is an object that is unique to the controller. For details
regarding the other objects, refer to the EtherNet/IP specifications (http://www.odva.org) issued by ODVA.
Data notation
• The bit position in the data is indicated as "Bit n". (Bit0 represents the LSB.)
• Array type data is indicated by [ ]. Example: DWORD[10] (DWORD type array, No. of elements: 10)
Data type
The data type is prescribed as follows in the EtherNet/IP specifications.
Explanation
The same data that is sent and received by cyclic communications can be accessed and controlled directly by messages.
This can be used to perform control using the same data format as with cyclic communication for models that do not support
cyclic communication (such as Rockwell SLC5/05).
Reference Be aware that with messages, it is not possible to perform time-specific control as it is with cyclic communications.
Instance100 (64Hex)
This is information concerning the input assembly and is sent using cyclic communication by the controller.
Attribute
Control and data output by EtherNet/IP
Service
Attribute
The output assembly configuration is as prescribed in the cyclic communication data allocation in the global settings.
For the purpose of explanation, the configuration is shown with the settings listed below.
• Cyclic communication data size: 496 bytes (Addresses 0000 - 0495)
Address (byte) 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0bit
0000 Reserved Reserved Reserved Error reset Result ack Reserved Reserved Cmd Request
request
0001 Reserved Reserved Reserved Reserved TRG4 TRG3 TRG2 TRG1
0002 Reserved Reserved Reserved Reserved Reserved TEST EXT RESET
0003 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0004 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0005 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0006 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0007 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0008 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0009 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0010 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0011 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved
0012 ExecCondNo
0013
0014 Reserved
0015
0016 Command number
0017
0018
0019
0020 Cmd Parameter1
0021
0022
0023
0024 Cmd Parameter2
0025
0026
0027
0028 Cmd Parameter3
0029
0030
0031
···
Service
Explanation
This object is unique to the controller, and provides the attributes and services that are necessary to control the controller by means
of messages.
For details concerning control by attributes, refer to the control sequence for cyclic communication.
Instance: 1 (01Hex)
Attribute
* For Get access, the GetAttributeSingle service (0EHex) is used. For Set, the SetAttributeSingle service (10Hex) is used.
Service
In the communication process using messages, a processing delay of several 10s of ms or longer occurs. If this is a
Reference
problem, use cyclic communication or terminal input for control.
19 (13Hex) Parameter too small The parameter was not specified in the
error send-data.
21 (15Hex) Parameter too large Parameter larger than 496 bytes was
error specified in the send-data.
31 (1FHex) 2 Command error The specified command does not exist.
3 Command operation Operation of the received command is
prohibited not possible.
5 Command response The command results area is insufficient.
error
22 Parameter error The parameter number or range is
incorrect.
16 (10Hex) Status error The "Command ready flag" is OFF.
- Results data:
When the execution of a command that includes command results is successful, the results data is returned in the
format shown below.
Name Data type Details
Command Data DWORD [ ] Returns the command execution results. The data contained in
this area corresponds to the Command Data part. The maximum
size of the returned data is 248 bytes when the selected PLC type
is Rockwell SLC5/05, and 496 bytes in all other cases.
In the communication process using messages, a processing delay of several 10s of ms or longer occurs. If this is a
Reference
problem, use cyclic communication or terminal input for control.
- Results data
Name Data type Details
Result BYTE[] Returns results data with the specified offset and size.
The maximum data size is 248 bytes when the selected PLC type
is Rockwell SLC5/05, and 496 bytes in all other cases.
• In the communication process using messages, a processing delay of several 10s of ms or longer may occur. If this is a
Reference
problem, use cyclic communication or terminal input for control.
• The results data that can be acquired is up to the size specified in the cyclic communication allocations.
• When this command is used, set the handshake to OFF.
• 3: ResultData area
- Results data:
Name Data type Details
Size UINT Size of specified area
Offset UINT Starting address of specified area
Services
Controlling the controller using Specify the contents for execution. The primary services that
EtherNet/IP message communication can be used with the controller are the following.
• Access to attributes:
Using message communication GetAttributeSingle/SetAttributeSingle
The controller functions as the message communication • Object-specific service:
server. The procedure for issuing message communication Services that are prepared for individual objects.
varies depending on the device. However, information such
as the following must be specified. For details, refer to Control using message communication
"Controller EtherNet/IP communication specifications" (Page
When using messages to control the controller, access
6-139) and the manual of each device.
Vision System Object.
IP Address: Vision System Object provides the following services.
Specify the controller IP address.
Service name Service ID Explanation
Attributes
Specify the attributes that exist in the specified class and
instance. For details of the attributes of each class, refer to
"Controller EtherNet/IP communication specifications"
(Page 6-139) and the specifications of the EtherNet/IP
functions issued by ODVA.
To obtain the specifications issued by ODVA,
Reference
refer to the URL below.
ODVA homepage: www.odva.org/
Controller
PLC
Reset service (05Hex) control image (CV-X series)
Controller Response
PLC
(CV-X series)
The following conditions must be satisfied in
Reference
Control and data output by EtherNet/IP
Reset service
order to use this service.
• EtherNet/IP must be enabled when started.
Response • EtherNet/IP must be enabled in the external
trigger type settings.
• READY1 - READY4 for the specified trigger
information must be true (READY state).
Example of data
Response
Execution result
• 0 (00Hex): Service execution was successful.
• 9 (09Hex): Data value is not correct (not a valid value).
• 16 (10Hex): Service was not available (One of the
specified triggers was not in ready state.)
• 19 (13Hex): Incorrect data size (too small)
• 21 (15Hex): Incorrect data size (too large)
Response data
Command control with EtherNet/
IP message communication Execution result Execution result
Additional code Refer below.
Command execution service (4CHex) control Data Byte No. 0 Execution result byte No. 0
Example of data
When specifying number specified command 24 (PW) and
changing to program 10 in SD1
Send-data
Example of data
Acquiring measurement data by EtherNet/IP
message communications (Acquire Data) Acquiring 20 bytes starting from byte 12 in the results data
Send-data
Results data acquisition service (4DHex) control
image Class ID 6AHex Vision System Object
Instance ID 01Hex Fixed value
Specify the offset and size in bytes for the results data that
Service ID 4DHex Results data acquisition
was allocated in the output settings, and acquire the
service
results data.
Attribute ID – –
Controller Data Byte No. 0 14Hex Acquire 20 bytes.
PLC
(CV-X series) Byte No. 1 00Hex
Byte No. 2 0CHex Acquire results data
Result data retrieval service
beginning from byte No. 12
Control and data output by EtherNet/IP
Controller
PLC
(CV-X series)
Synchronizing system
variables change service
Example of data
Writing execute condition number 5
Send-data
Response data
Execution result
• 0 (00Hex): Service execution was successful.
• 9 (09Hex): Data value is not correct (not within valid
range).
• 19 (13Hex): Incorrect data size (too small)
• 21 (15Hex): Incorrect data size (too large)
Control/data output
Control and data output by PROFINET
Cyclic communication
via I/O terminals
Cyclic communication at update time intervals allows high-
speed control at intervals of several ms to several tens of
Control and data output ms. In addition, because it is possible to control the
by EtherNet/IP controller by referencing and updating variables and
devices in the PLC without considering the
communication, it allows programs to be written easily on
Control and data output
q the PLC side.
by PROFINET • Control controller: Control the controller by using cyclic
communication to send the commands for execution.
Control and data output • Results data output: Data can be output by cyclic
communication when the items for output from
by EtherCAT
PROFINET are set in the output settings (Page 3-113).
• Change execute condition number: The controller can
be controlled by specifying the execute condition
number by cyclic communication.
• Set a cyclic communication update time of
Reference
4 ms or more (1 ms or more when using the
communication expansion unit).
• Even when a cyclic communication update
time of 4 ms or more (1 ms or more when using
the communication expansion unit) is set, due to
the controller measurement settings, dialog
box operations, commands, combined use
with FTP, remote desktop, or other
communications, the controller may temporarily or
continuously be subject to excessive load,
causing delays in processing or temporary
interruption of communications due to timeout. In
such cases, it is necessary to either review the
cyclic communication settings and service
conditions, or else to change the PROFINET
settings in the global settings to prioritize
communications processing over image
processing. (CV-X200/X100 Series only)
(When this is done, there may be an increase
or variation in measurement time.) Be sure to
verify that there are no problems with
operating performance, including the issues
above, prior to operation.
• In a network where many devices are
connected, including PROFINET devices, if a
large load is constantly or temporarily applied
to the network, then delays and packet loss
may occur. Be sure to perform sufficient
verification prior to operation.
Siemens PLC
Omron PLC
P1 port
Control and data output by PROFINET
P2 port
Standard specifications
The PROFINET communication of this system supports two types of communication: "data I/O communication (cyclic
communication)" and "record data communication (acyclic communication)."
Accessible address
Index
CV-X port Expansion unit
1 0008 to 1031 0008 to 1007
2 1032 to 2055 1008 to 2007
3 (None) 2008 to 2055
Accessible address
Index
CV-X port Expansion unit
10 0008 to 1031 0008 to 1007
11 1032 to 2055 1008 to 2007
12 2056 to 3079 2008 to 3007
13 3080 to 4103 3008 to 4007
14 (None) 4008 to 4103
• The Read Record and Write Record commands are issued from the PLC by using the "RDREC" (SFB 52) and "WRREC"
(SFB 53) blocks respectively. See "Typical setting procedure for PROFINET" (Page 6-194) for more details.
Point If the Write Record command is issued while the Parameter module is being written in the cyclic communication, memory
area conflict may occur. Design the use of the Write Record command to avoid the memory area conflict with the cyclic
communication.
Setting Address 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0bit
status (byte)
Bit 0000 I0.7 Reserved I0.6 Reserved I0.5 Reserved I0.4 Result OR I0.3 Result I0.2 Cmd I0.1 Cmd Error I0.0 Cmd
area Ready Ready Complete
0001 I1.7 Reserved I1.6 Reserved I1.5 Reserved I1.4 Reserved I1.3 READY4 I1.2 READY3 I1.1 READY2 I1.0 READY1
0002 I2.7 Reserved I2.6 Reserved I2.5 Reserved I2.4 Reserved I2.3 ACK4 I2.2 ACK3 I2.1 ACK2 I2.0 ACK1
0003 I3.7 OUTPUT I3.6 OUTPUT I3.5 Reserved I3.4 Reserved I3.3 RUN I3.2 Reserved I3.1 ERROR I3.0 BUSY
_IMG _IMG
_STATUS _BUSY
0004 PIB256 Allocation PIB256 Allocation PIB256 Allocation PIB256 Allocation PIB256 Allocation PIB256 Allocation PIB256 Allocation PIB256 Allocation
Control and data output by PROFINET
bit No. 7 possible bit No. 6 possible bit No. 5 possible bit No. 4 possible bit No. 3 possible bit No. 2 possible bit No. 1 possible bit No. 0 possible
0005 PIB257 Allocation PIB257 Allocation PIB257 Allocation PIB257 Allocation PIB257 Allocation PIB257 Allocation PIB257 Allocation PIB257 Allocation
bit No. 7 possible bit No. 6 possible bit No. 5 possible bit No. 4 possible bit No. 3 possible bit No. 2 possible bit No. 1 possible bit No. 0 possible
0006 PIB258 Allocation PIB258 Allocation PIB258 Allocation PIB258 Allocation PIB258 Allocation PIB258 Allocation PIB258 Allocation PIB258 Allocation
bit No. 7 possible bit No. 6 possible bit No. 5 possible bit No. 4 possible bit No. 3 possible bit No. 2 possible bit No. 1 possible bit No. 0 possible
0007 PIB259 Allocation PIB259 Allocation PIB259 Allocation PIB259 Allocation PIB259 Allocation PIB259 Allocation PIB259 Allocation PIB259 Allocation
bit No. 7 possible bit No. 6 possible bit No. 5 possible bit No. 4 possible bit No. 3 possible bit No. 2 possible bit No. 1 possible bit No. 0 possible
0008 PIB260 Allocation PIB260 Allocation PIB260 Allocation PIB260 Allocation PIB260 Allocation PIB260 Allocation PIB260 Allocation PIB260 Allocation
bit No. 7 possible bit No. 6 possible bit No. 5 possible bit No. 4 possible bit No. 3 possible bit No. 2 possible bit No. 1 possible bit No. 0 possible
0009 PIB261 Allocation PIB261 Allocation PIB261 Allocation PIB261 Allocation PIB261 Allocation PIB261 Allocation PIB261 Allocation PIB261 Allocation
bit No. 7 possible bit No. 6 possible bit No. 5 possible bit No. 4 possible bit No. 3 possible bit No. 2 possible bit No. 1 possible bit No. 0 possible
0010 PIB262 Allocation PIB262 Allocation PIB262 Allocation PIB262 Allocation PIB262 Allocation PIB262 Allocation PIB262 Allocation PIB262 Allocation
bit No. 7 possible bit No. 6 possible bit No. 5 possible bit No. 4 possible bit No. 3 possible bit No. 2 possible bit No. 1 possible bit No. 0 possible
0011 PIB263 Allocation PIB263 Allocation PIB263 Allocation PIB263 Allocation PIB263 Allocation PIB263 Allocation PIB263 Allocation PIB263 Allocation
bit No. 7 possible bit No. 6 possible bit No. 5 possible bit No. 4 possible bit No. 3 possible bit No. 2 possible bit No. 1 possible bit No. 0 possible
Error 0012 PIW Error code
code 424
0013
area
Reserved 0014 PIW Reserved
area 426
0015
Mea- 0016 PID Total count
surement 428
0017
count
area 0018
0019
0020 PID Command Result
Command 432
0021
output
area 0022
0023
0024 PID Command Data 1
436
0025
0026
0027
0028 PID Command Data 2
440
0029
0030
0031
···
Setting Address 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0bit
status (byte)
Bit 0000 Q0.7 Reserved Q0.6 Reserved Q0.5 Reserved Q0.4 Error reset Q0.3 Result Q0.2 Reserved Q0.1 Reserved Q0.0 Cmd
area request ack Request
Reserved 0001 Q1.7 Reserved Q1.6 Reserved Q1.5 Reserved Q1.4 Reserved Q1.3 TRG4 Q1.2 TRG3 Q1.1 TRG2 Q1.0 TRG1
area
0002 Q2.7 Reserved Q2.6 Reserved Q2.5 Reserved Q2.4 Reserved Q2.3 Reserved Q2.2 TEST Q2.1 EXT Q2.0 RESET
0003 Q3.7 Reserved Q3.6 Reserved Q3.5 Reserved Q3.4 Reserved Q3.3 Reserved Q3.2 Reserved Q3.1 Reserved Q3.0 Reserved
0004 PQB256 Reserved PQB256 Reserved PQB256 Reserved PQB256 Reserved PQB256 Reserved PQB256 Reserved PQB256 Reserved PQB256 Reserved
bit No. 7 bit No. 6 bit No. 5 bit No. 4 bit No. 3 bit No. 2 bit No. 1 bit No. 0
0005 PQB257 Reserved PQB257 Reserved PQB257 Reserved PQB257 Reserved PQB257 Reserved PQB257 Reserved PQB257 Reserved PQB257 Reserved
bit No. 7 bit No. 6 bit No. 5 bit No. 4 bit No. 3 bit No. 2 bit No. 1 bit No. 0
Control and data output by PROFINET
0006 PQB258 Reserved PQB258 Reserved PQB258 Reserved PQB258 Reserved PQB258 Reserved PQB258 Reserved PQB258 Reserved PQB258 Reserved
bit No. 7 bit No. 6 bit No. 5 bit No. 4 bit No. 3 bit No. 2 bit No. 1 bit No. 0
0007 PQB259 Reserved PQB259 Reserved PQB259 Reserved PQB259 Reserved PQB259 Reserved PQB259 Reserved PQB259 Reserved PQB259 Reserved
bit No. 7 bit No. 6 bit No. 5 bit No. 4 bit No. 3 bit No. 2 bit No. 1 bit No. 0
0008 PQB260 Reserved PQB260 Reserved PQB260 Reserved PQB260 Reserved PQB260 Reserved PQB260 Reserved PQB260 Reserved PQB260 Reserved
bit No. 7 bit No. 6 bit No. 5 bit No. 4 bit No. 3 bit No. 2 bit No. 1 bit No. 0
0009 PQB261 Reserved PQB261 Reserved PQB261 Reserved PQB261 Reserved PQB261 Reserved PQB261 Reserved PQB261 Reserved PQB261 Reserved
bit No. 7 bit No. 6 bit No. 5 bit No. 4 bit No. 3 bit No. 2 bit No. 1 bit No. 0
0010 PQB262 Reserved PQB262 Reserved PQB262 Reserved PQB262 Reserved PQB262 Reserved PQB262 Reserved PQB262 Reserved PQB262 Reserved
bit No. 7 bit No. 6 bit No. 5 bit No. 4 bit No. 3 bit No. 2 bit No. 1 bit No. 0
0011 PQB263 Reserved PQB263 Reserved PQB263 Reserved PQB263 Reserved PQB263 Reserved PQB263 Reserved PQB263 Reserved PQB263 Reserved
bit No. 7 bit No. 6 bit No. 5 bit No. 4 bit No. 3 bit No. 2 bit No. 1 bit No. 0
Execution 0012 PQW ExecCondNo
condition 0013 424
No.
0014 PQW Reserved
0015 426
Connection
PROFINET Name
Specify a unique name for this controller so that the
• The Ethernet settings, such as the IP address connecting PLC can identify the controller in the
Reference
and subnet mask, when using the PROFINET PROFINET network. Unless a proper name is specified, the
communications via the Ethernet port on the PLC cannot find the controller and cannot ensure
controller are changed on the [Network PROFINET communication. The name to be specified here
Settings] screen (Page 5-3). The Ethernet
must be identical to that given to this controller when the
settings for the PROFINET communications
PLC configures its PROFINET specifications.
via the PROFINET module connected to the
controller are changed on this screen.
• If the PROFINET settings were changed, it is IP Address Setting
necessary to restart the controller in order to
apply the settings. Point If the wrong setting is made, not only this unit but
other devices on the network may not function
properly. For details of the setting value, consult
1 From [Global], select [Communications & I/O] - the system or network administrator.
[PROFINET].
The [PROFINET] screen appears. If [Enable] or [Disable] is selected for [Enable/
Reference
Disable], the settings for the Ethernet port on the
2 Select whether to communicate via the Ethernet controller are displayed.
port on the controller or the PROFINET module in
IP Address
the [Enable/Disable] field.
Input the IP address of the PROFINET module (default
3 Specify [PROFINET Name]. setting: 192.168.0.20).
5 Click [OK].
Decimal Point
Select the data representation method for when handling
the decimal numbers in the results data output or
command controls.
• Fixed-point (default): The original data is multiplied by
1000, and handled as a signed 32-bit integer data.
• Floating-point: The data is handled as 32-bit single-
precision floating decimal point data.
• For details on the data that are output in decimal in
Reference
results data output, see "Operation symbol/output
item comparison table (Measured Value/Judgment
Value)" (Page 3-61)
• For details on the data that handle decimal
numbers in command controls, see "Control/data
output via commands" (Page 6-2)
• Data output via PROFINET is performed only in run mode. Data is not output in setup mode.
Reference
• With PROFINET, images and other binary data cannot be output.
• If data output via PROFINET was not executed, no data is output. In this case, the "Result ready flag" does not change.
b
a
Confirm that Result ack flag is turned off.*1
Turn off Result ack flag.
c c
Write data to ResultData and Result OR flag, The data is written to the ResultData and Result
Tool Judge Value. OR flag, Tool Judge Value.
d
d
Check the completion of data writing by
When the data writing is completed, turn on
confirming that Result ready flag changes to on,
Result ready flag.
and then reference the data.
e
e
Check completion of the data reading by
Turn on Result ack flag.
detecting that Result ack flag is turned on.
f f
Turn off Result ready flag. The change of Result ready flag to off is detected.
a
Turn off Result ack flag.
*1 When handshake is OFF, output data is overwritten and updated without checking whether the Result ack flag is OFF. To take the rise
of Result ready flag as a data reference synchronization signal, turn the Result ack flag ON at each output, which will turn the Result
ready flag OFF.
Timing Chart
햲 햴 햵 햶 햷 햲
Control and data output by PROFINET
• The "Result OR flag" is updated in coordination with results output with PROFINET as the output destination. When the
Reference
"Result OR flag" is used, it is necessary to configure the output setting so that 1 or more data item is output via PROFINET.
• If asynchronous trigger capture (Page 3-19) is enabled, the output of judgment value and measurement result are
implemented by camera. In order to check which camera’s measurement results the output data are, change the settings so
that they include the CAM * Execute Status in the output data.
c b
When the controller detects that the Command Confirm that Command ready flag is turned on
request flag is turned on, it reads the command and then turn on Command request flag.
from the Command Number and the command
parameters from the Command Parameter and
Confirm the start of command execution by
executes the command, and then it turns off the
detecting that Command ready flag has turned off.
Command ready flag.
d
When the command execution is completed,
the response data is written to Command Data The response data is written to the Command
and the error status is set in Command error flag. Data*1
e
e Confirm completion of the command execution by
detecting that Command complete flag has
Command complete flag turns on. turned on. Reference the response data and
g command execution result.
*1 In the case of a command for which there is no response data, data is not output in response to the Command Data.
When an error occurs, the command execution results are written to Command Result. (0: Success, <Error code>:
Reference
Failure).
Timing Chart
햲햳햴 햵햶 햷햸
Flow of execute condition No. change using PROFINET (Example of connection with
PLC PROFINET unit)
The controller changes the execute condition No. value using PROFINET in the following manner.
The changed value is applied at the next measurement.
The following example explains a case in which a CV-X 2. Changing the Siemens S7-300 Series settings
Series is connected via PROFINET to a Siemens S7-300
Series, measured value and judgment value output is 1 With the PC and CPU connected, launch [SIMATIC
performed, and PW commands are used for controller Manager] and select [New] from the [File] menu.
control. 2 Enter the project name in [Name] and click [OK].
5 From [Hardware Catalog], expand [SIMATIC 300] - 7 Set the CPU IP address and subnet mask, then
[RACK-300], then drag & drop [Rail] into the Station click [New].
Window. The [Properties - New subnet Industrial Ethernet]
screen appears.
11 From [Hardware Catalog] on the [HW Config] 13In [Device name], enter the same character string
screen, open [PROFINET IO] - [Additional Field as the PROFINET name for the connected CV-X
Devices] - [Sensors] - [Keyence Machine Vision Series.
System], then drag & drop [CV-X1XX], [CV-X2XX],
[CV-X3XX], [CV-X4XX] or [CV-X3H4H-CA-NPN20E]
into [PROFINET-IO-System] in the Station Window.
Control and data output by PROFINET
14Click [Ethernet].
The CV-X100, CV-X200, CV-X300, CV-X400 or CV-X is The [Properties - Ethernet interface cv-x100] screen,
added to the Station Window, and all modules that can [Properties - Ethernet interface cv-x200] screen,
be used with the CV-X Series are automatically added. [Properties - Ethernet interface cv-x300] screen,
[Properties - Ethernet interface cv-x400] screen or
If [PROFINET-IO-System] does not appear
Reference [Properties - Ethernet interface cv-x3h4h-ca-npn20e]
in the Station Window, right-click on CPU
[PN-IO] and select [Insert PROFINET IO screen appears.
System].
15In [IP address], enter the IP address to set for the
connected CV-X Series.
2. Check the format for output to the byte 3 From [Global], select [Communications & I/O] -
address, and the relationship between the byte [PROFINET], and left-click [Set] in [Data Settings].
address and I address, then set the Variable The [Communication Data Structure] screen appears.
Table. 4 Left-click [View List] in [Send-Data].
1 Check an example of result data storage into the The contents that are allocated to controller send-data
byte address. can be checked.
The PROFINET output settings are set so that the results
data shown below are output.
• Total status value
• T100: Position Adjustment with Pattern Match
(Shading) (position X)
• T100: Position Adjustment with Pattern Match
(Shading) (position XY)
• T101: Area
Control and data output by PROFINET
The [Properties - Variable Table] screen appears. 10Select Variable Table [Variable] - [Monitor] to select
monitor mode, then input the trigger to the CV-X
Series and check the output results.
Check the current value beginning with address I460.
7 Click [OK].
The Variable Table is added to SIMATIC Manager
[Blocks].
4 Click [OK].
The changed settings are saved.
Controller (CV-X series) PLC For details of the CPU unit configuration, and of the setting
Set the command No. and procedure needed for communication with the CPU, refer
command parameters of a to the CPU instruction manual.
desired instruction in
the Command Number and
Command Parameter 1 From [Hardware Catalog] on the STEP 7 [HW Config]
When the controller detects respectively.
that Command request flag is
screen, select CV-X100, CV-X200, CV-X300, CV-X400
turned on, it reads the
Confirm that Command or CV-X3H4H-CA-NPN20E and drag & drop it into
command from the
ready flag is turned on and [PROFINET-IO-System] in the Station Window.
Command Number and the
then turn on Command request
command parameters from
flag.
the Command Parameter and
executes the command, and
then it turns off the Command
ready flag.
2 Double-click the CV-X100, CV-X200, CV-X300, 4 Change the size of [Parameter Byte Modules] and
CV-X400 or CV-X icon on the [HW Config] screen [Result Byte Modules].
and set [Device name] and [IP address]. When the default setting, right-click the module to
change then select [Delete] to delete the module.
Changing the record data communication settings 3 From the [Step 7] Object Hierarchy, select [Blocks]
then double-click [OB1].
After performing "Changing the cyclic communication
settings" (Page 6-202), use the "RDREC" (SFB 52) block in
the ladder program to perform record data
communication.
The CV-X series supports the following record commands.
Troubleshooting
Checking whether or not the PROFINET The Ethernet settings (IP address, etc.) were
connection is correct unintentionally changed.
Select the controller [Global] - [Communications & I/O] - With PROFINET, the IP address that is set for the controller
[PROFINET], then check [Cyclic Communication Status:] on the PLC side is applied by overwriting the Ethernet
at the bottom of the [PROFINET] screen. If [Not settings (IP address, etc.) on the controller side when
Connected] is displayed here, then communication has communication starts. Set the controller Ethernet settings
failed. Check the cable connection, IP address, on the PLC side.
communications settings on the PLC side, and other items
Control and data output by PROFINET
Error Message
via I/O terminals Cyclic communication at update time intervals allows high-
speed control at intervals of several ms to several tens of
ms. In addition, because it is possible to control the
Control and data output controller by referencing and updating variables and
by EtherNet/IP devices in the PLC without considering the
communication, it allows programs to be written easily on
the PLC side.
Control and data output
• Control controller: Control the controller by using cyclic
by PROFINET communication to send the commands for execution.
• Results data output: Data can be output by cyclic
Control and data output communication when the items for output from EtherCAT
q are set in the output settings (Page 3-115).
by EtherCAT
• Change execute condition number: The controller can
be controlled by specifying the execute condition
number by cyclic communication.
• Set a cyclic communication update time of
Reference
500 μs or more.
• Even when a cyclic communication update
time of 500 μs or more is set, due to the
controller measurement settings, dialog box
operations, commands, combined use with
FTP, remote desktop, or other
communications, the controller may
temporarily or continuously be subject to
excessive load, causing delays in processing
or temporary interruption of communications
due to timeout. In such cases, it is necessary
to review the cyclic communication settings
and service conditions. Be sure to verify that
there are no problems with operating
performance, including the issues above,
prior to operation.
• In a network where many devices are
connected, including EtherCAT devices, if a
large load is constantly or temporarily applied
to the network, then delays and packet loss
may occur. Be sure to perform sufficient
verification prior to operation.
• EtherCAT and PLC-Link, EtherNet/IP, or
PROFINET cannot be used at the same time
(EtherCAT cannot be used when PLC-Link,
EtherNet/IP or PROFINET is enabled).
Mailbox communication
Operation flow
(acyclic communication)
This can be used for communication applications that do Checking the specifications (Page 6-210)
not require punctuality as is needed with cyclic
• Check whether or not the connected PLC is a model
communications. With this communication method, special
that supports EtherCAT connections.
commands are used to read and write from/to data records
• Check the allocation conditions of the input and output
, and it is possible to access areas that exceed the
data.
maximum size (536 bytes for input and 532 bytes for
output) for cyclic communications.
Changing the EtherCAT settings (Page 6-218)
• Configure the controller settings for EtherCAT
connection.
Main setting items: Input/output data assignments
Point • The controller must be turned off before Compliant standard IEEE802.3u (100BASE-TX)
connecting or disconnecting the CA-NEC20E. Communication speed 100 Mbps (100BASE-TX)
Control and data output by EtherCAT
• Restart the controller and master station after Communication cycle 500 μs shortest
changing the EtherCAT settings.
Connection cable Category 5e or greater shielded twisted
pair (STP) cable
Node interval 100 m
Communication port RJ45 connector × 2
Communication size 536 bytes (input), 532 bytes (output)
Supported functions Process data object communication
(cyclic communication)
Mailbox communication (acyclic
communication)
Supports CoE
Explicit Device Identification
Conformance test Compliant with Version.2.2.1.0
version
When Using the Illumination Expansion
Unit and EtherCAT Module Together
Mount the camera input unit directly to the controller, then Wiring diagram (IN port/OUT port)
mount the illumination expansion unit and EtherCAT
module to the right side of the camera input unit.
Beckhoff PLC
PLC model EtherCAT Firmware version Software used Version of software used
communications unit
C6920-0050 (TwinCAT) - (Built-in in PLC CPU Unit) Windows7 Ultimate TwinCAT3 v3.1.4020(Build4020)
Service Pack1
Omron PLC
PLC model EtherCAT Firmware version Software used Version of software used
communications unit
NJ101-9000 - (Built-in in PLC CPU Unit) 1.1.521 Sysmac Studio Ver.1.15
NJ301-1100 - (Built-in in PLC CPU Unit) 1.1.521 Sysmac Studio Ver.1.15
Standard specifications
The EtherCAT communication of this system supports two types of communication: "Process data object communication
(cyclic communication)" and "Mailbox communication (acyclic communication)."
communication is 536 bytes for input and 532 bytes for output).
See "Typical setting procedure for EtherCAT" (Page 6-225) for more details.
If the SDO Download command is issued while the Parameter module is being written in the cyclic communication,
Point
memory area conflict may occur. Design the use of the SDO Download command to avoid the memory area conflict with
the cyclic communication.
Setting Address 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0bit
status (byte)
Bit 0000 BIT Reserved BIT Reserved BIT Reserved BIT Result OR BIT Result BIT Cmd BIT Cmd Error BIT Cmd
area 39.7 39.6 39.5 39.4 39.3 Ready 39.2 Ready 39.1 39.0 Complete
0001 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT READY4 BIT READY3 BIT READY2 BIT READY1
40.7 40.6 40.5 40.4 40.3 40.2 40.1 40.0
0002 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT ACK4 BIT ACK3 BIT ACK2 BIT ACK1
41.7 41.6 41.5 41.4 41.3 41.2 41.1 41.0
0003 BIT OUTPUT BIT OUTPUT BIT Reserved BIT Reserved BIT RUN BIT Reserved BIT ERROR BIT BUSY
Control and data output by EtherCAT
42.7 _IMG 42.6 _IMG 42.5 42.4 42.3 42.2 42.1 42.0
_STATUS _BUSY
0004 BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge
43.7 Value7 43.6 Value6 43.5 Value5 43.4 Value4 43.3 Value3 43.2 Value2 43.1 Value1 43.0 Value0
0005 BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge
44.7 Value15 44.6 Value14 44.5 Value13 44.4 Value12 44.3 Value11 44.2 Value10 44.1 Value9 44.0 Value8
0006 BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge
45.7 Value23 45.6 Value22 45.5 Value21 45.4 Value20 45.3 Value19 45.2 Value18 45.1 Value17 45.0 Value16
0007 BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge
46.7 Value31 46.6 Value30 46.5 Value29 46.4 Value28 46.3 Value27 46.2 Value26 46.1 Value25 46.0 Value24
0008 BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge
47.7 Value39 47.6 Value38 47.5 Value37 47.4 Value36 47.3 Value35 47.2 Value34 47.1 Value33 47.0 Value32
0009 BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge
48.7 Value47 48.6 Value46 48.5 Value45 48.4 Value44 48.3 Value43 48.2 Value42 48.1 Value41 48.0 Value40
0010 BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge
49.7 Value55 49.6 Value54 49.5 Value53 49.4 Value52 49.3 Value51 49.2 Value50 49.1 Value49 49.0 Value48
0011 BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge BIT Tool Judge
50.7 Value63 50.6 Value62 50.5 Value61 50.4 Value60 50.3 Value59 50.2 Value58 50.1 Value57 50.0 Value56
Setting Address 7bit 6bit 5bit 4bit 3bit 2bit 1bit 0bit
status (byte)
Bit 0000 BIT Reserved BIT Reserved BIT Reserved BIT Error reset BIT Result BIT Reserved BIT Reserved BIT Cmd
39.7 39.6 39.5 39.4 39.3 39.2 39.1 39.0
area request ack Request
Reserved 0001 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT TRG4 BIT TRG3 BIT TRG2 BIT TRG1
area 40.7 40.6 40.5 40.4 40.3 40.2 40.1 40.0
0002 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT TEST BIT EXT BIT RESET
41.7 41.6 41.5 41.4 41.3 41.2 41.1 41.0
0003 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved
42.7 42.6 42.5 42.4 42.3 42.2 42.1 42.0
0004 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved
43.7 43.6 43.5 43.4 43.3 43.2 43.1 43.0
0005 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved
Control and data output by EtherCAT
0006 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved
45.7 45.6 45.5 45.4 45.3 45.2 45.1 45.0
0007 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved
46.7 46.6 46.5 46.4 46.3 46.2 46.1 46.0
0008 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved
47.7 47.6 47.5 47.4 47.3 47.2 47.1 47.0
0009 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved
48.7 48.6 48.5 48.4 48.3 48.2 48.1 48.0
0010 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved
49.7 49.6 49.5 49.4 49.3 49.2 49.1 49.0
0011 BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved BIT Reserved
50.7 50.6 50.5 50.4 50.3 50.2 50.1 50.0
As the content of ExecCondNo is read into the controller only when there is a change in it, rewriting of the execute
Reference
condition number by issuing a command can also be used concurrently.
Data Settings
Data Configurations
Left-click [Set] to display the overview of the data
allocations in the EtherCAT cyclic data communication. For
a command returning a text string, the response data may
be large. When such command is used, ensure a certain
larger size for “Command Response Output Area”.
If the EtherCAT settings were changed, it is
Reference (Default: 24 byte) Clicking “View List” shows the detailed
necessary to restart the controller in order to
apply the settings. allocation statuses of the receive-data and send-data.
Decimal Point
Select the data representation method for when handling
the decimal numbers in the results data output or
command controls.
• Fixed-point (default): The original data is multiplied by
1000, and handled as a signed 32-bit integer data.
• Floating-point: The data is handled as 32-bit single-
precision floating decimal point data.
• For details on the data that are output in decimal in
Reference
results data output, see "Operation symbol/output
item comparison table (Measured Value/Judgment
Value)" (Page 3-61)
• For details on the data that handle decimal
numbers in command controls, see "Control/data
output via commands" (Page 6-2)
Enable Handshake
The Handshake keeps this controller from loading its
measurement result output data to the memory until it
acknowledges that the PLC has received the last output
data. When “Enable Handshake” box is checked, the
controller turns on “Result ready flag” after the completion
of a measurement result output. Upon reception of the
ready flag, the PLC reads the output data and turns on
“Result ack flag”. And then, the controller turns off its ready
flag after recognizing the ack flag of the PLC. The PLC
turns off “Result ack flag” to request the controller to load
next output data.
• Data output via EtherCAT is performed only in run mode. Data is not output in setup mode.
Reference
• With EtherCAT, images and other binary data cannot be output.
Control and data output by EtherCAT
b
a
Confirm that Result ack flag is turned off.*1
Turn off Result ack flag.
c c
Write data to ResultData and Result OR flag, The data is written to the ResultData and Result
Tool Judge Value. OR flag, Tool Judge Value.
d
d
Check the completion of data writing by
When the data writing is completed, turn on
confirming that Result ready flag changes to on,
Result ready flag.
and then reference the data.
e
e
Check completion of the data reading by
Turn on Result ack flag.
detecting that Result ack flag is turned on.
f f
Turn off Result ready flag. The change of Result ready flag to off is detected.
a
Turn off Result ack flag.
*1 When handshake is OFF, output data is overwritten and updated without checking whether the Result ack flag is OFF. To take the rise
of Result ready flag as a data reference synchronization signal, turn the Result ack flag ON at each output, which will turn the Result
ready flag OFF.
Timing Chart
햲 햴 햵 햶 햷 햲
• The "Result OR flag" is updated in coordination with results output with EtherCAT as the output destination. When the
Reference
"Result OR flag" is used, it is necessary to configure the output setting so that 1 or more data item is output via
EtherCAT.
• If asynchronous trigger capture (Page 3-19) is enabled, the output of judgment value and measurement result are
implemented by camera. In order to check which camera’s measurement results the output data are, change the settings so
that they include the CAM * Execute Status in the output data.
a
Write the command number to be executed to the
Command Number and the command parameter
to the Command Parameter.
c b
When the controller detects that the Command Confirm that Command ready flag is turned on
request flag is turned on, it reads the command and then turn on Command request flag.
from the Command Number and the command
parameters from the Command Parameter and
Confirm the start of command execution by
executes the command, and then it turns off the
detecting that Command ready flag has turned off.
Command ready flag.
d
When the command execution is completed,
the response data is written to Command Data The response data is written to the Command
and the error status is set in Command error flag. Data*1
e
e Confirm completion of the command execution by
detecting that Command complete flag has
Command complete flag turns on. turned on. Reference the response data and
g command execution result.
*1 In the case of a command for which there is no response data, data is not output in response to the Command Data.
When an error occurs, the command execution results are written to Command Result. (0: Success, <Error code>:
Reference
Failure). Error codes are as specified in "When an error occurs on command acceptance" (Page 6-3).
Timing Chart
햲햳햴 햵햶 햷햸
Flow of execute condition No. change using EtherCAT (Example of connection with
PLC EtherCAT module)
The controller changes the execute condition No. value using EtherCAT in the following manner.
The changed value is applied at the next measurement.
Control and data output by EtherCAT
This section explains an operation example that shows 2. Changing the C6920-0050 settings
how to connect the CV-X Series to a C6920-0050 made by
Beckhoff via EtherCAT and to establish communication.
1 Start the C6920-0050, and then copy the ESI file for the
CV-X Series "Keyence CV-X3h4h_CA-NEC20E.xml" to
Connecting to the CPU the folder shown below.
(In the following path, the "x" part of the "3.x" folder
1. Checking the CV-X Series global settings varies depending on the version of TwinCAT3 that you
are using. Change this part to match your
1 From [Global], select [Communications & I/O] -
environment.)
5 Click [OK].
6 Use an Ethernet cable to connect the C6920-0050 3. Checking the status of the cyclic
and the CV-X Series.
communication
In this example, we have connected the network cable
from the C6920-0050 to the IN port of the CA-NEC20E, Checking from the CV-X Series (CA-NEC20E)
as shown below.
8 Select [OK].
The [2 new I/O devices found] screen is displayed.
10Click [Yes].
The [Activate Free Run] screen is displayed.
11 Click [Yes].
Outputting measured values and judged 2. Using TwinCAT to check the data output
values by the CV-X Series.
1. Setting the output data (Output Settings) In [Solution Explorer], open [TwinCAT Project1] - [I/O] -
[Devices] - [Device 3 (EtherCAT)] - [Box1 (CV-
Use the output settings (Page 3-115) to output the
measured values and judged values. The example here X3h4h_CA-NEC20E)] - [Module1 (Result Data
explains the procedure for allocating the measured values 128Byte)], and then double-click [Result Data
and judged values below for output. 128Byte].
• Total status value A list of the byte data output by the CV-X Series is
• T100: Position Adjustment with Pattern Match (Shading) displayed.
(position X)
• T100: Position Adjustment with Pattern Match (Shading)
(position XY)
4 Left-click [OK].
The changed settings are saved.
Data and the error status is Confirm completion of the data within the CV-X Series that can be read
set in Command error flag. command execution by
detecting that Command are read automatically (this operation may take
complete flag has turned on. some time).
Command complete flag Reference the response data
turns on. and command execution result.
Index (Hexadecimal) Accessible address 3 Click the [+] next to index 200FH to expand the list.
2019H 0020 to 1019 The value of each address is displayed under [Value].
201AH 1020 to 2019
201BH 2020 to 2055
Troubleshooting
Error Message
a full buffer. via EtherCAT is full. • Clear the data in the output buffer using the 13802
TEST terminal (bit) or reset input.
The delay of the handshake When the EtherCAT handshake is ON, • Check that handshake is controlled properly.
control causes skipping of the delayed handshake caused results • Clear the data in the output buffer using the
13803
EtherCAT communication output via EtherCAT to be skipped. TEST terminal (bit) or reset input.
result output.
EtherCAT module The EtherCAT module was not • Check that the EtherCAT module is attached
disconnected. recognized and the controller cannot use correctly.
the EtherCAT communications. • Check that the EtherCAT module is not
13804
damaged.
• Do not attach or detach the EtherCAT module
while the controller and unit are powered on.