Yokogawa UT350L Operating Manual

User’ s Manual
Model UT350L Limit Controller
Communication Functions User’s Manual
IM 05D01D21-10E
IM 05D01D21-10E
Blank Page
<Toc> <Rev>

Introduction

This users manual describes the communication functions of the UT350L controller and provides information on how to create communication programs.
The UT350L controller use the following communication protocols:
1) PC link communication protocol
2) Ladder communication protocol
The UT350L controller cannot communicate with a host device that uses a communication protocol other than the above.
Y ou are required to understand the communication specifications of host devices, as a background knowledge, in regard to their communication hardware, language used for creating communication programs, and so on.
* Host devices: PCs, PLCs (sequencers), graphic panels, and others
Intended Readers
i
This manual is intended for people familiar with the functions of the UT350L controller such as control engineers and personnel in charge of the maintenance of instrumentation and control equipment.
Related Documents
The following user’s manuals all relate to the communication functions of the UT350L controller. Read them as necessary. The codes enclosed in parentheses are the document numbers.
UT350L Users Manual -Installation, Initial Setting, and so on.
(IM 05D01D21-01E to 03E)
Explains the basic operation of the UT350L controller .
Regarding This Users Manual
(1) This manual should be provided to the end user. Keep an extra copy or copies of the
manual in a safe place.
(2) Read this manual carefully to gain a thorough understanding of how to operate this
product before starting operation.
(3) This manual describes the functions of this product. Yokogawa Electric Corporation
(hereinafter simply referred to as Yokogawa) does not guarantee the application of these functions for any particular purpose.
(4) Under absolutely no circumstances may the contents of this manual, in part or in
whole, be transcribed or copied without permission. (5) The contents of this manual are subject to change without prior notice. (6) Every effort has been made to ensure that the details of this manual are accurate.
However, should any errors be found or important information be omitted, please
contact your nearest Yokogawa representative or our sales office.
Media No. IM 05D01D21-10E (CD) 2nd Edition : Jul. 2004 (YK) All Rights Reserved Copyright © 2001, Y okogawa Electric Corporation
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
<T oc> <Rev>
Safety Precautions
The following symbol is indicated on the controller to ensure safe use.
This symbol on the controller indicates that the operator must refer to an explanation in the users manual in order to avoid the risk of injury or death of personnel or damage to the instrument. The manual describes how the operator should exercise special care to avoid
CAUTION
electric shock or other dangers that may result in injury or loss of life.
The following symbols are used in the hardcopy users manuals and in the users manual supplied on the CD-ROM.
NOTE
Indicates that operating the hardware or software in a particular manner may damage it or result in a system failure.
ii
IMPORTANT
Draws attention to information that is essential for understanding the operation and/or features of the controller.
Force Majeure
(1) Y okogawa assumes no liability to any party for any loss or damage, direct or indirect,
caused by the use or any unpredictable defect of the product. (2) No portion of the software supplied by Yokogawa may be transferred, exchanged,
leased or sublet for use by any third party without the prior permission of Yokogawa. (3) Be sure to use the spare parts approved by Yokogawa when replacing parts or
consumables. (4) Use this software with one specified computer only . You must purchase another copy
of the software for use on each additional computer. (5) Copying this software for purposes other than backup is strictly prohibited. (6) Store the floppy disk(s) (original medium or media) containing this software in a
secure place.
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
<Toc> <Rev>
Regarding Protection, Safety , and Prohibition Against Unauthorized
Modification
(1) In order to protect the product and the system controlled by it against damage and
ensure its safe use, make certain that all of the instructions and precautions relating to
safety contained in this document are strictly adhered to. Yokogawa does not guaran-
tee safety if products are not handled according to these instructions. (2) Modification of the product is strictly prohibited. (3) Reverse engineering such as the disassembly or decompilation of software is strictly
prohibited.
iii
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
Blank Page
<Int> <Rev>
Model UT350L Limit Controller Users Manual
Introduction........................................................................................................... i
1. Communications Overview.................................................................... 1-1
1.1 Interface Specifications.................................................................................. 1-1
2. Setup ....................................................................................................... 2-1
2.1 Setup Procedure ............................................................................................. 2-1
2.2 Wiring for Communication ............................................................................. 2-2
2.3 Notes on Setting Communication Parameters.............................................. 2-4
Toc-i
IM 05D01D21-10E 2nd Edition

CONTENTS

2.2.1 Wiring to a Personal Computer ......................................................... 2-2
2.2.2 Wiring to a PLC (Sequencer) or Graphic Panel ................................. 2-3
2.3.1 Procedure to Set Communication Parameters .................................. 2-4
2.3.2 Description of Communication Parameters ....................................... 2-4
3. PC Link Communication ........................................................................ 3-1
3.1 Overview.......................................................................................................... 3-1
3.1.1 Configuration of Commands ............................................................. 3-2
3.1.2 Configuration of Response ............................................................... 3-4
3.2 Communication with Host Device.................................................................. 3-5
3.2.1 List of Commands............................................................................. 3-6
3.2.2 Specifying Broadcast ........................................................................ 3-7
3.2.3 Commands....................................................................................... 3-8
3.2.4 Response Error Codes ................................................................... 3-21
4. Ladder Communication.......................................................................... 4-1
4.1 Overview.......................................................................................................... 4-1
4.1.1 Configuration of Commands ............................................................. 4-2
4.1.2 Configuration of Response ............................................................... 4-3
4.2 Communication with PLC............................................................................... 4-4
4.2.1 Reading Data ................................................................................... 4-5
4.2.2 Writing Data...................................................................................... 4-6
4.2.3 Response Error Codes ..................................................................... 4-7
4.3 Communication with MELSEC ....................................................................... 4-8
4.3.1 Preparing for Communication ........................................................... 4-9
4.3.2 Wiring ............................................................................................... 4-9
4.3.3 Setting Communication Specifications ............................................ 4-10
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
<Int> <Rev>
5. Functions and Use of D Registers ......................................................... 5-1
Toc-ii
5.1 Overview.......................................................................................................... 5-1
5.2 Interpretation of D Register Tables ................................................................ 5-1
5.3 Classification of D Registers.......................................................................... 5-2
5.4 Process Data and User Area .......................................................................... 5-3
5.4.1 Process Data Area (Read-only) ........................................................ 5-4
5.4.2 User Area ......................................................................................... 5-5
5.5 Alarm Setpoint, Bias, and Filter Parameters ................................................. 5-6
5.5.1 Data Area for Alarm Setpoint, Bias, and Filter Parameters ................ 5-7
5.6 SP Parameter .................................................................................................. 5-8
5.6.1 Data Area for SP Parameter ............................................................. 5-9
5.7 Alarm Type, Limit Control Type Selection, and
Retransmission Parameters......................................................................... 5-10
5.7.1 Data Area for Alarm Type, Hysteresis, Limit Control Type Selection
Parameters..................................................................................... 5-12
5.7.2 Data Area for Retransmission and Key-lock Parameters................. 5-12
5.8 PV Input, Control Output, and Communication Parameters ...................... 5-13
5.8.1 Data Area for PV Input, and Communication Parameters................ 5-14
6. Functions and Use of I Relays ............................................................... 6-1
6.1 Overview.......................................................................................................... 6-1
6.2 Status I Relays ................................................................................................ 6-1
6.3 User Area ......................................................................................................... 6-2
Revision Information ............................................................................................ i
IM 05D01D21-10E
2nd Edition: Jul. 30, 2004-00
<Toc> <1. Communications Overview>

1. Communications Overview

The UT350L controllers have an RS-485 serial communication interface, through which data exchange is performed with a device such as a personal computer , PLC (sequencer), and graphic panel.
The following five communication protocols are supported.
Table 1.1 Communication Protocols
Communication protocol Protocol specification
PC link communication
Ladder communication
Table 1.2 Connectable Devices
Communication protocol Connectable device Requirements
PC link communication
Ladder communication
Without sum check With sum check Handshaking
Personal computer Graphic panel PLC (sequencer) PLC (sequencer)
RS-232C/RS-485 converter
­With serial communication module With ladder communication module
1-1

1.1 Interface Specifications

Table 1.3 RS-485 Interface
Interface Baud rate Other specifications Protocols available
Standard RS-485
Communication
system
4-wire, half-duplex
600, 1200 2400, 4800 9600bps
2-wire, half-duplex
- Asynchronous (start-stop)
- Handshaking
- Maximum communication distance: 1200 m
- Maximum number of connectable devices: 31
- Start bit: 1
- Data length: 8 or 7 bits
- Parity: No parity, even, odd
- Stop bit: 1 or 2
PC link communication
Ladder communication
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
Blank Page
<Toc> <2. Setup>

2. Setup

This chapter describes the procedure to set up the communication functions and also refers to some notes on wiring and communication parameters.

2.1 Setup Procedure

Set up the communication functions of the UT350L controller as follows:
Connect a host device and a UT350L controller. (See section 2.2.)
Set up the communication parameters of the UT350L controller. (See section 2.3.)
Create communication programs for the host device to perform communication.
Create communication programs referring to the documentation of each host device.
*
In this manual, “host devices” generically denotes PCs, PLCs (sequencers), and graphic panels.
*
2-1
IM 05E01B02-41E 2nd Edition: Jul. 30, 2004-00
<T oc> <2. Setup>

2.2 Wiring for Communication

Connect the UT350L controller and the host device for communication. The wiring proce­dures and precautionary notes are as follows.
NOTE
T o avoid an electrical shock, be sure to turn off the power supply source to the equip­ment involved before you start wiring.
Use crimp terminals at cable ends.
Before you start wiring, read the users manual of each device.

2.2.1 Wiring to a Personal Computer

Since general personal computers cannot directly be connected to the RS-485 interface, wiring must be provided via an RS-232C/RS-485 converter. The following figures show the wiring for 4-wire connection and 2-wire connection.
2-2
4-wire connection
PC
RS-232C straight cable
2-wire connection
PC
RS-232C straight cable
Terminating resistor
2201/4W
JIS Class 3 grounding (grounding resistance
of 100 or less)
Terminating resistor
2201/4W
JIS Class 3 grounding (grounding resistance
of 100 or less)
Z-101HE UT350L UT350L
TD(+) TD(-) RD(+) RD(-) SHIELD
Communication cable
JIS Class 3 grounding (grounding resistance
of 100 or less)
ML1- UT350L UT350L
B(+)
5
A(-)
3
SG
4 6
Communication cable
JIS Class 3 grounding (grounding resistance
of 100 or less)
23 24 25 26 27
Communication cable
JIS Class 3 grounding (grounding resistance
of 100 or less)
23 24 25 26 27
Communication cable
JIS Class 3 grounding (grounding resistance
of 100 or less)
SDB(+) SDA(-) RDB(+) RDA(-)
SG
SDB(+) SDA(-) RDB(+) RDA(-)
SG
23 24 25 26 27
23 24 25 26 27
Terminating resistor
2201/4W
Terminating resistor
2201/4W
Note: Z-101HE and ML1- are the converters of Sharp Corporation and Y okogawa Electric Corporation, respectively . You can also use other RS-232C/RS-485 converters. Before you use another converter, check its electrical specifications.
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
<Toc> <2. Setup>

2.2.2 Wiring to a PLC (Sequencer) or Graphic Panel

Since general PLCs (sequencers) and graphic panels have an RS-485 interface, they can be directly connected to a UT350L controller. If your PLC (sequencer) or graphic panel has an RS-232C interface, see subsection 2.2.1.
2-3
4-wire connection
2-wire connection
PLC or graphic panel UT350L UT350L
RDB(+)
Terminating
resistor
2201/4W
JIS Class 3 grounding (grounding
resistance of 100 or less)
PLC or graphic panel UT350L UT350L
Terminating
resistor
2201/4W
JIS Class 3 grounding (grounding
resistance of 100 or less)
RDA(-) SDB(+) SDA(-) SG
Communication cable
B(+) A(-)
SG
Communication cable
23 24 25 26 27
Communication cable
JIS Class 3 grounding (grounding
resistance of 100 or less)
23 24 25 26 27
Communication cable
JIS Class 3 grounding (grounding
resistance of 100 or less)
SDB(+) SDA(-) RDB(+) RDA(-)
SG
SDB(+) SDA(-) RDB(+) RDA(-)
SG
23 24
Terminating resistor
25 26 27
23 24 25 26 27
2201/4W
Terminating resistor
2201/4W
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
<T oc> <2. Setup>

2.3 Notes on Setting Communication Parameters

This section describes the parameters that set up the communication functions and their setting ranges.
NOTE
The communication specifications of both the UT350L controller and the host device must be the same. Check the communication specifications of the host device first, then set up the communication parameters of the UT350L controller .

2.3.1 Procedure to Set Communication Parameters

For the operation procedure, see the Users Manual of UT350L controller . The UT350L are shipped from the factory with the following communication specifications.
Table 2.3.1 Protocol-by-Protocol Default Parameter Settings
2-4
Communication protocol PSL BPS
PC link communication (without sum check) PC link communication (with sum check) Ladder communication
Note: Circled numbers denote fixed values (i.e., the parameters can neither be shown nor changed).
0 1 2
9600 9600 9600
PRI
EVEN EVEN EVEN

2.3.2 Description of Communication Parameters

Table 2.3.2 Communication Parameters of UT350L controller
Parameter name
Protocol selection
Address Baud rate Parity Stop bit Data length Minimum response time
*1: Data length is fixed at 8 bits for ladder communication is selected.
Parameter code
PSL
ADR
BPS
PRI
STP
DLN
RP.T
PC link communication
Ladder communication
600, 1200, 2400, 4800, 9600 (bps)
NONE (no parity), EVEN, ODD
Setting range
0: Without sum check 1: With sum check
2: Ladder communication
1 to 99
1, 2 (bit)
1
*
7, 8 (bit)
0 to 10 (×10 ms)
STP
1 1 1
DLN
8 8 8
Default
0
1
9600
EVEN
1 8 0
1) Protocol selection (PSL)
Set the same communication protocol as that of the host device to be connected to. The UT350L controller supports PC link and ladder communication protocols, which are specific to UT350L controller .
2) Baud rate (BPS)
Set the same baud rate as that of the host device to be connected. (Otherwise, proper communication cannot be achieved.) The unit of baud rate is bps (bits per second).
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
<Toc> <2. Setup>
3) Address number (ADR)
Set the address number of the UT350L controller to one that is not being used by another controller. An address number of 1 to 99 can be assigned in any order. Note that the num­ber of UT350L controllers that can be connected to a single communication port is limited to 31.
Example of connecting four UT350L controllers to a host device with address numbers of 1, 50, 10, and 20:
PC
Max. 1200 m; the maximum number of slave units: 31
2-5
ADR=1 ADR=50 ADR=10 ADR=20
4) Parity (P ARI)
Set the handling of parity to be carried out when data is sent or received. Set the same parity state as that of the host device to be connected.
5) Stop bit (STP)
Set the same stop bit as that of the host device to be connected.
6) Data length (DLN)
Set the same data length as that of the host device to be connected. (When ladder commu­nication is selected, the data length is fixed.)
7) Minimum response time (RP.T)
Set the time taken to respond to the host device after the UT350L controller receives transmission data from it. The unit is 10 ms. The response time will be communication processing time + the set value of RP.T X 10 milliseconds.
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
Blank Page
<Toc> <3. PC Link Communication>

3. PC Link Communication

3.1 Overview

PC link communication protocol is one of the protocols used to communicate with devices such as PCs, PLCs (sequencers), and graphic panels. Via this communication protocol, these devices can exchange data with a UT350L controller by reading/writing the controllers internal registers (D registers and I relays).
Hereafter, PCs, PLCs (sequencers), and graphic panels shall be referred to as “host devices.
In PC link communication, a host device identifies UT350L controller with a communication address, which ranges from 1 to 99. However, broadcasting, which requires no address number, is possible with some of the commands. For more information, see subsection
3.2.2.
3-1
PC
Max. 1200 m; the maximum number of slave units: 31
UT350L controllers
Figure 3.1 Connection of PC Link Communication
The next section will discuss the configuration of commands and responses.
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
<T oc> <3. PC Link Communication>

3.1.1 Configuration of Commands

Commands sent from a host device to a UT350L controller consist of the following ele­ments.
3-2
Number of bytes
Element
1
STX
(1) (8) (9)(2) (3) (4) (5) (6) (7)
2
Address number
(ADR)
2
CPU number
01
1
Time to wait
for response
0
3
Command
Variable length
Data corresponding
to command
Checksum
2
1
ETX1CR
(1) STX (Start of Text)
This control code indicates the start of a command. The character code is CHR$(2).
(2) Address Number (01 to 99)
Address numbers are used by a host device to identify which UT350L controller to commu­nicate with. (ID number of the UT350L)
Adress Number = UT350L parameter (ADR) value
(3) CPU Number
This number is fixed to 01.
(4) Time to W ait for Response
This is fixed to 0.
(5) Command (See subsection 3.2.1.)
Specify a command to be issued from the host device.
(6) Data Corresponding to Command
Specify an internal register (D register or I relay), number of data items, UT350L parameter values, or others.
(7) Checksum
In PC link communication with sum check, the ASCII codes of the text between STX and the checksum are converted into hexadecimal values and added on a byte basis. Then the lowermost byte of the added results is turned into ASCII code, and its lower byte is used as the checksum.
This 2-byte space is unnecessary for PC link communication without sum check.
(8) ETX (End of Text)
This control code indicates the end of a command string. The character code is CHR$(3).
(9) CR (Carriage Return)
This control code marks the end of a command. The character code is CHR$(13).
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
<Toc> <3. PC Link Communication>
NOTE
The control codes STX, ETX, and CR in commands are indispensable. Do not miss any of them when you create a communication program for PC link communication. A communi­cation failure will result if any of them are omitted or if the order is incorrect.
Data Forms of Commands
The table below shows the data forms of D registers and I relays.
Table 3.1 Data Forms
Data type Data content Data form
PV high and low limits, target setpoints, and others
Bias, deviation alarms, and others Limit control types, alarm types, and others
* Parameter list of UT350L controller Users Manual for information about data form.
Measuring range (EU) data
Measuring range span (EUS) data Seconds, absolute values, and data
without unit*
Numeric data excluding the decimal point
Numeric data excluding the decimal point Absolute value excluding the decimal point
3-3
Command Format for Communication
Example: When setting a target setpoint 50.0 to a UT350L controller , the host device sends the value 500 as command data without the decimal point (this is true for both settings 5.00 or 500).
Data to be sent from the host device: 500
Command data: 500
UT350L side
Target setpoint: 50.0
* The position of the decimal point for 500 is determined by the DP (decimal point position) parameter of the UT350L controller.
Response data from UT350L: 500
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
<T oc> <3. PC Link Communication>

3.1.2 Configuration of Response

Responses from a UT350L controller with respect to a command sent from the host device consist of the elements shown below, which dif fer depending on the condition of communi­cation - normal or failure.
1) With Normal Communication
When communication is carried out normally , the UT350L controller returns the character string OK and, in response to read commands, also returns read-out data.
3-4
Number of bytes
Element1STX
Address number (ADR)2CPU number:012OK
2
Variable length
Parameter data
2
Checksum
2) In the Event of Failure
If communication is carried out abnormally , the UT350L controller returns the character string ER and error codes (EC1 and EC2). (See subsection 3.2.4, Response Error Codes.)
No response is made in case of an error in address number specification or CPU number specification.
If a UT350L controller cannot receive an ETX contained in a command, a response may not be made.
* As a measure against these situations, provide a timeout processing in the communica-
tion functions or communication programs of the host device.
Number of bytes
Element
1
STX
2
Address number
(ADR)
2
CPU number:
01
2ER2
EC12EC23Command2Checksum
1
ETX1CR
1
ETX1CR
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
<Toc> <3. PC Link Communication>

3.2 Communication with Host Device

In PC link communication, when specifying D registers or I relays (internal registers of UT350L controller), you can use the numbers as is. The numbers of these internal registers are in the following format:
D registers: D**** (****: numeric value)
I relays : I**** (****: numeric value)
Host devices to be connected to a UT350L controller are those capable of handling the PC link communication protocol.
(1) Connectable graphic panels
Graphic panels that can be connected to a UT350L controller are listed below . However, it may be possible to connect graphic panels other than the ones listed below .
Table 3.2 List of Graphic Panels Connectable
Product Name Name Remarks
Pro-face by Digital Electronics Corporation
Note: For more information about Digitals graphic panels, contact Digital Electronics Corporation. (Be careful because the display device differs depending on the model.)
GP70 series GP-J series GP-230 series GP-430 series GP-530 series
Graphic control panel High-speed graphic control panel Medium-size graphic control panel Advanced, high-speed graphic control panels
3-5
(Note)
(2) Communication with F A-M3 with UT-link module
No ladder communication program is required to communicate with FA-M3 with UT-link module (Y okogawa PLC). The UT -link module’s function offers 2 modes, in which users can exchange data without paying attention to the communication procedure. (For more infor­mation, see the users manual of UT-link module IM 34M6H25-01E.”)
User-specifiable mode: Always reads/writes the user-specified devices* of the UT350L controller .
Command mode: Accesses the devices* of the UT350L controller only when neces­sary.
*:Device here denotes the internal registers of the UT350L controller (D registers and I relays).
IM 05D01D21-10E 2nd Edition: Jul. 30, 2004-00
Loading...
+ 49 hidden pages