Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Manual
UT Link Module
IM 34M06H25-01E
Applicable Modules:
Model Code Model Name
F3LC51-2N UT Link Module
IM 34M06H25-01E
Yokogawa Electric Corporation 3rd Edition
Blank Page
i
Applicable Product
Range-free Controller FA-M3
- Model : F3LC51-2N
- Name : UT Link Module
Precautions
About This Manual
- This Manual should be passed on to the end user.
- This manual is an essential part of the product; keep it in a safe place for future
reference.
- This product is designed to be used by a person with specialized knowledge.
- Before using the product, read this manual thoroughly to have a clear understanding
of the product.
- This manual explains the functions of this product, but there is no guarantee that
they will suit the particular purpose of the user.
- Under absolutely no circumstances may the contents of this manual be transcribed
or copied, in part or in whole, without permission.
- The contents of this manual are subject to change without prior notice.
- Every effort has been made to ensure accuracy in the preparation of this manual.
However, should any errors or omissions come to the attention of the user, please
contact the nearest Yokogawa Electric representative or sales office.
Safety Symbols
- ”Handle with care.” This symbol on the product indicates that the operator must
follow the instructions laid out in this user's manual to avoid the risk of personnel
injuries, fatalities, or damage to the instrument.
WARNING
- Draws attention to information essential to prevent electrical shock or other dangers
that may result in injury or the loss of life.
CAUTION
- Draws attention to information essential to prevent hardware damage, software
damage or system failure.
NOTE
- Draws attention to information essential to the understanding of operation and
functions.
Authorized Representative:
- The Authorized Representative for this product in the EEA is:
Yokogawa Europe B. V.
Euroweg 2, 3825 HD Amersfoort, The Netherlands
Do not touch components in the unit:
- Do not remove the back cover of the unit. Doing so may cause a failure.
Product Category
With reference to the equipment types in the WEEE directive, this product is classified
as a “Monitoring and Control instruments”.
When disposing of products in the EU, contact your local Yokogawa Europe B. V. office.
Do not dispose of this product in domestic household waste.
How to dispose the batteries
This is an explanation about the new EU Battery Directive. This directive is only valid in
the EU.
Batteries are included in some modules of this product. The procedure is different when
the user can remove or cannot remove.
Note: With reference to Annex II of the new EU Battery Directive, the above symbol
indicates obligatory separate collection.
Introduction
Overview of the Manual
This manual explains the UT Link Module, which can be used to configure an FA-M3
system.
Trademarks
The trade names and company names referred to in this manual are either trademarks
or registered trademarks of their respective companies.
FA-M3
UT Link Module
Content
Applicable Product ....................................................................................i
Important ...................................................................................................ii
Introduction ...............................................................................................x
Copyrights and Trademarks .................................................................. xii
1. Overview ....................................................................................... 1-1
1.1 Overview ................................................................................................... 1-1
1.2 External Instruments that can be Connected ....................................... 1-1
2. Specifications ............................................................................... 2-1
2.1 Model Names and Specification Codes ................................................ 2-1
2.2 Compatibility with CPU Modules ........................................................... 2-1
2.3 Standard Specifications .......................................................................... 2-1
2.4 Components and their Functions .......................................................... 2-2
2.5 External Dimensions and Weight .......................................................... 2-3
2.6 Connecting to External Instruments ..................................................... 2-4
2.7 Setting Communication Conditions ...................................................... 2-7
2.7.1 Recommended Communication Conditions ................................ 2-7
2.7.2 Setting Up the UT Link Module .................................................... 2-7
2.7.3 Self Diagnosis .............................................................................2-11
2.8 Attaching and Detaching Modules....................................................... 2-13
3. Types of Communication Methods ............................................. 3-1
3.1 Automatic Mode, Manual Mode and Command Communication ....... 3-1
3.1.1 Automatic Mode and Manual Mode ............................................. 3-1
3.1.2 Command Communication .......................................................... 3-3
3.2 Register Configuration and Signal Path of the UT Link Module ........ 3-4
3.3 Sample D Register Map of an External Instrument .............................. 3-7
4. Refresh Station Designation in Automatic Mode and
Manual Mode ................................................................................ 4-1
4.1 When Refresh Station Designation is Not Performed in
Automatic Mode....................................................................................... 4-1
4.2 Refresh Station Designation .................................................................. 4-2
5. Details of Automatic Mode .......................................................... 5-1
5.1 Startup Procedure ................................................................................... 5-1
5.2 Input/Output Relays Used in Automatic Mode ..................................... 5-2
5.3 Reading and Writing Data in Automatic Mode ..................................... 5-4
1. Overview
1.1 Overview
The UT Link Module (F3LC51-2N) connects and communicates with external
instruments, which support the FA-M3 personal computer link protocol. Section 1.2,
“External Instruments that can be Connected” lists some instruments which support the
PC link protocol. Connecting these to the UT link module allows users to exchange data
without knowledge of communications protocols and commands.
Note
- The information herein may be modified without notification. For details on the
external instruments, contact Yokogawa Electric Corporation.
- When performing configuration, note that communication functions of many external
instruments for connecting to the UT link module are given only as supplementary
specifications.
Note
- The information herein may be modified without notification. For details on external
instruments, contact Yokogawa M&C Corporation.
- When performing configuration, note that communication functions of many external
instruments for connecting to the UT link module are given only as supplementary
specifications.
Note
- Instrument names of the external instruments are represented as D registers and I
relays.
These are separate from the D registers and I relays of the FA-M3 sequence CPU.
They are clearly differentiated in this manual and should not be confused during
reading.
- Registers of the UT link module are represented as numbers, known as “device
position numbers”.
- Registers of the UT link module and external instruments consist of 1 word
(16 bits) per register.
2. Specifications
2.1 Model Names and Specification Codes
Table 2.1 Model Names and Specification Codes of the UT Link Module
Basic
Model Specification
Specification Style Code Remarks
Name Code Suffix
Code
F3LC51 -2N ….. ….. One RS-422A / RS-485 port
Function Specifications
Table 2.3 Function Specifications of the UT Link Module
Item Description Setting Switch*2 Factory Setting
Interface EIA RS-422A/RS-485 Compliant
Transmission mode Half-duplex, two-wire or four-wire
Synchronization Asynchronous
Transmission speed (bps) 300/600/1200/2400/4800/9600/19200/31250/38400 9600
Transmission media Shielded twisted-pair cable (AWG20 - 16)
Transmission distance 1200 m max. *1
Number of connected
32 stations max. *1
stations
220 (built-in, termination is specified using a
Terminating resistor
switch)
Number of ports 1 port (insulated)
Start bit: 1
Data length: 7/8 8
Data format
Parity bit: none / even / odd Even
Stop bit: 1/2 1
Parity check
Error detection
Checksum: yes / no no
Xon/Xoff control None
Protocol Proprietary protocol
Ending character Yes / no yes
Access Range All control data
Transmission speed, data format, checksum and
Setup items
ending character
Number of modules Max. 4
Current consumption 290 mA
External connection 6-point terminal block, M3.5 screw
External dimensions 28.9(W)×100(H)×83.2(D)mm*3
Weight 130g
*1: The specifications of the external instruments may impose further constraints.
*2: Items marked with ‘’ may be defined by the user using switches.
*3: Dimensions exclude protrusions (Refer to External Dimensions figure for details)
TERMINATOR
2- 4-WIRE Terminating resistor switch:
OFF Specify a 4-wire or 2-wire
SD A system to terminate.
SD B
RD A
SHIELD
O 1
F 2
F 3
4
Data format swit ch
5
6
Defines the format of
7 communication data.
5
Mode switch
Sets the communication mode.
Note: This figure is drawn with
the panel cover removed.
Figure 2.2 Right Side View of the UT Link Module (REV:04:07 and earlier)
Front Rear
SW1
4
Transmission spe ed switch
0
C
Sets the transmission
SW3 SW2 speed of the module.
O 1 O 1
F 2 F 2
F 3
4
F 3
4
Data format swit ch
5
6
5
6
Defines the format of
7
8
7
8
communication data.
Mode switch
Sets the communication mode.
Note: This figure is drawn with
the panel cover removed.
Figure 2.3 Right Side View of the UT Link Module (REV:05:08 and later)
Unit: mm
100
CE Compliance Grounding
To ensure compliance to CE Marking for a system incorporating this module, use a
shielded cable for connecting to the module. Peel off part of the insulation of the
shielded cable to expose the shield, and apply an FG clamp to the shield to secure and
ground it.
SD A SD A Send Data A →
RD B
RD B Receive Data B ←
SG SG Grant Signal
SHIELD SHIELD
Note
Use the built-in terminating resistor in the module on the F3LC51-2N side.
On the external instrument side, some external instruments may also have a built-in
terminating resistor.
Note
- On some external instruments, the signal polarities (A/B, +/-) may be reverse to
what is shown above. If a framing error occurs during communication, try to change
the connections appropriately for reversed polarities.
- On some external instruments, the terminal markings may be different from what is
shown above. Perform the connections accordingly.
*: Signal polarities and terminal markings are not defined in the RS-422/485 standard.
TERMINATOR
2- 4-WIRE
OFF F_UT51_1.VS
D
CAUTION
Always turn off the power to the module before attaching or detaching the module.
Front Rear
O 1
F 2
F 3
4
Data format swit ch
5
6
Defines the format of
7 communication data.
5
Mode switch
Sets the communication mode.
Note: This figure is drawn with
the panel cover removed.
Figure 2.10 Right Side View of the UT Link Module (REV:04:07 and earlier)
SW1
4
Transmission spe ed switch
8
C
Sets the transmission
SW3 SW2 speed of the module.
O 1 O 1
F 2 F 2
F 3
4
F 3
4
Data format swit ch
5
6
5
6
Defines the format of
7
8
7
8
communication data.
Mode switch
Sets the communication mode.
Note: This figure is drawn with
the panel cover removed.
Figure 2.11 Right Side View of the UT Link Module (REV:05:08 and later)
F_UT51_1.VS
D
Figure 2.12 Data Format Switch Setting
5 6
3 2400
9
7 8
4 4800
5 9600 Factory Setting
6 19200
7 31250
8 38400
9 (Unused)
5 6
3 (Unused)
4 (Unused)
7 8
5 (Unused)
6 (Unused)
7 Normal operation Factory setting
8 (Unused)
9 (Unused)
CAUTION
For REV:04:07 and earlier modules, do not use setting values other than “0” or “7”. If a
value other than "0" or "7" is set, the module will not start correctly.
F_UT51_1.VS
D
Figure 2.16 Mode switch Setting (REV:05:08 and later)
CAUTION
For REV:05:08 and later modules, leave DIP Switch, except 7, unchanged at its factory
setting. If either DIP switch 1-6 or 8 is turned ON, the module will not start correctly.
2.7.3 Self-Diagnosis
The UT link module features self-diagnosis functions for checking the module hardware.
To perform self-diagnosis, follow the steps below:
(1) Turn off the FA-M3 power supply.
(2) Detach the UT link module from the base module.
(3) Change the mode switch on the right side of the module for self-diagnosis.
For REV:04:07 and earlier modules, set Rotary Switch to 0.
For REV:05:08 and later modules, set 8-bit DIP Switch to OFF for all bits.
(4) Set the transmission speed switch to 9600 bps (position 5).
(5) Attach the module to the base module with wiring as shown in Figure 2.19.
(6) Turn on the power supply of the FA-M3 to start self-diagnosis.
Front Rear
5
5
O 1
F 2
F 3
4
5
6
7
5
Mode switch
5
Front Rear
4 C
0
SW3 SW2
O 1 O 1
F 2 F 2
F 3 F 3
4 4
5 5
6 6
7 7
8 8
Mode switch O 1
2
F
F 3
4
5
6
7
8
SD A
SD B
RD A
RD B
SG
SHIELD
The self-diagnosis test results are reflected on the UT link module RDY LED as shown
in Table 2.6.
CAUTION
After completing the self-diagnosis test, be sure to set the restore the transmission
speed switch to its original position.
For REV:04:07 and earlier modules, set mode switch to 7.
For REV:05:08 and later modules, set mode switch to ON for bit 7.
Then, turn on the power to start-up the system.
CAUTION
Always switch off the power before attaching or detaching a module.
Base module
Anchor pin
This module
F01.VSD
CAUTION
DO NOT bend the connector on the rear of the module by force during the above
operation. If the module is pushed with improper force, the connector may bend causing
an error.
Screw Required
M4-size binder screw 12 to 15 mm long
(Or 14 to 15 mm if fitted with a washer)
F02R1.VSD
F_UT51_1.VS
Note
When using automatic mode together with command communication, start command
communication after the status bit for the station in the Remote Station Status storage
area (data position numbers: 3839, 3840*1) has turned on. Starting command
communication before the refresh station initial check for this station has been
completed in automatic mode*2 will disallow subsequent automatic mode communication
to this station.
*1: For details, see Figure 9.2, “Remote Station Status Register Configuration”
*2: See Section .4.1, “When Refresh Station Designation is Not Performed in Automatic Mode”.
When the initial check for a station is completed, its status bit in the Remote Station Status storage area (data position
numbers: 3839, 3840) turns on.
Manual Mode
Manual mode allows reading and writing to most of the data in the external instruments.
The manual mode is convenient although the FA-M3 user program increases in size as
the number of communication items and the number of external instrument stations
increase.
The D register map of an external instrument (which is separate from the D registers of
the FA-M3 sequence CPU) describes what kind of data is allocated and the
communication items are selected from the allocated data.
Manual mode can be used together with command communication.
Note
- The D register map of an external instrument contains read-only areas and access
prohibited areas. Do not write to or access these areas.
- Up to 25 contiguous devices can be read or written for each station in manual
mode. Non-contiguous device numbers may not be specified.
Command Communication
Command communication allows the user to communicate with external instruments as
and when required. Using command communication for communication items with low
access frequencies reduces reduction in the overall communication speed. Since the
communication items, external instrument station number and communication timing is
no longer transparent, the FA-M3 user program is more complicated.
Refresh communication during automatic mode or manual mode may be interrupted by
command communication.
The D register map of an external instrument (which is separate from the D registers of
the FA-M3 sequence CPU) describes what kind of data is allocated and the
communication items are selected from the allocated data.
Note
- The D register map of an external instrument contains read-only areas and access
prohibited areas. Do not write to or access these areas.
- Up to 64 contiguous devices can be read or written for each station in command
communication mode. For non-contiguous device numbers, up to 24 devices may
be specified.
Relays for exchanging data between the FA-M3 user program and the
Input/Output relay
Data position UT Link Module
number
1
Mode register Stores the communication parameter values. (Table 6.2) *1
50
51 Holds the communication data count, device type and first device
Configuration data area number for each external instrument station number in manual mode.
562 (Table Appx. 1)*1
563
Refresh station Performs refresh communication for stations whose bit is set to 1.
designation CPU1 (1 bit per station, total 32 stations) (Figure 4.1) *1
564
565
Refresh station Used for communication when the external instrument has two CPUs.
designation CPU2 (It is normally set to 0). (Figure 4.1) *1
566
Data Registers*2
567
Reserved
570
571
Refresh communication Holds the read/write data in refresh communication.
data area User programs read or write this data. (Table Appx. 2) *1
3770
3771
External instrument Holds the detailed error codes for each station of the external
status data area instrument. (Figure 9.2) *1
3840
3841
Command register Area for writing the command in command communication. (Figures
command area 7.4 to 7.8) *1
3940
3941
Command register Stores data and error response received from the external instrument
response area during command communication. (Figures 7.9 to 7.10) *1
4040
*1: Details are given in the table or figure indicated within parenthesis.
*2: When accessing a data register from a BASIC program, access the data position number by subtracting 50 from the
data position number given in table 3.2.
Note
Note the following when accessing data registers from BASIC programs.
Registers of the UT Link Module are classified into mode registers and data registers.
When accessing data registers from a BASIC program, access data position numbers
obtained by subtracting 50 from the data position numbers given in Table 3.2, “Register
Configuration of the UT Link Module”.
For mode registers, access the data position numbers as given in Table 3.2.
Data position numbers given henceforth should be handled similarly.
Registers of the UT Link Module are identified using slot numbers and data position
numbers.
Example:
READ sl n1 d k
The slot number indicates the slot position where the module is installed.
It is a 3-digit integer defined as follows.
Indicates read-only
items
Note
The D register map of an external instrument contains read-only areas and access
prohibited areas. Do not write to or access these areas.
The Refresh Station Designation register for CPU2 is used when the external instrument
has two CPUs. Most external instruments, however, has only CPU1. Here, we assume
that the Refresh Station Designation register for CPU2 is set to all zeroes. The following
sections explain how the Refresh Station Designation register works.
*1: See Figure 4.1, “Refresh Station Designation Register”.
Subsequent Check
Even though there is no response from an external instrument, which is switched off, the
external instrument may subsequently become accessible once its power is switched
on. To check for this, the UT Link Module polls each unconnected station in turn during
each refresh communication. As a result, each unconnected station will cause a time
out delay of approximately 100 ms during each refresh communication.
To avoid this time out delay, perform refresh station designation.
MSB
0 0 1 0
If the sum is 10 or more,
represent it with letters A to F.
Bit overlay → 8 4 2 1 (10=A, 11=B, 12=C, 13=D, 14=E, 15=F)
Bit state → 0 0 1 0
↓ ↓ ↓ ↓
0 + 0 + 2 + 0 → $2
$0 $0 $2 $F
$002F $2F
Data position MSB LSB
number 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
564 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
$0 $0 $0 $0
$0000 $0
Figure 4.3 Example for Converting Refresh Station Designation Information to Hexadecimal
Set station
numbers 01 to 16
Set station
numbers 17 to 32
Note
Any attempt to specify refresh stations during refresh communication will be ignored.
Stop refresh communication before changing the refresh stations. To stop refresh
communication, turn off the Request to Refresh relay (Y36).
If the refresh stations are specified during power-on processing, the above consideration
does not apply.
Note
To monitor the communication status of each station number, use the information in the
Remote Station Status storage area*1.
See Also:
Setup conditions for
communication with the
Setup communication conditions external instrument. The 2.7 Setting Communication
external instrument should Conditions
be setup with the same set
of conditions.
YES
Read data
YES
Communication
error?
NO Replace Replace with data that
read data identifies an error.
*: Replace with the slot number where the UT Link Module is installed.
Note
When using automatic mode together with command communication, start command
communication to a station after its status bit in the Remote Station Status storage area
(data position numbers: 3839, 3840*1) has turned on. Starting command communication
before the refresh station initial check*2 for a station has been completed in automatic mode
will disallow subsequent automatic mode communication to the station.
*1: For details, see Figure 9.2, “Remote Station Status Register Configuration”.
*2: See Section .4.1, “When Refresh Station Designation is Not Performed in Automatic Mode”.
When the initial check for a station is completed, its status bit in the Remote Station Status storage area (data position
numbers: 3839, 3840) turns on.
Key:
User program processing
I/O relays
Communication interrupted UT Link Module internal processing
over all stations
ON
X04
Communication
Refreshing OFF
in progress
X05
Clear remote station
register completed
X06
Refresh
communication error
X07
Module error
Y36
Request to refresh
Y37
Clear remote station
status register
Y38
Clear refresh
communication error relay
Refresh Clear remote
time Normal Module communication station status
communication error error register
The content of the stored data depends on the instrument type of the connected external
instrument. For example, if an external instrument with readable registers D1 to D8 is
connected to station 1 in automatic mode, when refresh communication starts, data will
be read and stored in the read area data position numbers 571 to 578 in the Refresh
Communication Data Area. A user program can obtain the data of the external
instrument by reading any part of the data in data position numbers 571 to 578.
When there is data to be written to the external instrument and assuming that the
instrument is connected as station 1, data can be transmitted to the external instrument
by writing the required data to the write area of the Refresh Communication Data Area,
starting from position number 596 using a user program.
The Refresh Communication Data Area for CPU2 is used when the external instrument
has two CPUs. Most external instruments, however, have only one CPU. Accessing an
external instrument with two CPUs is the same as accessing an external instrument with
one CPU, except for the difference in the data position numbers.
*1: Table 5.2 shows an example. See Table Appx. 2, “Refresh Communication Data Area” for a complete map of the
storage area.
Slot position 1 2 3 4 5 6
Power
UT Link Module
Station Station
number number
1 2
Communication items: D1 to D8 D1 to D9
Note
Remember to switch to automatic mode*1.
*1: See Figure 2.9., “Data Format Switch Setting”.
Note
The sample program is coded using signal names assigned to devices. Although the
program can be coded using only device names, using signal names improves program
readability and maintainability.
Set stations
01 to 16
Set stations
17 to 32
Set CPU2
data areas to 0
Set CPU2
data areas to 0
Request to
refresh
Remote station
status
Read station 01
Read station 02
Station 01
Station 02
This manual selection of the devices of the external instrument to be refreshed is known
as configuration.
When compared to the automatic mode, the manual mode allows shortening of the
refresh time by selecting only the registers that require refreshing.
Note
Manual mode cannot operate until refresh station designation has been performed.
For details on how to specify the refresh stations, see Section 4.2, “Refresh Station
Designation”.
See Also:
Set up mode NO When using the communication 6.3 Setting Mode Registers
registers? conditions defined by the switch (Communication Conditions)
setting on the side of the module,
YES there is no need to set up the
mode registers.
Set up mode registers
Read data
Write data
YES
Communication
error?
NO Replace Replace with data that
read data identifies an error.
X05
Clear remote station
status register
completed
X06
Refresh
communication error
X07
Module error
Y33
Request to set up
mode register
Y34
Request to read
configuration
Y36
Request to refresh
Y37
Clear remote station
status register
Y38
Clear refresh
communication error relay
Refresh Clear remote
time Normal Module communication station status Set up
communication error error register mode registers
Y02
Read configuration
completed
Y34
Request to read
configuration
time
Read configuration
However the following setup can only be done using mode registers.
- Response waiting time
This is the timer value for monitoring a response from an external instrument
during refresh communication.
- Number of communications retries
The communication conditions such as the transmission speed is read from the
positions of the DIP switches on the side of the module and written to the mode registers
when power to the module is switched on. A user program can check and change the
current communication conditions by reading and writing to the mode registers. Writing
to a mode register from a user program overwrites the current value. When changing a
mode register value, write your user program so that it checks that the Set Mode
Register Completed relay (X01)*1 has turned on after changing the mode register,
before starting communication.
See Table 6.2, “List of Mode Registers” for more details.
*1: See Table 6.1, “Input/Output Relays Used in Manual Mode”.
Note
Writing to mode registers is allowed in manual mode and command communication.
Writing to mode registers in automatic mode is ignored.
Number of retries
Request to set
mode register
Reset request to
set mode register
Note
The sample program is coded using signal names assigned to devices. Although the
program can be coded using only device names, using signal names improves program
readability and maintainability.
Defining the reading and writing range of external instruments is known as configuration
setup.
In configuration setup, the following information is defined for each external instrument.
Table 6.4 Numeric Values for Setting the “Device Type” in the Configuration Data Area
Access Target Value Remarks
D register $4 Normally, D registers are accessed.
I relay $9
Note
- Up to 25 contiguous devices can be read or write per station in manual mode.
Specifying non-contiguous device numbers is not allowed.
- To access more than 25 devices in the external instrument, access devices with low
access frequencies using command communication. For details on command
communication, see Chapter 7, “Details of Command Communication”.
Setup Area for Reading Setup Area for Writing Setup Area for Reading Setup Area for Writing
Data Device First Device Data Device First Device Data Device First Device Data Device First Device
Count Type Number Count Type Number Count Type Number Count Type Number
1 51 52 53-54 55 56 57-58 59 60 61-62 63 64 65-66
2 67 68 69-70 71 72 73-74 75 76 77-78 79 80 81-82
:
32 547 548 549-550 551 552 553-554 555 556 557-558 559 560 561-562
Read data
count is 2
Specify D
register
Always 0
Start reading
from D2
Write data
count is 1
Specify D
register
Always 0
Start writing
from D215
Figure 6.4 Sample Program for Configuration Setup
Note
You can also read the current configuration information. Turn on the Request to Read
Configuration relay (Y34) described in Table 6.1, “Input/Output Relays Used in
Manual Mode”. When the Read Configuration Completed relay (X02) turns on, the
data read is stored in the configuration data area.
The Refresh Communication Data Area for CPU2 is used when the external instrument
has two CPUs. Most external instruments, however, have only one CPU. Accessing an
external instrument with two CPUs is the same as accessing an external instrument with
one CPU, except for differences in the position data numbers.
*1: Table 6.8 shows an example. See Table Appx. 2, “Refresh Communication Data Area” for a complete map of the
storage area.
*1: The user program reads and writes to the refresh communication data area of the UT Link Module every second.
The external instrument and UT Link Module communicate asynchronously to the user program.
*2: See Figure 9.2, “Remote Station Status Register Configuration”.
Slot position → 1 2 3 4 5 6
Power
UT Link Module
Station
1
Note
Remember to switch to manual mode*1.
*1: See Figure 2.9, “Data Format Switch Setting”.
Set stations
01 to 16
Set stations
17 to 32
Set CPU2
data areas to 0
Set CPU2
data areas to 0
Read data
count is 2
Specify D
register
Always 0
Start reading
from D2
Figure 6.6 Sample Program for Manual Mode (1/2)
Write data
count is 1
Specify D
register
Always 0
Start writing
from D215
Request to
refresh
Write data
Read
station 01
Write
station 01
Station 01
Note
- In the sample program, data for station 1 (D2, D3) is stored in 2 contiguous words
starting from signal name Data10 (device D00049). Data stored in Data30 (device
D00081) is transmitted to station 1 and written to D215 of the external instrument.
- When connecting multiple stations, it is necessary to determine when
communication error has occurred using the Remote Station Status register. See
Section 5.4, “Sample Program” in the chapter on automatic mode for details.
Note
Using command communication during data access in automatic mode or manual mode
will cause a temporary delay in the data access because the data access operation is
temporarily interrupted to execute the command communication.
Frequent command communications of the same content should be implemented as
data access in automatic mode or manual mode instead.
Note
When using automatic mode together with command communication, start command
communication after the status bit for the station in the Remote Station Status storage
area (data position numbers: 3839, 3840*1) has turned on. Starting command
communication before the refresh station initial check*2 has been completed in automatic
mode will disallow subsequent automatic mode communication to this station.
*1: For details, see Figure 9.2, “Remote Station Status Register Configuration”
*2: See Section .4.1, “When Refresh Station Designation is Not Performed in Automatic Mode”.
When the initial check for a station is completed, its status bit in the Remote Station Status storage area (data position
numbers: 3839, 3840) turns on.
See Also:
Read data
YES
Communication
error?
NO Replace Replace with data that
read data identifies an error.
End
X
X07
Module error
X07
Command
communication error
X35
Request to transmit
command
Command
time Normal Module communication
communication error error
However the following setup can only be done using mode registers.
- Response waiting time
This is the timer value for monitoring a response from an external instrument
during refresh communication
- Number of communication retries
- Command area: The area where a user program writes the command to an external
instrument.
- Response area: The area where a user program reads the response from an
external instrument.
Data position
number
3841
Command area
(100 words)
3940
3941
Response area
(100 words)
4040
Creating a Command
- The command format depends on the command number. Create a command
according to the command format number given in Table 7.2, “Commands and
Responses”. Figures 7.4 to 7.8 show the actual command format for each
command format number.
- Set the station number field in the command format to the station number of the
external instrument with a user program (station numbers 1 to 32).
- The CPU number field in the command format is normally set to 1. For external
instruments with two CPUs, it may be set to 1 or 2.
- Set the command number to the hexadecimal value as given in Table 7.2,
“Commands and Responses” with a user program.
- Set the device type to the device type of the external instrument to be accessed.
(Table 7.3).
- Set the device number to a register or relay number (without the prefix character,
such as ‘D’ or ‘I’) of the external instrument to be accessed. The device number
area in the command format contains 2 words. The high-order word is reserved for
future expansion and should be set to 0. Specify the device number in the low order
word.
Example: To specify device number $8 using command format C1,
Data position number 3845 (high order word) = $0
Data position number 3846 (low order word) = $8
Response Format
- There are 2 types of response formats. Figures 7.9 to 7.10 show the actual
response format for each response format number.
- When there is an error in the response for a command, an error code is stored in
the response area of the command register. For details on errors, see Chapter 9,
“Errors and Troubleshooting”.
- To read a response, follow instructions given in Chapter 8, “Accessing the UT Link
Module”, using response formats described in this section.
Table 7.3 Numeric Values for Setting the “Device Type” in the Response Format
Access Target Value Remarks
D register $4 Normally, D registers are accessed.
I relay $9
Command Format
Data Position Data Position
Number Number
3841 Station number 3841 Station number
3842 CPU number 3842 CPU number
3843 Command number 3843 Command number
3844 Device type 3844 Device type
3845 Device $0 3845 Device $0
3846 number Number 3846 number Number
Number of points to Number of points to
3847 3847
read write
3848 Data
3940
Data Position
Number
3841 Station number Device type
3842 CPU number Device $0
3843 Command number number Number
3844 Number of points Device type
3845 Device $0
number Number
3940
Data Position
Number
3841 Station number Device type
3842 CPU number Device $0
3843 Command number number Number
Number of points to
3844 Data
write
3845 Device type
Device $0
number Number
Data
3940
Data Position
Number
3841 Station number
3842 CPU number
3843 Command number
Response Format
(See Chapter 9, “Errors and Troubleshooting” for details on EC1 and
EC2)
Data Position
Number
3941 EC1 EC2
3942 Register count=0
Data Position
Number
3941 EC1 EC2
3942 Register count = n
3943 Data 1
3944 Data 2 The number of data items
- - should be the same as the
- - number of points specified
- Data n in the command.
Table 7.4, “Signal Name Assignment Table”, shows an example of signal name
assignments to the sequence devices.
Table 7.4 Signal Name Assignment Table
Signal
Address I/O Comments
Name
Start I00033 Start command creation
LCslot D00033 LC51 slot
KyokuNo D00129 Station number
CPU D00130 CPU number
CodNo D00131 Command number
DevKd D00132 Device type
Zero D00133 Always 0
DevNo D00134 Device number
Qty D00135 Number of points
Station number
CPU number
Always 0
First device
number to read
Number of points
to read
Batch write to
command area
Note
This sample program assigns various preset values to the D registers and uses a
WRITE instruction to perform a batch write of the values to the UT Link Module. To
achieve that, create the signal assignment table so that the addresses of the D registers
follow the same order as the elements in the command format.
Note
When using automatic mode together with command communication, start command
communication after the status bit for the station in the remote station status storage
area (data position numbers: 3839, 3840*1) has turned on. Starting command
communication before the refresh station initial check*2 for a station has been completed
in automatic mode will disallow subsequent automatic mode communication to the
station.
This sample program describes a circuit, which takes this point into consideration and
another circuit, which does not allow concurrent usage with automatic mode. Use
either circuit as required.
*1: For details, see Figure 9.2, “Remote Station Status Register Configuration”.
*2: See Section 4.1, “When Refresh Station Designation is Not Performed in Automatic Mode”.
When the initial check for a station is completed, its status bit in the Remote Station Status storage area (data position
numbers: 3839, 3840) turns on.
*1: 16 bits starting from stas01 are used for reading the status of stations 1 to 16 and hence cannot be used for other
purposes.
*2: 16 words starting from Data10 are used for reading data and hence cannot be used for other purposes.
Station number
CPU number
Always 0
First device
number to read
Number of points
to read
Batch write to
command area
Figure 7.12 Sample Program for Command Communication (Reading) (1/2)
Self lock
Check remote
station status
Request to
transmit command
Release lock
* Circuit to be used when command communication is not intermixed with automatic mode *
Request to
transmit command
Read response
On error,
set data to -99
Request to
transmit command
Note
- The Start contact is on before entering the sample program and is reset within the
sample program.
- This sample program does not read the error and register count (data position
numbers 3941, 3942) in the response format (R2). It reads starting from the data
area (data position number 3943).
Table 7.6 shows an example of signal name assignments to the sequence devices.
*1: 16 bits starting from stats01 are used for reading the status of stations 1 to 16 and hence cannot be
used for other purposes.
Note
This sample program assigns various setup values to the D registers and uses a WRITE
instruction to perform a batch write of the values to the UT Link Module. To achieve
that, create the signal assignment table so that the addresses of the D registers (Table
7.6, D00129 to D00136) follow the same order as the elements in the command format.
Station number
CPU number
command no. of
Word Write command
Always 0
Device number
to write
Number of points
to write
Write data
Batch write to
command area
Self lock
Check remote
station status
Request to
transmit command
Release lock
* Circuit to be used when command communication is not intermixed with automatic mode *
Request to
transmit command
Alarm on error
Request to
transmit command
Note
- The Start contact is turned on before entering the sample program and is reset
within the sample program.
- The program turns on the internal relay (Alarm) when a communication error occurs.
Add a circuit for transmitting the alarm to the external and resetting the internal relay
(Alarm).
Accessing Registers
Reading Registers (Special Module Read Instruction)
READ sl n1 d k
WRITE s sl n2 k
Note
Use special module instructions intended for 16-bit (1 word) data to access the registers
of the UT Link Module. The following 4 instructions can be used:
- Special Module Read (READ)
- Special Module Write (WRITE)
- Special Module High-Speed Read (HRD)
- Special Module High-Speed Write (HWR)
Special module instructions intended for reading and writing 32-bit (2 words) long-word
data cannot be used.
Note
See the following manual for details on the ladder program instructions.
Sequence CPU Manual (Instructions) (IM34M6P12-03E)
Note
Note the following when accessing data registers from BASIC programs.
Registers of the UT Link Module are classified into mode registers and data registers.
When accessing data registers from a BASIC program, access data position numbers
obtained by subtracting 50 from the data position numbers given in Table 3.2, “Register
Configuration of the UT Link Module”.
For mode registers, access the data position numbers as given in Table 3.2.
The ASSIGN statement declares the use of the module. Always execute the ASSIGN
statement before using other BASIC statements in this module. The ASSIGN statement
defines the slot number where the module is installed.
ASSIGN LC51=SL
SL : Slot number. Number or numeric variable.
STATUS SL, n ; I
SL : Slot number
n : Data position number
I : Integer variable name or array variable name for storing the read data
CONTROL SL, n ; I
SL : Slot number
n : Data position number
I : Integer variable name or array variable name storing the write data
Note
Note the following when accessing data registers from BASIC programs.
Registers of the UT Link Module are classified into mode registers and data registers.
When accessing data registers from a BASIC program, access data position numbers
obtained by subtracting 50 from the data position numbers given in Table 3.2, “Register
Configuration of UT Link Module”.
For mode registers, access the data position numbers as given in Table 3.2.
bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Data position Input relay
number = 101 number
X01
X02
X03
X04
X05
X06
X16
CONTROL SL,n ; P, M
SL : Slot number
n : Data position number (always 101)
P : Output data
M : Mask pattern
bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Data position Output relay
number = 101 number
Y33
Y34
Y35
Y36
Y37
Y38
Y48
Example:
Output relay
before execution 0 0 0 0 0 0 0 00 1 0 0 0 1 1 0 = $0046
Note
See the following manual for details on the BASIC program instructions.
BASIC CPU Modules and YM-BASIC/ FA Programming Language
(IM34M6Q22-01E)
Note
Sometimes, error in communication with an external instrument affects the control of the
entire system. In such a situation, read the error information stored in the relays and
registers, and send an alarm to the external environment using contact outputs,
displays, etc.
When a communication error with an external instrument severely affects control, it is
important to adopt measures appropriate for the control object, such as stopping the
control operation etc.
The UT Link Module operates the following relays and registers when an error occurs.
- Error occurrence :
Corresponding relay (X06 to X08) turns on.
: the slot number where this module is installed.
- Error details :
The error details* are stored in the following registers:
Mode register
Remote Station Status register
Response Data register
*: The register where error information is stored depends on the error.
See Chapter 8, "Accessing the UT Link Module" on how to read relays and registers.
Table 8.1, “Errors and Corresponding Relays and Registers” shows the errors and error
types that may be detected by the UT Link Module.
The error details information is stored in the Module Error Details mode register (data
position numbers 31, 32) when module error occurs. Error Code 1 (EC1) and Error Code
2 (EC2) listed in the following table are stored in data position numbers 31 and 32
respectively.
Table 9.2 Error Details Information of Module Error (data position numbers 31 and 32)
Error Code 1 Error Code 2 Possible
Relay Classification Item
(EC1)*2 (EC2) Causes
Stores the data
position Invalid
Mode register
$11 number of the parameter
parameter error
mode register setup value
with error
Stores the
command Invalid
Command
$12 register parameter
parameter error
number with setup value
error
Stores data
X07 Module error
position
Invalid setup
Configuration number of the
$13 value in the
information error configuration
configuration
information
with error
Power supply
for sub-station
Transmission is off.
$14 ―*1
time out error Discontinuity in
the connecting
cable
Error Type
Refresh communication error occurs in the following situations:
- when a communication error occurs during automatic mode or manual mode
operation.
- when a communication error occurs while receiving the response text during
configuration in automatic mode.
- When an error response is received from the external instrument.
When a refresh communication error occurs, Error Code 1 (EC1) and Error Code 2
(EC2) of Table 9.3 are stored as detailed error information in their respective locations in
the Remote Station Status register.
See item " Remote Station Status Register" in subsequent pages for more details on
the Remote Station Status register.
Remote station status register (1) Storage area for remote station status
(2) Storage area for station where error occurs
(3) Storage area for error details code
Figure 9.2 shows the data position numbers and register structure of the Remote Station
Status register.
Data position
*1 number 1 98 1
Error Details Code 3771 CPU1 of station 1 EC1 EC2
storage area
3772 CPU2 of station 1
3774 CPU2 of station 2
3833 CPU1 of station 32 Corresponding
Note
Turning on the Clear Remote Station Status Register (Y37) relay clears the Error
Station storage area as well as all error codes stored in the Error Details Code storage
area.
Therefore, if an error has also occurred in another external instrument, always read the
Error Details Code storage area of the station before turning on the Clear Remote
Station Status Register (Y37) relay.
Note
When an error occurs during command communication, information on the error station
is not stored in the storage area. Instead, the error details code is stored in the
response data for the command transmitted from this module. The user can then know
from this information that an error has occurred in the external instrument that is
specified in the transmitted command.
*1: See Table 9.3, “Error Details Information of Refresh Communication Error” for details on the error codes.
When a command communication error occurs, the error details information is stored in
the response data register (data position number 3941) as error code 1 (EC1) in bits b15
to b8 and as error code 2 (EC2) in bits b7 to b0 as shown in Table 9.4 (Figure 9.3).
Error codes of error responses and their meaning are given in Table 9.5, “Error Code 1
(EC1) in Error Response” and Table 9.6, “Error Code 2 (EC2) in Error Response”.
*1: See Figure 9.2, “Structure of Remote Station Status Register”.
*2: See Figure 7.9, “Response Format: R1” and Figure 7.10, “Response Format: R2”.
MSB LSB
b7 b6 b5 b4 b3 b2 b1 b0
YES
YES
CAUTION
For REV:04:07 and earlier modules, do not use setting values other than “0” or “7”. If a
value other than "0" or "7" is set, the module will not start correctly.
CAUTION
For REV:05:08 and later modules, leave DIP Switch, except 7, unchanged at its factory
setting. If either DIP switch 1-6 or 8 is turned ON, the module will not start correctly.
YES
YES
NO
Is the cable disconnected? Replace the cable
YES
NO
Is the self-diagnosis result normal? Replace the module
YES
End
Module is normal
Is the cable
correctly connected? NO
See Section 2.6, Connect the cable
“Connecting properly.
” to External
Instruments
YES
NO
Any cable discontinuity? Replace the cable
YES
YES
YES
Any error
detected during self-diagnosis? NO
See Subsection 2.7.3, Replace the module
“Self-Diagnosis”
YES
End
Normal
Is Module NO
Error relay on?
X07
YES
Is Refresh Communication NO
Error relay on?
X06
YES
YES
*1: Two words starting from ModErDt are used to read the error data and cannot be used for other purposes.
Figure 9.8 Sample Program for Reading Errors That Occur During Refresh Operation
Module error
details
Clear Remote
Station Status
Register
Reset Clear
Register relay
Is Module NO
Error relay on?
X07
YES Is Command NO
Communication
Error relay on?
X08
Read Module Error mode
register (data position YES Is Response Receive NO
numbers 31 and 32) Completed relay on?
X03
YES
Turn off Request to Transmit
Command relay Read error code in Response Data
Y35 register (data position no. 3941)
End
* Sample Program for Reading Errors that Occur during * file: COMDERR
Command Communication
Module error
details
Reset request to
transmit command
Command
error details
Reset request to
transmit command
Figure 9.10 Sample Program for Reading Errors That Occur During Command Communication
Appendix
Appendix 1. Configuration Data Area
Table Appx.1 Configuration Data Area
Data Position Numbers for CPU1 Data Position Numbers for CPU2
Number
Station
Setup Area for Reading Setup Area for Writing Setup Area for Reading Setup Area for Writing
First First First First
Data Device device Data Device device Data Device device Data Device device
count type count type count type count type
number number number number
1 51 52 53-54 55 56 57-58 59 60 61-62 63 64 65-66
2 67 68 69-70 71 72 73-74 75 76 77-78 79 80 81-82
3 83 84 85-86 87 88 89-90 91 92 93-94 95 96 97-98
4 99 100 101-102 103 104 105-106 107 108 109-110 111 112 113-114
5 115 116 117-118 119 120 121-122 123 124 125-126 127 128 129-130
6 131 132 133-134 135 136 137-138 139 140 141-142 143 144 145-146
7 147 148 149-150 151 152 153-154 155 156 157-158 159 160 161-162
8 163 164 165-166 167 168 169-170 171 172 173-174 175 176 177-178
9 179 180 181-182 183 184 185-186 187 188 189-190 191 192 193-194
10 195 196 197-198 199 200 201-202 203 204 205-206 207 208 209-210
11 211 212 213-214 215 216 217-218 219 220 221-222 223 224 225-226
12 227 228 229-230 231 232 233-234 235 236 237-238 239 240 241-242
13 243 244 245-246 247 248 249-250 251 252 253-254 255 256 257-258
14 259 260 261-262 263 264 265-266 267 268 269-270 271 272 273-274
15 275 276 277-278 279 280 281-282 283 284 285-286 287 288 289-290
16 291 292 293-294 295 296 297-298 299 300 301-302 303 304 305-306
17 307 308 309-310 311 312 313-314 315 316 317-318 319 320 321-322
18 323 324 325-326 327 328 329-330 331 332 333-334 335 336 337-338
19 339 340 341-342 343 344 345-346 347 348 349-350 351 352 353-354
20 355 356 357-358 359 360 361-362 363 364 365-366 367 368 369-370
21 371 372 373-374 375 376 377-378 379 380 381-382 383 384 385-386
22 387 388 389-390 391 392 393-394 395 396 397-398 399 400 401-402
23 403 404 405-406 407 408 409-410 411 412 413-414 415 416 417-418
24 419 420 421-422 423 424 425-426 427 428 429-430 431 432 433-434
25 435 436 437-438 439 440 441-442 443 444 445-446 447 448 449-450
26 451 452 453-454 455 456 457-458 459 460 461-462 463 464 465-466
27 467 468 469-470 471 472 473-474 475 476 477-478 479 480 481-482
28 483 484 485-486 487 488 489-490 491 492 493-494 495 496 497-498
29 499 500 501-502 503 504 505-506 507 508 509-510 511 512 513-514
30 515 516 517-518 519 520 521-522 523 524 525-526 527 528 529-530
31 531 532 533-534 535 536 537-538 539 540 541-542 543 544 545-546
32 547 548 549-550 551 552 553-554 555 556 557-558 559 560 561-562
*: Numbers in the table represent data position numbers of the UT Link Module
UT Link Module
External
instrument
(1) (2)
(3)
(5) (4)
In Figure Appx. 1, the total transmission/receiving time is divided into the following
components:
(1) Transmission processing time of the UT Link Module
(2) Command transmission time
(3) Response time of external instrument
(4) Response communication time
(5) Receiving processing time of the UT Link Module
Among these components, items (1) and (5) can be ignored.
Items (2) and (4) can be computed from the transmission/receiving data size. Item (5) is
determined by the type and operating mode of the external instrument, as well as the
size of the read/write data.
*1: Transmission/receiving data size = size of fixed portion (including the ending character) + size of data portion
(in bytes)
*2: Data frame length = start bit (1) + data length (8) + stop bit (1) + parity bit (1) = 11 (bits)
Table Appx.4 Sample Response Times of External Instruments (Reference Values) Unit: s
Data Count Minimum Response Time Maximum Response Time
1 0.005 0.040
8 0.008 0.045
25 0.015 0.051
The sample performance values shown above are values for one station. When
connecting multiple stations to a single line, the access time interval for a specific station
can be obtained by multiplying the values shown in Table Appx. 5 by the number of
stations.
These examples do not take into consideration error situations such as occurrence of
retries and hence, allowance should be built in during system design.
Processing of WRITE instructions and READ instructions takes time. The processing
time for a WRITE instruction that writes 2 words is, however, less than twice the
processing time for a WRITE instruction that writes 1 word. Using a WRITE instruction
to write multiple words at one go reduces processing time, when compared to using
many WRITE instructions to write data word-by-word. The MOV instruction is much
faster than the WRITE instruction.
Therefore, setting the data in the D registers using MOV instructions and then
performing a batch write using a WRITE instruction speeds up the handling of multiple
words. Take note however that the D registers for the batch WRITE must occupy serial
addresses.
The sample programs for automatic mode and manual mode execute multiple WRITE
instructions only once during power-on processing. Although this lengthens the time for
power-on handling, it does not pose a problem during regular scans. In the program
code section for reading during a regular scan, READ instructions are coded to perform
batch reading of multiple data in order to reduce processing time.
Batch handling of multiple words by applying the above tip is highly recommended for
programs that regularly execute WRITE and READ instructions.
Note
See the following manual for details on the processing time for each instruction:
Sequence CPU Modules - Instructions (IM34M6P12-03E)
FA-M3
UT Link Module
Index R
reading and writing data in automatic mode ....5-4
reading and writing data in manual mode .....6-10
A refresh communication data area ............ Appx.-2
accessing using BASIC .................................. 8-3 refresh station designation ..............................4-1
accessing using ladder sequence .................. 8-1 register configuration .......................................3-4
attaching and detaching modules ................. 2-13 remote station status .......................................9-5
automatic mode ........................................ 3-2,5-1
S
C sample program for automatic mode ...............5-5
command communication ......................... 3-3,7-1 self-diagnosis ..................................................2-8
commands and responses ............................. 7-5 setting communication conditions ...................2-7
commands and responses, formats of ........... 7-6 setting mode registers (communication
communication conditions, recommended .... 2-6 conditions) .......................................................6-5
communication methods, types of .................. 3-1 setting the UT Link Module .............................2-6
compatibility with CPU modules ..................... 2-1 slot number .....................................................3-5
compatibility with external instruments .......... 1-1
T
configuration data area ............................ Appx.-1
troubleshooting ...............................................9-1
configuration setup (communication range) .... 6-7
connecting to external instruments ................. 2-5
D
D register map, example ................................. 3-7
data areas used in command
communication ............................................... 7-5
E
external dimensions and weight ..................... 2-3
F
function specifications .................................... 2-1
I
input/output relays used in command
communication ............................................... 7-3
input/output relays used in manual mode ....... 6-3
input/output relays, used in automatic mode .. 5-2
M
manual mode ............................................ 3-2,6-1
Revision Information
Title : UT Link Module
Document No. : IM34M06H25-01E