Documente Academic
Documente Profesional
Documente Cultură
CV-X Series
Easy Setup Guide
RS-232C
Non-procedural communication
Contents
Product names, etc. noted in this document are registered trademarks or trademarks of their respective companies.
The ™ mark and ® mark have been omitted in this manual.
Connector: RJ-11
Standard: EIA RS-232 compliant modem definition
From Device Manager* select "Ports (COM & LPT)". Right-click on the COM to be connected,
and select "Properties" from the right-click menu.
370GB
KEYENCE CORPORATION. Vision System Division -3- www.keyence.com
3 Configure the CV-X communication settings.
Select
Global
↓
Communications & I/O
↓
RS‐232C
Tera Term is a free software that allows you to test non‐procedural communication. Refer to the
following website for more information. (As of December 2013)
http://www.vector.co.jp/soft/win95/net/se320973.html
10 When data needs to be output, select the required items for RS-232C (Non-Procedural) in Output Settings.
T1 command is issued
T1 is received from CV‐X
Then data is output.
This example shows data for the following
measurements:
‐ Edge X Position of +0000.000
‐ Area of 120288
Data will be output according to the format set in
the CV‐X output settings, and the same number of
digits as in the preview will be output.
12 Communication content can be checked even in the CV-X using its RS-232C monitor.
1. Commands that can be executed using the command only (no parameter required)
Example) Save program (SS), Reset (RS)
Use the following as a reference together with the "Control/data output via commands" section in the User's
Manual.
2 1. Commands that can be executed using the command only (no parameter required)
Example: The Change programs (PW) command is executed in the following way.
When PW, the SD Card No., and the Program Setting No. are sent as the
command, the Program Settings are changed. Then, CV‐X replies with PW.
The following is an example of changing to Program Setting No. 1 of SD1.
Example: The Read execute condition (EXR) command is executed in the following way.
When EXR is sent, CV‐X replies with EXR and the execute condition No.
Example: Triggers executed by commands are executed in the following way. Trigger 1 is executed in this example.
When no output items are set in RS‐232C (Non‐Procedural) in Output Settings and T1 is sent, a trigger is
input, and only T1 is received as a reply. When output items are set in Output Settings, T1 is received as a
reply, and then the required data are output.
When parameters are required for a command (E.g. the PW command), the parameters must be separated
using commas.
‐ In example A, the command is successful, as the commas separate the parameters correctly, and
correct parameters are specified.
‐ In example B, error code 02 (the received command is not available) has been received, as the command
contains no commas and could not be processed.
‐ In example C, error code 22 (parameter error) has been received, as 1000 was specified in the command
for a parameter with a specifiable range of 0 to 999, and the command could not be processed.
A
B
C
- When connecting to SYSMAC CJ/CS1 We recommend using PLC-Link to communicate with PLC.
(for 9 pin connectors) OP-84384+OP-26487
What is PLC-Link?
PLC-Link is a function that allows commands to be
executed and results to be output by CV-X directly
reading from and writing to the PLC data memory
(data register).