Schneider Electric PL7 Micro/Junior/Pro - Communication applications, volume 2 User Guide
广告
广告
PL7 Micro/Junior/Pro
Communication applications
Volume 2
TLX DS COM PL7 xx eng
2
Related Documentation
At a Glance This manual has 3 volumes: l l
Volume 1 l l
Common communication function
Remoting of Nano PLCs l Communication by character mode l Communication by Uni-telway bus
Volume 2 l l l l
Communication by Modbus
Communication by modem
Communication by Modbus plus l l l Communication by FIPIO bus
Volume 3
Communication by FIPWAY network l
Communication by ETHERNET network
Multi-network architecture
Related Documentation
TLX DS COM PL7 xxE
3
Related Documentation
4
TLX DS COM PL7 xxE
Table of Contents
About the book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Part I
Communication via Modbus . . . . . . . . . . . . . . . . . . . . . . 15
Chapter 1
General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Compatibility between a TSX 37/57 PLC and a series 1000 PLC. . . . . . . . . . . . 20
Chapter 2
Configuring Modbus communication . . . . . . . . . . . . . . . . . . . . 25
How to access the Modbus PCMCIA card parameters . . . . . . . . . . . . . . . . . . . . 26
How to access the terminal port parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
How to access parameters for TSX SCY 11601/21600/21601 modules. . . . . . . 28
Modbus Parameters relating to transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Chapter 3
Programming Modbus communication . . . . . . . . . . . . . . . . . . 37
Modbus master communication function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Using the SEND_REQ communication function . . . . . . . . . . . . . . . . . . . . . . . . . 42
Example 1: SEND_REQ function with Echo request . . . . . . . . . . . . . . . . . . . . . 43
Example 2: SEND_REQ function with Word read request. . . . . . . . . . . . . . . . . 44
Example 3: READ_VAR function for reading bits . . . . . . . . . . . . . . . . . . . . . . . . 46
Chapter 4
Debugging Modbus communication. . . . . . . . . . . . . . . . . . . . . 47
5
6
Chapter 5
Language objects associated with Modbus communication 53
Implicit exchange language object for a Modbus function . . . . . . . . . . . . . . . . . . 54
Explicit exchange language objects for a Modbus function . . . . . . . . . . . . . . . . . 56
Explicit exchange management and report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Language objects associated with the configuration . . . . . . . . . . . . . . . . . . . . . . 60
System objects of the Modbus function on Terminal port . . . . . . . . . . . . . . . . . . 63
Part II
Communication via Modem . . . . . . . . . . . . . . . . . . . . . . . 65
Chapter 6
Communication via Modem . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
6.1
Introduction to communication via Modem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Standard configuration for communication via modem . . . . . . . . . . . . . . . . . . . . 70
Other configurations for communication via modem . . . . . . . . . . . . . . . . . . . . . . 71
Principles of communication between two stations . . . . . . . . . . . . . . . . . . . . . . . 73
6.2
6.3
Setting up UNI-TELWAY communication between PLCs via the TSX MDM 10 card
Communication between PLCs using an external modem . . . . . . . . . . . . . . . . . 81
How to configure the Uni-telway driver with a modem. . . . . . . . . . . . . . . . . . . . . 84
How to modify modem configuration parameters . . . . . . . . . . . . . . . . . . . . . . . . 86
Chapter 7
Configuring Modem communication . . . . . . . . . . . . . . . . . . . . 87
How to access PCMCIA modem card parameters . . . . . . . . . . . . . . . . . . . . . . . 88
Chapter 8
Programming Modem communication . . . . . . . . . . . . . . . . . . . 99
CALL_MODEM communication function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Modem specific management parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Guide to choosing connection parameters in Uni-telway mode . . . . . . . . . . . . 106
Guide to choosing connection parameters in character mode . . . . . . . . . . . . . 109
Examples of connection, disconnection, and reset with a remote station . . . . . 111
Examples of communication between two PLCs . . . . . . . . . . . . . . . . . . . . . . . 113
Chapter 9
Debugging Modem communication . . . . . . . . . . . . . . . . . . . . 115
Chapter 10
Language objects associated with Modem communication 119
Explicit exchange management and reports . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Language objects associated with configuration. . . . . . . . . . . . . . . . . . . . . . . . 126
Chapter 11
Appendices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
7
8
Zn - Software reset of modem and restoration of profile . . . . . . . . . . . . . . . . . . 159
&Cn - RLSD Option (detection of DCD carrier) . . . . . . . . . . . . . . . . . . . . . . . . . 160
&Dn - DTR Option (Data Terminal Ready) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
&Fn - Restoration of the factory configuration (profile) . . . . . . . . . . . . . . . . . . . 162
&Pn - Selection of pulse dialing close/open report . . . . . . . . . . . . . . . . . . . . . . 165
&Qn - Synchronous/asynchronous mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
&Sn - DSR Monitoring (Data Station Ready) . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
&V - Display of current configuration and stored profiles. . . . . . . . . . . . . . . . . . 169
%Cn - Activation / deactivation of data compression. . . . . . . . . . . . . . . . . . . . . 173
%En - Activation/deactivation of line quality monitoring or automatic resynchroni-
Values of the registers of the TSX MDM 10 card in a PLC . . . . . . . . . . . . . . . . 180
Part III
Communication via Modbus Plus . . . . . . . . . . . . . . . . . 181
Chapter 12
General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
Chapter 13
Peer Cop service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Chapter 14
Configuring Modbus Plus communication . . . . . . . . . . . . . . 195
How to access the Modbus Plus PCMCIA card parameters . . . . . . . . . . . . . . . 196
Chapter 15
Programming Modbus Plus communication . . . . . . . . . . . . . 203
Exchange service on remote Modbus Plus networks . . . . . . . . . . . . . . . . . . . . 206
Examples of Exchanges on Offset Networks . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Chapter 16
Debugging Modbus Plus communication . . . . . . . . . . . . . . . 215
Chapter 17 Language objects associated with Modbus Plus
communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Explicit exchange management and report . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
Language objects associated with configuration. . . . . . . . . . . . . . . . . . . . . . . . 225
Part IV
Communication via FIPIO bus . . . . . . . . . . . . . . . . . . . 227
Chapter 18
Communication via FIPIO bus. . . . . . . . . . . . . . . . . . . . . . . . . 229
18.1
Addressing of language objects for modules remoted on the FIPIO bus . . . . . 232
18.2
Hardware compatibility relating to the bus manager . . . . . . . . . . . . . . . . . . . . . 235
Software compatibility relating to the bus manager. . . . . . . . . . . . . . . . . . . . . . 236
Software compatibility: Network transparency . . . . . . . . . . . . . . . . . . . . . . . . . 237
Software compatibility: communication with the exterior. . . . . . . . . . . . . . . . . . 239
Compatibility information relating to TBX devices . . . . . . . . . . . . . . . . . . . . . . . 240
Compatibility information relating to Momentum devices . . . . . . . . . . . . . . . . . 241
Compatibility information relating to the programming terminal . . . . . . . . . . . . 242
Compatibility information relating to other devices . . . . . . . . . . . . . . . . . . . . . . 243
Example of calculating the network cycle times of a multitasking application. . 252
Chapter 19
Configuring FIPIO communication . . . . . . . . . . . . . . . . . . . . . 255
9
10
19.1
19.2
How to access the FIPIO configuration screen . . . . . . . . . . . . . . . . . . . . . . . . . 258
How to modify/delete/move/duplicate a bus device . . . . . . . . . . . . . . . . . . . . . . 262
How to access the FIPIO bus properties screen . . . . . . . . . . . . . . . . . . . . . . . . 264
19.3
How to access the FIPIO configuration screen . . . . . . . . . . . . . . . . . . . . . . . . . 270
How to access the different parameters according to device type. . . . . . . . . . . 273
19.4
Input/output management by the PL7 tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
How to access PL7 task configuration in FIPIO mode. . . . . . . . . . . . . . . . . . . . 275
FIPIO input/output management using PL7 tasks . . . . . . . . . . . . . . . . . . . . . . . 277
19.5
Chapter 20
Programming FIPIO communication . . . . . . . . . . . . . . . . . . . 283
Examples of explicit exchange saturation detection . . . . . . . . . . . . . . . . . . . . . 285
Chapter 21
Debugging a FIPIO communication . . . . . . . . . . . . . . . . . . . . 289
How to access the remote device debugging screens. . . . . . . . . . . . . . . . . . . . 291
Chapter 22
FIPIO communication diagnostics . . . . . . . . . . . . . . . . . . . . . 295
How to access the FIPIO bus monitoring screen. . . . . . . . . . . . . . . . . . . . . . . . 297
How to access the device monitoring screen. . . . . . . . . . . . . . . . . . . . . . . . . . . 300
How to access the monitoring screen for one device . . . . . . . . . . . . . . . . . . . . 303
Diagnostics screen: single device monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . 304
How to access the communication error history screen . . . . . . . . . . . . . . . . . . 306
Diagnostics screen: communication error history . . . . . . . . . . . . . . . . . . . . . . . 307
Chapter 23
Language objects associated with FIPIO communication . . 309
Explicit exchange management and reports . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Chapter 24
FIPIO communication standard profiles. . . . . . . . . . . . . . . . . 315
24.1
Introduction to standard FIPIO communication profiles . . . . . . . . . . . . . . . . . . 316
List of the standard profiles proposed in catalog by PL7. . . . . . . . . . . . . . . . . . 319
24.2
Configuration of the FIPIO bus standard profiles . . . . . . . . . . . . . . . . . . . . . . . 321
How to modify the parameters of a standard profile . . . . . . . . . . . . . . . . . . . . . 324
24.3
Debugging the FIPIO bus standard profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
How to modify the debugging parameters of a standard profile . . . . . . . . . . . . 330
24.4
Language objects associated with the FIPIO bus standard profiles . . . . . . . . . 332
Summary of the objects which can be accessed via the standard profiles . . . . 333
Language objects associated with configuration. . . . . . . . . . . . . . . . . . . . . . . . 341
Chapter 25
FIPIO Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
25.1
25.2
How to access the FIPIO Agent parameters via PCMCIA cards. . . . . . . . . . . . 351
11
12
25.3
25.4
Language objects associated with the FIPIO Agents . . . . . . . . . . . . . . . . . . . . 354
Explicit exchange management and reports . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
Language objects associated with configuration . . . . . . . . . . . . . . . . . . . . . . . . 358
Index
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
About the book
At a Glance
Document Scope This manual deals with the software implementation of the communication application.
Validity Note The updated version of this publication takes into account the functionalities of PL7
V4.3.
Revision History
4
5
6
2
3
Rev. No.
1
Changes
Modbus Modem Modbus
Plus FIPIO
This version takes in order some OPR.
Modbus Master on
Terminal Link and correction of OPRs
Add SCY11601
Correcting 11601 (version redondante avec version4)
For PL7 V4.3 Correction of
SCY 11601 + modification
User Comments We welcome your comments about this document. You can reach us by e-mail at
TLX DS COM PL7 xxE
13
About the book
14
TLX DS COM PL7 xxE
Communication via Modbus
I
Introduction
Aim of this part
What's in this part?
This part introduces the principles of configuring and communicating with Modbus via PL7 software.
This Part contains the following Chapters:
Chapter
1
2
3
4
5
Chaptername
General
Configuring Modbus communication
Programming Modbus communication
Debugging Modbus communication
Language objects associated with Modbus communication
Page
15
TLX DS COM PL7 xxE
Communication via Modbus
16
TLX DS COM PL7 xxE
General
1
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter introduces Modbus communication and its services.
This Chapter contains the following Maps:
Topic
About Modbus
Compatibilities
Compatibility between a TSX 37/57 PLC and a series 1000 PLC
Performance
Operating Mode
Page
TLX DS COM PL7 xxE
17
Modbus communication: General
About Modbus
Introduction
Associated manuals
Communication by Modbus allows data to be exchanged between all devices connected to the bus. Modbus is a protocol which creates a hierarchical structure
(one master and several slaves).
l l
The master manages all exchanges according to two types of dialog: the master exchanges data with the slave and awaits a response, the master exchanges data with all slaves and does not await a response
(general broadcast).
For further information, you may consult the following manuals:
Title
Modbus - User guide
TSX Micro PLCs - Installation manual
TSX Premium PLCs - Installation manual
Description
Detailed description of Modbus protocol
Hardware implementation
See manual TSX DM 37_T3.
Hardware implementation
See manual TSX DM 57_T4.
18
TLX DS COM PL7 xxE
Modbus communication: General
Compatibilities
Hardware
Software
This communication type is available for l l
Premium PLCs through: l l l a PCMCIA TSX SCP 111 card associated with the RS232 physical layer, a PCMCIA TSX SCP 112 card associated with 20 mA current loops, a PCMCIA TSX SCP 114 card associated with RS422 and RS485 physical layers, l a Built-in Link with a TSX SCY 11601/21600 / 21601 module associated with the RS485 physical layer.
Version V3.3 Micro is configured in slave mode through the terminal port associated with the RS485 physical layer.
l l
Version V5.0 micro is configured in master mode (TSX 37-10/21/22 only) or in slave mode through the terminal port associated with the RS485 physical layer.
The micro supports the PCMCIA cards described above.
The maximum frame size is 256 bytes.
PCMCIA cards and the TSX SCY 11601/21600 / 21601 module's built-in link can process 8 communication functions at once in Modbus master mode.
Modbus master mode is only available on the Terminal Port from version V4.2 of the
PL7 software. It is not possible to download a Modbus master configured application to a Micro of version V5.0 or below.
The PL7 program's MAST task can, in Modbus master mode, process up to 4 communication functions at once via the Terminal Port. In addition, an error code is sent.
The READ_VAR communication function can read up to 1000 consecutive bits in any remote device. To read more than 1000 bits, the SEND_REQ communication function must be used.
Note: TSX Nano, TSX Micro and TSX Premium PLCs cannot send more than 1000 bits after a read request.
TLX DS COM PL7 xxE
19
Modbus communication: General
Compatibility between a TSX 37/57 PLC and a series 1000 PLC
At a Glance
Memory addressing
The READ_VAR and WRITE_VAR functions are used to read and write objects contained in series 1000 PLCs. These include words, double words, floating points and character strings.
The address of the object in the series 1000 PLC memory determines the type of the object to be accessed.
This table shows the access addresses for a series 1000 APRIL5000 PLC with memory extension.
Type of variable APRIL5000 with extension
PLC address
%M internal bits
%MW data words
%MD data words
%FD data words
%CH data words
%M0
%M4095
%MW0
%MW24999
%MD25000
%MD26998
%FD27000
%FD28998
%CH29000
%CH43903
Access address (in hexadecimal)
A000
AFFF
0
61A7
61A8
6976
6978
7146
7148
AB7F
Programming rules
When you wish to access the objects of a series 1000 PLC, the index of the first object to read (or write) is the access address.
Example: l Read %M0 bit l
READ_VAR(ADR#0.1.3, ‘%M’, 16#A000, 1, ...)
Read word %MD25000
READ_VAR(ADR#0.1.3, ‘%MW’, 16#61A8, 2, ...)
Moreover, these communication functions cannot be used to exchange double words or character strings via the Modbus protocol. If needed, it is possible to perform the transfer in %MW form, the application must determine the direction
in which the words are stored.
The diagnostics functions can be accessed via the SEND_REQ function.
20
TLX DS COM PL7 xxE
Compatibility between a TSX
37/57 PLC and a
Quantum PLC or
Micrologic device
Descriptive table:
%M0
%MW0
Quantum
00001
40001
Modbus communication: General
Micrologic
%M1
%MW1
TLX DS COM PL7 xxE
21
Modbus communication: General
Performance
At a Glance
Exchange time for 1 word
The following tables enable you to evaluate typical exchange times according to different criteria.
The results displayed correspond to an average operation period of the READ_VAR function in ms.
4800
4800
4800
9600
9600
9600
19200
19200
19200
Number of objects read: 1 word
Speed in bits/s T cycle (ms) Average duration
(ms)
TSX SCP 114 cyclic
10
105
133
50 cyclic
10
50
152
74
86
149 cyclic
10
50
57
60
100
Average duration (ms)
TSX SCY 11601/21600/21601
110
172
75
90
118
120
140
172
90
Exchange time for 100 words
4800
4800
4800
9600
9600
9600
19200
19200
19200
Number of objects read: 100 words
Speed in bits/s T cycle (ms) Average duration
(ms)
TSX SCP 114 cyclic
10
616
637
50 cyclic
10
50
700
357
367
405 cyclic
10
50
215
216
251
Average duration (ms)
TSX SCY 11601/21600/21601
390
425
228
239
280
630
650
730
375
22
TLX DS COM PL7 xxE
Modbus communication: General
Operating Mode
At a Glance
General Graph
The following graphics show operating modes for PCMCIA Modbus cards, built-in links in TSX SCY11601/21600/21601 modules and for the Terminal Port.
The operating mode is as follows:
Module Stop
No current
Apply voltage
Operation
Module configured
Communication function
Auto-testing
Reset
Module not configured!
Auto-tests OK
Configuration l l l l
After applying voltage, the module carries out auto-tests. Display indicators flash during this phase.
If there is no PL7 application in the PLC, the module awaits configuration.
If there is a PL7 application in the PLC, the application's configuration is transmitted to the module, and then the module starts up.
When there is a power outage, the PLC procesor carries out a hot restart. The module then restarts its auto-test procedures.
TLX DS COM PL7 xxE
23
Modbus communication: General
24
TLX DS COM PL7 xxE
Configuring Modbus communication
2
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter describes the Configuration process during set-up of Modbus communication.
This Chapter contains the following Maps:
Topic
How to access the Modbus PCMCIA card parameters
How to access the terminal port parameters
How to access parameters for TSX SCY 11601/21600/21601 modules
Modbus Configuration Screen
Accessible Modbus Functions
Application linked Modbus Parameters
Modbus Parameters relating to transmission
Page
TLX DS COM PL7 xxE
25
Modbus configuration
How to access the Modbus PCMCIA card parameters
Introduction
How to access the link
This operation describes how to access the configuration parameters of the Modbus link via the intermediary of PCMCIA cards for TSX Premium PLCs.
The following table shows the procedure for accessing the Modbus link:
Step
1
2
Action
Access the communication channel configuration screen.
Select the communication channel from the drop-down menu CHANNEL 1
Example
CHANNEL 1
CHANNEL 1 (No PCMCIA submodule)
(Link not configured)
CHANNEL 1
MAST
3 Select one of the following PCMCIA cards from the drop-down menu: l l l
TSX SCP 111 PCMCIA CARD RS232 MP
TSX SCP 112 PCMCIA CARD BC MP
TSX SCP 114 PCMCIA CARD RS485 MP
Example
CHANNEL 1
CHANNEL 1 TSX SCP 114 PCMCIA CARD RS485 MP
(Link not configured) MAST
TSX SCP 114 PCMCIA CARD RS485 MP
TSX FPP 20 PCMCIA FIPWAY CARD
TSX FPP 200 PCMCIA FIPWAY CARD
TSX FPP 10 PCMCIA FIPIO CARD
TSX MBP 100 PCMCIA MODBUS+ CARD
TSX MDM 10 PCMCIA MODEM CARD
4 Select the link from the drop-down menu MODBUS/JBUS LINK:
Example
CHANNEL 1:
CHANNEL 1 TSX SCP 114 PCMCIA CARD RS 485 MP
(Link not configured)
(Link not configured)
UNI-TELWAY LINK
CHARACTER MODE LINK
MODBUS/JBUS LINK
MAST
26
TLX DS COM PL7 xxE
Modbus configuration
How to access the terminal port parameters
Introduction
How to access the link
This operation describes how to access the configuration parameters of the Modbus link via the intermediary of the terminal port of the TSX Micro PLC.
The following table shows the procedure for accessing the Modbus link:
Step
1
2
Action
Access the communication channel configuration screen.
Select the link from the drop-down menu MODBUS/JBUS LINK:
Example
VOIE 0:
CHANNEL 0 Terminal Port
UNI-TELWAY LINK
UNI-TELWAY LINK
CHARACTER MODE LINK
MODBUS/JBUS LINK
MAST
TLX DS COM PL7 xxE
27
Modbus configuration
How to access parameters for TSX SCY 11601/21600/21601 modules
At a Glance This part describes how to access the configuration parameters of the Modbus link from TSX SCY 11601/21600/21601 modules for the TSX Premium.
Note: For the TSX SCY 11601, given that there is only one channel (CHANNEL 0) and one link (MODBUS/JBUS) channel 0 is configured by default.
How to access the link
The following table shows the steps to follow in order to access the Modbus link:
Step
1
2
Action
Access the configuration screen for the communication channel of the selected module
Select the communication channel CHANNEL 0 from the drop-down menu
Example
CHANNEL 0
CHANNEL 0 (No PCMCIA submodule)
(Link not configured)
CHANNEL 1
MAST
3 Select MODBUS/JBUS LINK from the drop-down menu:
Example
CHANNEL 1:
CHANNEL 0 (No PCMCIA submodule)
(Link not configured)
(Link not configured)
UNI-TELWAY LINK
CHARACTER MODE LINK
MODBUS/JBUS LINK
MAST
28
TLX DS COM PL7 xxE
Modbus configuration
Modbus Configuration Screen
At a Glance
Illustration
This screen is split into two and enables the declaration of the communication channel and configuration of parameters necessary for a Modbus/Jbus link.
The Modbus Communication Screen looks like this:
TSX 57252 [RACK 0 POSITION 0]
Configuration
Designation: TSX P 5725 PROCESSOR
1
2
CHANN TSX SCP 114 PCMIA RS485 MP CARD
MODBUS/JBUS LINK MAST
Type
Master
Configuration
Master
Number of retries
Response Time
Slave
Slave number
(PSR) Current Loop
Multidrop
100
98
3
Point-to-
X 10 ms
Transmission Speed
9600 Bits/s
Delay between
Default 4 ms
Data
ASCII (7 bits)
RTU (8 bits)
Stop
1 bit
2 bits
Parity
Even Odd None
RTS / CTS Delay
0 X100 ms Data Carrier
Nodes and
Functions
This table describes the different zones which make up the configuration screen:
Address Zone
1 common
2 specific
Function
(See : PL7 Micro/Junior/Pro ; Communication applications ;
Volume 1) allows you to select or complete the parameters of a Modbus link.
It is broken down into two types of information: l l application parameters, transmission parameters.
TLX DS COM PL7 xxE
29
Modbus configuration
Accessible Modbus Functions
At a Glance Depending on the communication media chosen, certain parameters cannot be modified. These are grayed out.
Accessible
Functions
Functions
Stop
Parity
The summary table below shows the various possible choices:
Master
Slave
(PSR) Current Loop
Transmission Speed
Delay between characters
Data
RTS/CTS delay
Data Carrier (DCD)
Management
*Only on TSX 37-10/21/22
SCP 111
Yes
Yes
No
Yes
Yes l l l l l l l
Yes
ASCII
RTU
1 bit
2 bits odd even none
Yes
SCP 112
Yes
Yes
Yes
Yes
Yes l l l l l l l
No
ASCII
RTU
1 bit
2 bits odd even none
No
SCP 114
Yes
Yes
No
Yes
Yes l l l l l l l
No
ASCII
RTU
1 bit
2 bits odd even none
No
SCY 11601/21600/
21601
Terminal Port
Yes
Yes
Yes*
Yes
No
Yes
Yes l l l l l l l
No
ASCII
RTU
1 bit
2 bits odd even none
No l l l l l
No
Yes
Yes
RTU only
No
No
1 bit
2 bits odd even none
Specific
Functions
Note: In the Datawindow for the Terminal Port, both options are possible but only the RTU format can function through the Terminal Port.
The additional Immediate server function is only available where a TSX SCP 114 card has been inserted into TSX SCY 21600/21601 modules.
30
TLX DS COM PL7 xxE
Modbus configuration
Application linked Modbus Parameters
At a Glance
Type Parameter
After configuring the communication channel, you need to enter the application parameters.
These are split into four windows: l l l l the Typewindow, the Masterwindow, the Slavewindow, and the (PSR) Current Loopwindow.
The window looks like this:
Type
Master
It enables you to select the type of Modbus Protocol the module uses: l l l
Master: selects Modbus Master where the station is master,
Slave: selects Modbus Slave where the station is slave,
Immediate Server: allows UNI-TE requests to be directed to the SERVER function and not to the processor's main server.
Note: The Immediate Serverparameter requires the SERVER (PL7 Micro/Junior/
Pro ; Communication applications ; Volume 1)communication function to be programmed in PL7.
It is valid until the box is checked.
Type
Slave Immediate server
TLX DS COM PL7 xxE
31
Modbus configuration
Master Function This window is only accessible by selectingMaster:
Master
Number of retries
Response time 100
3
X 10 ms
This allows you to enter: l the Number of retries: number of connection attempts made by the master before defining the slave as absent.
the default value is 3, l l l values between 0 and 15, value 0 indicates no retries by the Master.
l Response Time: time elapsed between the request made by the Master and a repeat attempt if the slave does not respond. It corresponds with the maximum time between the transmission of the last character of the Master's request and receipt of the first character of the request sent back by the slave.
l l the default value is 1s (100*10ms), values between 10ms and 10s,
Slave Function This window is only accessible by selectingSlave:
Slave
Slave number 7
This allows you to fill in the Slave Number of the device: l TSX SCY 21600/21601: l the default value is 98, l l values between 1 and 98,
TSX SCY 11601: l l the default value is 247, possible values lie between 1 and 247.
Current Loop
Function
The window looks like this:
(PSR) Current Loop
Multidrop Point-to-Point l l
It allows you to select a:
Multidrop (Current Loop) communication,
Point-to-Point (Current Loop) communication.
32
TLX DS COM PL7 xxE
Modbus configuration
Modbus Parameters relating to transmission
At a Glance
Transmission
Speed
Delay between characters
After configuring the communication channel, you need to enter the transmission parameters.
These are split into six windows: l l l l l the Transmission speed window, the Delay between characters window, the windows specific to Data and Stop, the Parity window, the RTS/CTS delay window.
The window looks like this:
Transmission Speed
9600 Bits/s
This window is used to select the transmission speed of the Modbus protocol used l l l by the module, and is compliant with the other devices: the default speed is 9600 bits/s, the other speeds available are 1200, 2400, 9600 and 19200 bits/s, speeds of 300 and 600 bits/s are only available with the PCMCIA card TSX SCP
111.
The window looks like this:
Delay between characters
Default 4 ms
This is the end delimiter detection delay plus the maximum time between two characters received. It is managed when the PLC is receiving messages, whether it be a master or slave.
You are advised to use the default values on configurations that do not have a modem or other intermediary device. Otherwise, you must use higher values.
Note: The default value depends on the transmission speed selected.
Note: There is one restriction on the 'Delay between characters' value on channel
0 of TSX SCY 11601/21600/21601 modules (see table below).
TLX DS COM PL7 xxE
33
Modbus configuration
The table below gives the maximum values of the delay between characters depending on the transmission speed:
Speed (bits/s)
1200
2400
4800
9600
19200
Max. delay between characters (ms)
212
106
53
26
13
23
23
22
Max. delay between characters
(number of characters)
23
23
Data
Stop
The window looks like this:
Data
ASCII (7 bits)
RTU (8 bits)
The Data field can be used to enter the type of coding used for Modbus communication. This field is to be configured as a function of the other devices: l RTU mode: l the characters are coded on 8 bits, l the start and end of frame delimiters are detected by a silence of 3.5 characters, l l l l frame integrity is checked using the CRC checksum contained in the frame.
ASCII mode: the characters are coded on 7 bits, the start delimiter is detected by receiving the characters ":" or by a silence longer than the delay between characters.
The end delimiter is detected by a CR and LF (carriage return and line feed) or by a silence longer than the delay between characters.
Note: The value 1000 in ASCII mode corresponds to an infinite delay between characters.
The window looks like this:
Stop
1 bit
2 bits
The Stop field is used to enter the number of stop bits used to communicate on
Modbus. The possible values are 1 or 2 stop bits. This field is to be configured as a function of the other devices.
Note: The default value is 1 stop bit.
34
TLX DS COM PL7 xxE
Parity
Modbus configuration
The window looks like this:
Parity
Even Odd None
This field is used to define whether or not a parity bit is to be added, and, if so , what its type will be. The possible values are Even, Odd or none (Even by default). This field is to be configured as a function of the other devices.
RTS / CTS Delay The window looks like this:
RTS / CTS Delay
1 X100 ms
Data Carrier
(DCD)
Before sending a character string, the module activates the RTS (Request To Send) signal and waits for the CTS (Clear To Send) signal to be activated.
This allows you to enter: l the maximum waiting time between the two signals. If this time expires, the request is not sent to the bus. l l the value is expressed in hundredths of milliseconds, the default value is 0 ms, l l l the value must be between 0 s and 10 s, the value 0 specifies that there is no management of the delay between the two signals.
carrier management (DCD signal, Data Carrier Detected) is only used when communicating with a controlled carrier modem: l l if this option is selected, characters can only be received if the DCD carrier signal has been detected, if this option is not selected, all characters received are taken into account.
TLX DS COM PL7 xxE
35
Modbus configuration
36
TLX DS COM PL7 xxE
Programming Modbus communication
3
Introduction
Aim of this section
What's in this
Chapter?
This section describes the Programming process during set-up of Modbus communication.
This Chapter contains the following Maps:
Topic
Modbus master communication function
Modbus slave communication function
Using the SEND_REQ communication function
Example 1: SEND_REQ function with Echo request
Example 2: SEND_REQ function with Word read request
Example 3: READ_VAR function for reading bits
Page
TLX DS COM PL7 xxE
37
Modbus programming
Modbus master communication function
At a Glance This page describes the services that are available on the TSX Micro or TSX
Premium master stations of a Modbus link. For more information regarding Modbus function codes, please refer to the Modbus user guide TSX DG MDB E.
Note: The assisted data entry function does not work with Modbus addressing on a TSX Micro.
Data exchange The following requests are addressed to the slave device with which you wish to carry out variable read or write operations.
These requests use the READ_VAR and WRITE_VAR communication functions. See
(PL7 Micro/Junior/Pro ; Communication applications ; Volume 1) and (PL7 Micro/
Junior/Pro ; Communication applications ; Volume 1).
Modbus request
Read bits
Read words
Write one or n bits
Write one or n words
Read discrete inputs*
Read input words*
* except on Terminal port
Function code
16#01
16#03
16#05 or 16#0F
16#06 or 16#10
16#02
16#04
Communication function
READ_VAR
READ_VAR
WRITE_VAR
WRITE_VAR
READ_VAR
READ_VAR
Note: Write utilities can be sent in transmission. In this case no response is returned to the transmitter. We therefore recommend that you configure a time-out to acknowledge the activity bit of the function.
Example of reading words
The example applies to the reading of word 4 (%MW4) in the Modbus slave 3.
READ_VAR ( ADR#0.1.3, ‘%MW’,4,1,%MW100:1,%MW200:4)
38
TLX DS COM PL7 xxE
Modbus programming
Diagnostics and maintenance
The diagnostics and maintenance information of Modbus slaves uses the
SEND_REQ communication function. (See : PL7 Micro/Junior/Pro ; Communication applications ; Volume 1)
Modbus request
Exception status
Diagnostics
Event counter
Connection event
Slave identification
Function code/ Sub-function code
Communication function
16#07
16#08 / 16#xx
SEND_REQ
SEND_REQ
16#0B
16#0C
16#11
SEND_REQ
SEND_REQ
SEND_REQ
TLX DS COM PL7 xxE
39
Modbus programming
Modbus slave communication function
Introduction This page describes the services managed by the slave modules for a Modbus link.
Data exchanges The slave module manages the following requests:
Modbus request
Read n output bits
Read n input bits
Read n output words
Read n input bits
Write an output bit
Write an output word
Write n output bits
Write n output words
Function code / subfunction code
16#01
16#02
16#03
16#04
16#05
16#06
16#0F
16#10
PLC object
%M
%M
%MW
%MW
%M
%MW
%M
%MW
Diagnostics and maintenance
The diagnostics and maintenance information which are accessible from a Modbus link are shown below:
Designation
Read exception status
Echo
Initialize module
Read the diagnostic registers of the PLC
Change end of frame delimiter (ASCII mode)
Switch to listening mode
Reset counters
Number of messages received without CRC error
Number of frames received with CRC error
Number of exceptional responses
Number of messages addressed to the PLC
Number of broadcast messages received
Number of correct responses
Number of messages received in listening mode
Number of invalid characters received
Function code / subfunction code
16#07
16#08 / 16#00
16#08 / 16#01
16#08 / 16#02
16#08 / 16#03
16#08 / 16#04
16#08 / 16#0A
16#08 / 16#0B
16#08 / 16#0C
16#08 / 16#0D
16#08 / 16#0E
16#08 / 16#0F
16#08 / 16#10
16#08 / 16#11
16#08 / 16#12
40
TLX DS COM PL7 xxE
Designation
Read event counter
Read connection event
Read identification
Modbus programming
Function code / subfunction code
16#0B
16#0C
16#11
TLX DS COM PL7 xxE
41
Modbus programming
Using the SEND_REQ communication function
At a Glance The UNI-TE Action-object request (request code 16#9F) is used to transmit all
Modbus (See : PL7 Micro/Junior/Pro ; Communication applications ; Volume 1) functions.
After executing this request, the report is always 16#CF00.
To check the exchange, it is also necessary to test the content of the first word in the reception table.
l l
Possible values of the first word:
0: indicates that the exchange has been performed,
1: indicates that the exchange has not been performed, l l l l l
The transmission buffer should contain the following information: l first word: l l
Byte 0: function code,
Byte 1: sub-function code, second word: Modbus function identifier, which is always 16#0296 third word = 0: reserved fourth word: Modbus function parameters fifth word: Modbus function parameters n th word: Modbus function parameters
Note: This function is not available in Modbus master mode on the Terminal port.
42
TLX DS COM PL7 xxE
Modbus programming
Example 1: SEND_REQ function with Echo request
At a Glance
Question
This example concerns the Echo diagnostics function. This function requests that the interrogated slave return the message sent by the master in full.
The communication function is as follows:
SEND_REQ(ADR#0.1.x,16#9F,%MW10:10,%MW50:30,%MW100:4)
Before sending the function it is necessary to initialize the following words:
Words
%MW10
Value Description
:= 16#0008 corresponds to the Echo function (byte 0 = 16#08, byte 1
=16#00
%MW11
%MW12
:= 16#0296 corresponds to the identification of the Modbus function
:= 0 reserved
%MW13 := 16#1234 corresponds to the Echo function parameter. For this example, the slave must return the value 16#1234
%MW103 := 8 (bytes) length of the data to be transmitted in bytes
Response
%MW50
:= 0 if action taken
:= 1 if action not taken
The slave response, contained in the %MW50:30 reception buffer, is of type:
%MW51 Description
:= 16#0008 corresponds to the Echo function (byte 0 = 16#08, byte 1 =16#00)
%MW52 to %MW79 contain the Modbus response data. For this example
%MW52:= 1234
:= 16#0007 incorrect request parameters
:= 16#0004 incorrect question parameters
:= 16#0688 byte 0 =16#80 + function code (16#08 for Echo) byte 1 = 16#06 Modbus error code (the slave is busy)
:= 16#0188 byte 0 =16#80 + function code (16#08 for Echo) byte 1 = 16#01 Modbus error code (the function is unknown)
:= 16#0388 byte 0 =16#80 + function code (16#08 for Echo) byte 1 = 16#03 Modbus error code (the data is invalid)
TLX DS COM PL7 xxE
43
Modbus programming
Example 2: SEND_REQ function with Word read request
At a Glance
Question
The example deals with the reading of 4 input words at address 10 of a third-party device. These words are then copied in %MW52:5.
The communication function is as follows:
SEND_REQ(ADR#0.1.x,16#9F,%MW10:10,%MW50:30,%MW100:4)
Before sending the function it is necessary to initialize the following words:
Words
%MW10
Value
:= 16#0004
Description corresponds to the read function of n input words (byte 0 =
16#04, byte 1 = 16#00)
%MW11
%MW12
%MW13
%MW14
:= 16#0296
:= 0
:= 16#0A00
:= 16#0400 corresponds to the identification of the Modbus function reserved address of the first word to read (1) number of words to read (1)
%MW103 := 10 (bytes) length of the data to be transmitted in bytes
Note: (1) the most significant bytes and the least significant bytes must be inverted.
Response
%MW50
:= 0 if action taken
The slave response, contained in the %MW50:30 reception buffer, is of type:
%MW51 Description
:= 16#0004 corresponds to the read function of n input words (byte 0 = 16#04, byte 1
= 16#00)
%MW52 to %MW79 contain the Modbus response data: l %MW52:= PF
0
0A l l l l l byte 0 = 16#0A: length received in bytes (10 bytes) byte 1 = PF
0
: most significant byte of first word
%MW53:= PF
1
pf
0 l byte 0 = pf
0
: least significant byte of first word byte 1 = PF
1
: most significant byte of second word
%MW54:= PF
2
pf
1 l l byte 0 = pf
1
: least significant byte of second word byte 1 = PF
2
: most significant byte of third word
44
TLX DS COM PL7 xxE
%MW50
:= 1 if action not taken
Modbus programming
%MW51 Description
:= 16#0007 incorrect request parameters
:= 16#0004 incorrect question parameters
:= 16#0688 byte 0 =16#80 + function code (16#08 for Echo) byte 1 = 16#06 Modbus error code (the slave is busy)
:= 16#0188 byte 0 =16#80 + function code (16#08 for Echo) byte 1 = 16#01 Modbus error code (the function is unknown)
:= 16#0388 byte 0 =16#80 + function code (16#08 for Echo) byte 1 = 16#03 Modbus error code (the data is invalid)
Note: To retrieve the words read, use the instruction ROR1_ARB.
TLX DS COM PL7 xxE
45
Modbus programming
Example 3: READ_VAR function for reading bits
General
Example with
READ_VAR
Exchanges with Modbus slave devices are programmed using the READ_VAR and
WRITE_VAR communication functions only (the SEND_REQ function is not supported on the TER port).
Description of the objects used in the example:
Object
%MW0:X0
%M20
%MW100:10
Description
Request transmission request
Requesting
Reception buffer
%MW200..203
Report zone:
%MW200 Session number and activity bit (X0)
%MW201 Error code
%MW202 Time-out in units of 10 ms
%M30
%MW204
%MW205
%MW206
%MW207
Bit set to 1 after a successful exchange
Counter of requests sent
Counter of successful requests
Counter of unsuccessful requests
Error code of the last unsuccessful request
Example of the program:
!(*Reading of bits %M0 to %M8 from the Nano at address 37 *)
IF %MW0:X0 AND NOT %M20 THEN
%MW200:4:=0;%MW202:=50;SET %M20;
READ_VAR(ADR#0.0.37,’%M’,0,8,%MW100:10,%MW200:4);
(*8 bits %M0..%M7 are read in the slave 37 and placed in the
%MW100 word of the master*)
END_IF;
!(*Analysis of the results*)
IF %M20 AND NOT %MW200:X0 THEN
INC %MW204;RESET %M20;RESET %MW0:X0;
IF %MW201=0 THEN INC %MW205;SET %M30;
ELSE INC %MW206;%MW207:=%MW201;RESET %M30;
END_IF;
46
TLX DS COM PL7 xxE
Debugging Modbus communication
4
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter describes the Debugging process during set-up of Modbus communication.
This Chapter contains the following Maps:
Topic
Modbus debug screen
Modbus Master debugging screen
Debug screen in Modbus slave type
How to test a communication channel
Page
TLX DS COM PL7 xxE
47
Modbus debugging
Modbus debug screen
At a Glance
Illustration
This screen is split into two and enables the declaration of the communication channel and gives access to the debug parameters for a Modbus link.
The Modbus Communication Screen looks like this:
1
2
TSX 57352 [RACK 0 POSITION 1]
Debug
Designation: TSX P 5735 PROCESSOR Version: 3.0
DIAG...
CHANNEL 1
CHANN TSX SCP 111 RS232 MP PCMCIA CARD
MODBUS/JBUS LINK DIAG...
Type:
Slave
Counters
Received without CRC error
Received with exception code
Received in broadcast mode
Slave BUSY or LOM
0
0
Received with CRC error
Message for the CPU
Sent with NACK
0
0 Character error
Reset counters
Channel test
Slave
Identification
1
Enter request
Response reception
ASCII Hexa
0
0
0
0
Nodes and
Functions
This table describes the different zones which make up the debug screen:
Address Zone
1 common
2 specific
Function
(See : PL7 Micro/Junior/Pro ; Communication applications ;
Volume 1) gives access to the debug parameters of a Modbus link.
It differs according to the type of Modbus function configured: l l either Modbus master, or Modbus slave.
48
TLX DS COM PL7 xxE
Modbus debugging
Modbus Master debugging screen
At a Glance
Type Window
Counters
Window
Channel Test window
The specific part is divided into three windows: l l l the Typewindow, the Counterswindow, the Channel testwindow.
The window looks like this:
Type
Master
It recalls the type of Modbus function configured (master).
The window looks like this:
Counters
Received without CRC error
Received with exception code
Transmission in progress
Retries
0
0
Received with CRC error
Sent without response
Received with NACK
0
0 Character error
Reset counters
0
0
0
0
This window displays the different counters (in slave configuration).
the Reset Counters button resets these counters to zero.
Where Modbus is on the Terminal Port, this window displays the status of the system words (See
System objects of the Modbus function on Terminal port, p. 63)
used by this function. These may also be viewed with a variables animation table.
The window looks like this:
Channel test
Slave
Identification
1
Enter request
Response reception
ASCII Hexa
This window enables you to test communication channels by transmitting a request to one of the slave stations present on the bus.
For the TSX SCY 11601 module's built in channel, the slave number values to be searched lie between 1 and 247. The values for other channels supporting
MODBUS/JBUS Master lie between 1 and 98.
Note: This window is not available when Modbus is in use on the Terminal Port.
TLX DS COM PL7 xxE
49
Modbus debugging
Debug screen in Modbus slave type
At a Glance
Type Window
Counters
Window l l l
The specific part is divided into three windows: the Typewindow, the Counterswindow, the Channel testwindow: this window cannot be used in this mode.
The window is as below:
Type
Slave
It recalls the type of Modbus function configured (slave).
The window is as below:
Counters
Received without CRC error
Received with exception code
Reception broadcast
Slave BUSY or LOM
0
0
Received with CRC error
Message for the CPU
Sent with NACK
0
0 Character error
Reset counters
0
0
0
0
This window displays the different counters (in slave configuration).
the Reset counters button resets these counters to zero.
Counter Slave Busy or LOM: l Slave Busy: this counter is incremented by the slave when it receives a request from the master while in the process of processing another request. This happens when the master sends a request. It does not wait for a response from the slave and may send another request, l Slave LOM: (Listen Only Mode) is the operating mode of a slave which is only in listen mode. It never responds to frames sent by the master. In this case, this counter indicates the number of frames received by the slave.
50
TLX DS COM PL7 xxE
Modbus debugging
How to test a communication channel
Introduction This page shows the procedure for testing a communication channel from the debugging screen.
How to identify a station
The following procedure is used to identify a designated station.
Step
1
2
Actions
Select the address of the slave to be interrogated using the Slave field.
Click on the Identification button.
Result
The response appears in the Receive Response window:
Receive response
.....TSX 3721...!0....
Ascii Hex.
How to send a request
TLX DS COM PL7 xxE
The following procedure is used to send a request, other than those provided by the command buttons, to a designated station. The example deals with transmission of the Echo request (function code: 08; sub-function code: 00; data to be sent 1144).
Step
1
2
Action
Select the address of the slave to be interrogated using the Slave field.
Click on the Enter Request button.
Result
The following window appears:
Enter Request
Function code (hexadecimal) 03
Code in functions and/or data (hexadecimal)
001144
Send Cancel
3
4
Enter the function code (coded in hexadecimal on one byte), corresponding to the request that you want to send.
Enter the sub-function code (coded in hexadecimal on one byte), corresponding to the request that you want to send.
51
Modbus debugging
Step
5
6
Action
Enter the data to be sent by encoding all the data in hexadecimal on 2 bytes (4 characters). Enter the data continuously without any intervening spaces.
Click on the Send button.
Result
The response appears in the Receive Response window:
Channel test
Slave
Identification
1
Enter Request
Receive response
08 00 00 00 11 44
Ascii Hex.
The response contains: l l l the function code on 2 bytes (08 00), the sub-function code on 2 bytes (00 00), the data on 2 bytes (11 44),
52
TLX DS COM PL7 xxE
Language objects associated with
Modbus communication
5
Introduction
Aim of this
Section
What's in this
Chapter?
This Chapter introduces the language objects linked to Modbus communication.
This Chapter contains the following Maps:
Topic
Implicit exchange language object for a Modbus function
Explicit exchange language objects for a Modbus function
Explicit exchange management and report
Language objects associated with the configuration
System objects of the Modbus function on Terminal port
Page
53
TLX DS COM PL7 xxE
Modbus language objects
Implicit exchange language object for a Modbus function
At a Glance
Bit objects
This page describes all implicit exchange language objects for a Modbus function, which can be displayed or modified by the application program. See (PL7 Micro/
Junior/Pro ; Communication applications ; Volume 1).
The table below shows the different implicit exchange bit objects.
Object (1) Function
%Ixy.MOD.ERR
Module error bit
%Ixy.i.ERR
Channel error bit
Meaning
When this bit is at 1, it indicates a module error
(at least one of the channels is faulty, etc.)
When this bit is at 1, it indicates a line fault.
Key
(1) xy.i address l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the channel number
Word objects in
Modbus master mode
The table below shows the different implicit exchange word objects.
Object (1)
%IWxy.i.0
Function
Input signals
Meaning
Common signals (2): l l l l x0 = 1: DCD signal x1 = 1: RI signal x2 = 1: CTS signal x3 = 1: DSR signal
Key
(1)
(2) xy.i address l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the channel number only on RS232
Note: These objects are not available on the Terminal port
54
TLX DS COM PL7 xxE
Modbus language objects
Word objects in
Modbus slave mode
The language objects are identical to those of the Modbus master function. Only the objects defined in the following tables are different.
The table below shows the different implicit exchange word objects.
Object (1) Function
%IWxy.i.0
Input signals
Meaning
Specific data l x8 = 1: listen only mode
Key
(1) xy.i address l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the channel number
Note: These objects are not available on the Terminal port
TLX DS COM PL7 xxE
55
Modbus language objects
Explicit exchange language objects for a Modbus function
At a Glance This page describes all explicit exchange language objects for a Modbus master function, which can be displayed or modified by the application program. See (PL7
Micro/Junior/Pro ; Communication applications ; Volume 1).
Word objects in master mode
The table below shows the different explicit exchange word objects.
Object (1) Function
%MWxy.MOD.2
Module status
%MWxy.i.2
%MWxy.i.3
Channel standard status l l l l l l l l l l l l l l
Meaning l l x0 = 1: defective module (3) x1 = 1: functional fault (fault between the processor and the module, adjustment or configuration fault, etc.) x2 = 1: terminal strip error (not connected) x3 = 1: self-tests in progress (3) x4 = 1: reserved x5 = 1: hardware or software configuration fault
(the module present is not the one declared in the configuration, the sub-modules are not compatible) x6 = 1: module missing (3) x7 = 1: fault in one of the sub-modules x0 = 1: no device is working on the channel x1 = 1: a device on the channel is faulty x2 = 1: terminal strip error (not connected) x3 = 1: timeout error (faulty wiring) x4 = 1: self-tests in progress x5 = 1: hardware or software configuration fault
(the channel present is not the one declared in the configuration) x6 = 1: communication fault x7 = 1: application fault (error in the configuration, adjustment error, etc.)
Byte 0 = 16#06 for the Modbus master function
%MWxy.i.4
%MWxy.i.5
%MWxy.i.6
%MWxy.i.7
Specific channel status
Error counter (2)
Error counter (2)
Error counter (2)
Error counter (2)
Number of responses received without CRC error
Number of messages received with CRC error
Number of responses received with an exception code
Number of master messages sent without response
56
TLX DS COM PL7 xxE
TLX DS COM PL7 xxE
(2)
(3)
(4)
(5)
Object (1)
%MWxy.i.8
%MWxy.i.9
%MWxy.i.10
%MWxy.i.11
%MWxy.i.15
Function
Error counter (2)
Error counter (2)
Error counter (2)
Error counter (2)
Command (2)
Modbus language objects
Meaning
Number of transmissions broadcast
Number of receipts with NACK
Number of master messages repeated
Number of character errors l l l l l x0 = 1: Reset counter x8 = 1: DTR signal ON (5) x9 = 1: DTR signal OFF (5) x14 = 1: change from Modbus to character mode (modem) (4) x15 = 1: change from character mode (modem) to Modbus (4)
Key
(1) xy.i address l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the channel number
These objects are not available on the Terminal port
These objects are not managed by TSX SCY 11601/21600/21601 modules.
These objects are not available on the TSX SCY 11601 module.
Modbus on RS232.
57
Modbus language objects
Word objects in
Modbus slave mode
The language objects for the Modbus slave function are identical to those of the
Modbus master function.
Only the objects defined in the following table are different.
Object (1) Function Meaning
%MWxy.MOD.2 Module status l x0 = 1: defective module (2) l x1 = 1: functional fault (fault between the processor and the module, adjustment or configuration fault, etc.) x2 = 1: terminal strip error (not connected) l l l l x3 = 1: self-tests in progress (2) x4 = 1: reserved x5 = 1: hardware or software configuration fault (the module present is not the one declared in the l l configuration, the sub-modules are not compatible) x6 = 1: module missing (2) x7 = 1: fault in one of the sub-modules
%MWxy.i.2
Channel standard status l l l l l l l l x0 = 1: no device is working on the channel x1 = 1: a device on the channel is faulty x2 = 1: terminal strip error (not connected) x3 = 1: timeout error (faulty wiring) x4 = 1: self-tests in progress x5 = 1: hardware or software configuration fault (the channel present is not the one declared in the configuration) x6 = 1: communication fault x7 = 1: application fault (error in the configuration, adjustment error, etc.)
%MWxy.i.3
Specific channel status
Byte 0 = 16#07 for the Modbus slave function
%MWxy.i.7
%MWxy.i.8
%MWxy.i.10
Error counter
Error counter
Error counter
Number of messages for the CPU
Number of broadcast receipts
Number of messages received during Slave busy or
LOM
Key
(1)
(2) xy.i address l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the channel number
These objects are not managed by TSX SCY 11601/21600/21601 modules.
58
TLX DS COM PL7 xxE
Modbus language objects
Explicit exchange management and report
At a Glance
Word objects
This page describes all language objects which manage explicit exchanges. (See :
PL7 Micro/Junior/Pro ; Communication applications ; Volume 1)
The table below shows the different word objects for managing explicit exchanges.
Object (1) Function
%MWxy.MOD.0
Exchanges in progress on module
Meaning l x0 = 1: reading statuses
%MWxy.MOD.1
%MWxy.i.0
%MWxy.i.1
Module report
Exchanges in progress on channel
Channel report l l l x0: status read report (0 = ok) x0 = 1: reading statuses x1 = 1: sending command parameters to the communication channel l l x0: status read report (0 = ok) x1 = 0: command parameters received and accepted by the communication channel
Key
(1) Address xy.i l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the channel number
TLX DS COM PL7 xxE
59
Modbus language objects
Language objects associated with the configuration
At a Glance This page describes all configuration language objects enabling Modbus communication which can be displayed by the application program.
Objects for the
Modbus master function (where
Terminal Port is inoperative)
The following table describes internal constants for the Modbus master function
(except on the Terminal Port):
Object
%KWxy.i.0
%KWxy.i.1
%KWxy.i.2
Function
Type
Speed / Format
Meaning
Byte 0 = 16#06 for Modbus master function
Byte 1: reserved
Byte 0 = speed l 128 = 300 bits/s, 129 = 600 bits/s (only for TSX
SCP 111) l l l l l 00 = 1200 bits/s, ..., 04 = 19200 bits/s
Byte 1 = format x8: bit number (1 = 8 bits, 0 = 7 bits) x9: parity management (1 = with, 0 = without) x10: Parity Type (1 = odd, 0 = even) x11: stop bit (1 = 1 bit, 0 = 2 bits)
Value in ms from 2 ms to 10 000 ms
%KWxy.i.3
%KWxy.i.4
%KWxy.i.5
Delay between characters
Wait Time
Retries and Signal
Management
RTS / CTS Delay
Wait Time in ms from 10 ms to 10 000 ms
Byte 0 = number of retries (3 by default)
Byte 1 = Signal Management l x8 = 1 if PSR signal management
(TSX SCP 112) l x10 = 1 if DCD Data Carrier management
(TSX SCP 111)
Delay time in hundredths of ms, only for TSX SCP
111 (default value 0 ms)
60
TLX DS COM PL7 xxE
Modbus language objects
Objects for
Modbus master function on
Terminal Port
The following table describes internal constants for the Modbus master function on the Terminal Port:
Object
%KW0.0.0
%KW0.0.1
%KW0.0.2
Function
Type/Speed
Format/delay between characters
Number of retries/ response time
Meaning
Byte 0 = 16#06 for Modbus master function
Byte 1 = Transmission Speed: l 00 = 1200 bits/s, ..., 04 = 19200 bits/s
Byte 0 = format l l l l x0: number of bits (1 = 8 bits, 0 = 7 bits) x1: parity management (1 = with, 0 = without) x2: Parity Type (1 = odd, 0 = even) x3: stop bit (1 = 1 bit, 0 = 2 bits)
Byte 1 = delay between characters depending on the speed: l l l l l
1200: from 29 ms to 255 ms
2400: from 15 ms to 255 ms
4800: from 7 ms to 255 ms
9600: from 4 ms to 255 ms
19200: from 2 ms to 255 ms
Byte 0 = number of retries (0 to 15)
Byte 1 = response time (200 ms to 10 s)
Objects for
Modbus slave function (where
Terminal Port is inoperative)
The language objects for the Modbus slave function are identical to those of the
Modbus master function.
Only the objects in the following table differ:
Object
%KWxy.i.0
%KWxy.i.3
Function
Type
Slave Addresses
Meaning
Byte 0 = 16#7 for Modbus slave function
Byte 1: reserved
Byte 0: slave number value (0 to 98) l Byte 0: l for TSX SCY21600/21601, the slave number value is between 0 and 98.
l for TSX SCY 11601, the slave number value is between 0 and 247.
l Byte 1: reserved
TLX DS COM PL7 xxE
61
Modbus language objects
Objects for
Modbus slave function on
Terminal Port
The language objects for the Modbus slave function are identical to those of the
Modbus master function on the Terminal Port.
Only the objects in the following table differ:
Object
%KW0.0.0
%KW0.0.2
Function
Type
Slave Number
Meaning
Byte 0 = 16#7 for Modbus slave function
Byte 0: slave number value (1 to 98)
62
TLX DS COM PL7 xxE
Modbus language objects
System objects of the Modbus function on Terminal port
At a Glance
Bit objects
In Modbus mode on the Terminal port, the Micro uses the system objects below for the communication diagnostics.
Table of bit objects
Object
%S80
%S81
Description
Global reset to 0 of the communication counters
Reset to 0 of the Modbus system words on Terminal port This system bit is set to 1 by the application and reset to 0 by the system
Word objects
Note: The system words are also reset to 0 when there is a cold start (%S0 =1).
Table of word objects
Objects Description
%SW100 Number of messages received without CRC error
%SW101 Number of messages received with CRC error
%SW102 Number of messages received with an exception code
%SW103 Number of master messages sent without response
%SW104 Number of transmissions broadcast
%SW102 Number of receipts with NACK
%SW106 Number of master messages repeated
%SW107 Number of character errors
TLX DS COM PL7 xxE
63
Modbus language objects
64
TLX DS COM PL7 xxE
Communication via Modem
II
Introduction
Aim of this part
What's in this part?
This part introduces the principles of configuring and communicating using a TSX
MDM 10 modem via PL7 software.
This Part contains the following Chapters:
Chapter
6
7
8
9
10
11
Chaptername
Communication via Modem
Configuring Modem communication
Programming Modem communication
Debugging Modem communication
Language objects associated with Modem communication
Appendices
Page
65
TLX DS COM PL7 xxE
Communication via Modem
66
TLX DS COM PL7 xxE
Communication via Modem
6
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter introduces communication using a TSX MDM 10 modem and its services.
This Chapter contains the following Sections:
Section
6.1
6.2
6.3
Topic
Introduction to communication via Modem
Characteristics
Setting up communication via Modem
Page
TLX DS COM PL7 xxE
67
General
6.1
Introduction to communication via Modem
Introduction
Aim of this
Section
What's in this
Section?
This Section presents a summary description of communication using a TSX MDM
10 modem and its associated services.
This Section contains the following Maps:
Topic
Modems
Standard configuration for communication via modem
Other configurations for communication via modem
Principles of communication between two stations
Page
68
TLX DS COM PL7 xxE
General
Modems
Introduction
Associated manuals
A large number of applications use communication via modem.
Communication via the TSX MDM 10 modem can be used to access remote stations using the switched public telephone network in order to carry out checks, diagnostics or long distance control.
If you require further information you should consult the following manuals:
Title
TSX Micro PLCs - Installation manual
Premium TSX PLCs - Installation manual
Description
Hardware installation
Hardware installation
TLX DS COM PL7 xxE
69
General
Standard configuration for communication via modem
Introduction The standard configuration allows for communication between stations or other devices connected to a switched telephone network.
Configuration and services
The following diagram shows the standard configuration for communication via modem and the different services.
Programming terminal
Telephone
Fax
Pocket size receiver
Programming
Debugging
Commands
Switched telephone network
Sending back alarms and measurements
Remote station 1
Variable exchanges
Commands
Alarms and measurements
Remote station n
70
TLX DS COM PL7 xxE
General
Other configurations for communication via modem
Introduction
External
CALL_MODEM function
From a local network station, it is possible to call a remote station on the switched telephone network via another station with a modem connection.
A CALL_MODEM communication function is sent by a network station.
Programming terminal Calling station
Station 1.3
External CALL_MODEM function
CALL_MODEM(ADR#{1.1}0.1.SYS, ..
FIPWAY 1 network
Station 1.1
Master
Called station
Address slave
1 and 2
Switched telephone network
Once a link has been established, communication is possible in both directions while respecting transparency rules.
Moreover, a slave station on the switched telephone network can access the entire network architecture while respecting addressing rules.
TLX DS COM PL7 xxE
71
General
Local
CALL_MODEM function
A CALL_MODEM communication function is sent by the station supporting the TSX
MDM 10 card.
Programming terminal
Station 1.3
Local CALL_MODEM function
CALL_MODEM(ADR#0.1.SYS, ...
FIPWAY 1 network
Called station
Station 1.1
Calling station
Master
Address slave
1 and 2
Switched telephone network
72
TLX DS COM PL7 xxE
General
Principles of communication between two stations
Introduction The call direction is from station A to station B:
Operation
Station A station where call is to be made (transmitter)
Switched telephone network
Station B called station
(receiver)
The following table describes the different stages of communication between two stations:
Phase
1
2
3
4
5
6
Description
While idle, all modems are by default awaiting a possible connection request.
Station A sends a call request to number X on station B using AT commands
(or using the CALL_MODEM communication function in the case of a PLC).
An exchange procedure between the modems results in the line being established point by point between station A and station B. Connection is established if the correct password is used (if password management is employed).
Stations A and B then dialog according to the protocol chosen on calling, whether Uni-telway or character mode. Communication is carried out using the standard communication functions. Each station can initiate exchanges.
In Uni-telway mode, by default, the calling station is the slave and the station called is the master. To ensure compatibility with existing applications, it is possible to set the parameters of the CALL_MODEM communication function so that the local station remains in master Uni-telway mode.
Station A sends a request for disconnection to its local modem.
Stations A and B return to their initial state, and are able to initiate another call.
TLX DS COM PL7 xxE
73
General
6.2
Characteristics
Introduction
Aim of this
Section
What's in this
Section?
This Section introduces the characteristics and constraints of communicating using a TSX MDM 10 modem.
This Section contains the following Maps:
Topic
Hardware Compatibility
Software compatibility
Page
74
TLX DS COM PL7 xxE
General
Hardware Compatibility
About PLCs This type of communication is available for PLCs that are at least version V3.3.
l l
TSX Premium via the PMMCIA TSX MDM 10 card,
TSX Micro accepting the PCMCIA described below.
The card can also be inserted in PCs that have type 3 PCMCIA card slots.
Note: For certain types of CPU, it is recommended that a PCMCIA memory card
( CALL_MODEM communication function occupying 25 Kb of program memory space) is used.
Networks and
Devices l l l
The TSX MDM 10 communication card only connects to the STN - (Switched
Telephonic Network).
It cannot be connected: to specialized links, to NNIS (Numerical Network for Integrating Services) networks, to the GSM (Global System for Mobile) network.
Third-party modem compatibility is guaranteed for modems that are designed for
COM 1 switched telephonic network. See Communication between PLCs using an
About Protocols The TSX MDM 10 card supports the two character formats 10 or 11 bits.
For 11 bit communication between modems, compatibility is only guaranteed with modems designed for the COM 1 telephone network.
l l
The TSX MDM 10 is incompatible with configured third-party modems: with parity, with data compression and error correction.
In ASCII, the TSX MDM 10 card allows: l in called mode: l l transmission of data coded on 7 bits l reception of data coded on 8 bits.
in calling mode: l l transmission of data coded on 7 or 8 bits, reception of data coded on 7 or 8 bits.
TLX DS COM PL7 xxE
75
General
Software compatibility
X-WAY transparency
Transmission l l
The modem card provides X-WAY transparency, and supports two types of protocol:
Uni-telway master or slave protocol, character mode protocol.
When a local network station communicates with a remote station on the switched telephone network, the calling station must be in master mode, and the called station in slave mode.
The speed of transmission varies between 4800 bits/s and 9600 bits/s. The size of the frames sent is 256 bytes in total (240 bytes usable in Uni-telway mode, and 200 bytes in character mode).
Only one communication function can be active at a time on the TSX MDM 10 card.
The application must manage line disconnection. Only the station which initiated connection using External CALL_MODEM (See External CALL_MODEM function,
p. 71) has the right to disconnect the line.
The CALL_MODEM communication function ensures disconnection.
The TSX MDM 10 card defines a set operation for the INPUT_CHAR instruction.
When the INPUT_CHAR function is activated, the frame end character must be received before the end of the task cycle.
If several cycles are needed to receive this character, the character string is lost.
76
TLX DS COM PL7 xxE
General
The application Modem configuration requires PL7 software from version V3.3 onwards.
CAUTION
Downloading the application
The modem card cannot be used to up- or download a PL7 application.
If loading is initiated by mistake, a failure message will appear on connection and the PLC application will be lost.
However, it is always possible to load an application via the terminal port.
Failure to observe this precaution can result in injury or equipment damage.
The station called can recognize a maximum of 8 calling stations for TSX Micro
PLCs, and 16 for TSX Premium PLCs where the password service is used. Only the
TSX MDM 10 card ensures the management of passwords. For third party devices, passwords are managed according to the coding protocol for password exchanges.
See
TLX DS COM PL7 xxE
77
General
6.3
Setting up communication via Modem
Introduction
Aim of this
Section
What's in this
Section?
This Section introduces a summary description of setting up communication via a
TSX MDM 10 modem.
This Section contains the following Maps:
Topic
Set up methodology
Setting up UNI-TELWAY communication between PLCs via the TSX MDM 10 card
Page
Communication between PLCs using an external modem
Setting up communication from PL7
How to configure the Uni-telway driver with a modem
How to Configure Modem Connection
How to modify modem configuration parameters
78
TLX DS COM PL7 xxE
General
Set up methodology
Introduction Functions supported by the TSX MDM 10 card can immediately process, without l l prior configuration, the most common operations as follows: communication between PLCs with a TSX MDM modem card, communication from PL7 software to a PLC with a TSX MDM 10 modem card.
TLX DS COM PL7 xxE
79
General
Setting up UNI-TELWAY communication between PLCs via the TSX MDM 10 card
Introduction The two stations are connected to the switched telephone network by TSX MDM 10 cards.
Switched telephone network Calling station Called station
Calling station The calling station is a PLC with a TSX MDM 10 card.
Step
1
2
3
Action
Declare the TSX MDM 10 card by default.
Default values: l l l l
Uni-telway protocol transmission speed of 9600 bits/s automatic switch to slave mode on addresses 1 and 2 no password management
Confirm configuration.
Program the CALL_MODEM communication function to call the remote station.
CALL_MODEM(ADR#0.1.SYS, 1, %MB100:20, 0, 0, %MW256:4)
Values: l l l l l address: ADR#0.1.SYS
command: 1 connection option: 0 slave mode: 0 report: %MWx:4
Called station The called station is a PLC with a TSX MDM 10 card.
Step
1
2
Action
Declare the TSX MDM 10 card by default.
Default values: l l l l
Uni-telway protocol transmission speed of 9600 bits/s automatic switch to master mode on addresses 1 and 2 no password management
Confirm configuration.
80
TLX DS COM PL7 xxE
General
Communication between PLCs using an external modem
Introduction One of the stations is a PLC connected to the telephone network via an external modem.
The other station is a PLC connected to the telephone network via the TSX MDM 10 card.
Description of the hardware configuration:
Calling station
PLC with a TSX
SCP 111 card
Switched telephone network
External modem from COM1
Called station
PLC with a TSX
MDM 10 card
TSX MDM 10 card end
TSX SCP 111 card end
The TSX MDM 10 card is configured with the default values from the configuration screen in Uni-telway mode.
The TSX SCP 111 is configured with the default values from the configuration screen in Uni-telway master mode, where the number of slaves is equal to 2 and the wait timeout must be set to the default value (2 s).
l l l
The external modem from COM1 is configured with the following AT commands: l AT&F&K%C0 where: l &F: sends the default configuration, l &K: flow control deactivated, l %C0: data compression deactivated
ATS0=2 : sets 2 rings before automatic reply
AT&D0
AT&D2
: if the DTR signal has not been set to 1 in the TSX SCP 111 card
: if the DTR signal has been set to 1 in the TSX SCP 111 card
TLX DS COM PL7 xxE
81
General
Setting up communication from PL7
Introduction One of the stations is a PC with PL7 software, and is connected to the telephone network either by: l l an external modem from COM1, a PCMCIA card from COM1, l or the TSX MDM 10 card if the PC has three PCMCIA slots.
The other station is a PLC connected to the telephone network via the TSX MDM 10 card.
External modem or PCMCIA modem card
Switched telephone network
Calling station
PC with PL7
Called station
PLC with TSX
MDM 10
Note: The two stations communicate in Uni-telway mode only.
Calling station The calling station is a PC with PL7 software.
Step
1
Action
Declare the Uni-telway driver with the following values. See How to configure
the Uni-telway driver with a modem, p. 84
.
l l l l l slave mode addresses 1 and 2 transmission speed of 9600 bits/s modem option selected without parity
82
TLX DS COM PL7 xxE
General
Called station The called station is a PLC with a TSX MDM 10 card.
Step
1
2
Action
Declare the TSX MDM 10 card by default: l l l l
Uni-telway protocol transmission speed of 9600 bits/s automatic switch to master mode on addresses 1 and 2 no password management
Confirm configuration.
Operation from the calling station
The following table describes the how the calling station operates from the PL7 application:
Phase
1
2
Description
When the PL7 application is started in online mode, the external modem or the
PCMCIA modem card automatically dials the telephone number of the remote station, establishes the link, then responds to prompts.
Operation is then identical to how PL7 functions when directly connected to a terminal port. All functions are available, except for application downloading.
TLX DS COM PL7 xxE
83
General
How to configure the Uni-telway driver with a modem
At a Glance
Procedure
This procedure is used to configure the Uni-telway driver on Windows 95, 98 and NT systems for communication via modem.
This procedure describes the different steps of the configuration:
Step
1
2
3
4
5
6
Action
Click on the Drivers XWAY icon in the Windows Control Panel.
In the UNITELWAY DRIVER tab, click on the Configuration button
Select the Communications Port and click on Modify.
In the Modem Communication box of the Uni-Telway tab, check the Use
Modem box and configure the modem connection. See How to Configure
Where necessary, modify the link parameters. See How to modify modem
configuration parameters, p. 86
.
Click on the OK, OK, OK buttons.
84
TLX DS COM PL7 xxE
General
How to Configure Modem Connection
At a Glance
Procedure
This procedure is used to configure modem connection on Windows 95, 98 and NT systems to initialize communication.
This procedure describes the different steps of the configuration:
Step
1
Action
Once the Use Modem box is checked,
Result
Modem Communication
Use Modem
Hayes AT&F&KDT
Tel No.
Password
2668
User
2
3
OK Cancel
Enter the parameters of the Telephone Number fields, the Hayes
Initialization string and the password.
Note:
The initialization AT command to be entered is AT&F&KDT for modems from
COM1 (where &F: default configuration, &K: flow control deactivated, DT: dialing).
The telephone number is that of the station to be called (in example 2668).
The password is the one to be sent to the remote equipment, where this is configured with a list of callers with passwords (See
Confirm with the OK button.
TLX DS COM PL7 xxE
85
General
How to modify modem configuration parameters
Introduction
Procedure
This procedure is used to configure the send parameters on Windows 95, 98 and
NT systems for communication via modem.
This procedure describes the different steps of the configuration:
Step
1
Action
Select the Line Parameters tab
Result
Station Parameters
Uni-telway Line Parameters Advanced
2
3
Baud Rate
9600 Bits/s
Self Adaptation ( in sec )
Use 1
Data Bits
7 bits
8 bits
Parity
Odd
Even
None second
Stop Bits
1 bit
2 bits
RTS/CTS Delay
X 100 ms
Configure the send parameters: l l l
Parity: none
Data bits and Stop bits: identical to the parameters of the called station other parameters: not modified
Confirm with the Ok button.
86
TLX DS COM PL7 xxE
Configuring Modem communication
7
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter describes the Configuration process when setting up a TSX MDM 10 modem.
This Chapter contains the following Maps:
Topic
How to access PCMCIA modem card parameters
Modem configuration screen
Parameters in Uni-telway mode
Parameters in character mode
Modem parameters
Modem parameters for a called station
Modem parameters for a calling station
Page
87
TLX DS COM PL7 xxE
Modem configuration
How to access PCMCIA modem card parameters
Introduction
How to access the link
This operation describes how to access configuration parameters for the modem link via PCMCIA cards.
The following table shows the procedure for accessing the modem link:
Step
1
2
Action
Access the communication channel configuration screen.
Select the communication channel from the drop-down menu CHANNEL 1
Example
CHANNEL 1:
CHANNEL 1
(Link not configured)
CHANNEL 1
(No PCMCIA submodule)
MAST
3 Select the PCMCIA card from the drop-down menu TSX MDM 10 PCMCIA
MODEM CARD
Example
CHANNEL 1
CHANNEL 1 (No PCMCIA submodule)
(Link not configured) MAST
TSX FPP 200 PCMCIA FIPWAY CARD
TSX FPP 10 PCMCIA FIPIO CARD
TSX MBP 100 PCMCIA MODBUS+ CARD
TSX MDM 10 PCMCIA MODEM CARD
FCS SCP 111 PCMCIA CARD RS232 OPEN
FCS SCP 114 PCMCIA CARD RS485 OPEN
88
TLX DS COM PL7 xxE
Modem configuration
Modem configuration screen
Introduction
Illustration
This screen, split into two zones, is used to declare the communication channel and to configure the parameters necessary for a modem link.
The screen dedicated to modem communication looks like this:
TSX 57352 [RACK 0 POSITION 0]
Designation: TSX P PROCESSOR 57352
1
2
CHANNEL 1:
CHANNEL 1
UNI TELWAY LINK
TSX MDM 10 PCMIA MODEM CARD
MAST
Unitelway
Calling slave mode
Server address (AD0) 1
Number of server addresses (AD0) 2
Transmission Speed
9600 Bits/s
Wait timeout (ms)
Default 1000
Data
7 bits
8 bits
Parity
Even Odd
Stop
1 bit
2 bits
Without
Modem ...
Character mode …
Elements and functions
This table describes the different zones that make up the configuration screen:
Address Zone
1 common
2 specific
Function
See (See : PL7 Micro/Junior/Pro ; Communication applications
; Volume 1).
is used to select or complete modem link parameters.
It is split into three different types of information: l parameters concerning communication using Uni-telway protocol, l parameters concerning communication using character mode protocol l parameters concerning the modem
TLX DS COM PL7 xxE
89
Modem configuration
Parameters in Uni-telway mode
Introduction
Calling slave mode parameters
Transmission speed
The Uni-telway protocol is proposed by default.
To use a modem with the Uni-telway protocol, the Uni-telway transmission parameters must be completed.
They are split into six windows: l l l l l l the Calling slave mode window the Transmission speed window the Wait timeout window the Data window the Stop window the Parity window
The window looks like this:
Calling slave mode
Server address (AD0) 1
It is used to select card addresses: l Server address (AD0): selects the standard address used in Uni-telway slave mode l Number of addresses: selects the address number used in Uni-telway mode: l the default value is 2.
l if it is a calling station , you are advised to leave 2 as the value in this field.
The window looks like this:
Transmission Speed
9600 Bits/s l l
It is used to set the transmission speed: possible values are 4800 bits/s and 9600 bits/s.
you are advised to adjust transmission speed according to the remote devices.
90
TLX DS COM PL7 xxE
Wait timeout
Data
Stop
Parity
Modem configuration
The window looks like this:
Wait timeout (ms)
Default 1000
Wait timeout is the maximum waiting time for a link acknowledgment message from a remote device (not to be confused with the application response to READ_VAR , for l l l example): possible values are 30 ms and 30 s.
the default value is 1 s.
you are advised to adjust the transmission time to the transmission speed, and to increase the timeout over long distances (e.g. inter-continental links) or in the event of a poor quality telephone link.
The field cannot be modified. The Uni-telway protocol imposes use of 8 data bits per character.
You are advised to adjust this field according to the remote device. Generally the
Uni-telway protocol imposes use of 1 data bit per character.
Note: This field becomes unmodifiable if parity is odd or even.
The window looks like this:
Parity
Even Odd Without l l l
This field is used to define the addition or non-addition of a parity bit, and its type.
Possible values are Even, Odd, or none.
The default value is odd. Generally, parity is odd
You are advised to adjust this field according to the remote device. Generally, parity is odd for Uni-telway protocol.
TLX DS COM PL7 xxE
91
Modem configuration
Parameters in character mode
Introduction
Illustration
Parameters in character mode are used to configure the character mode protocol if the PL7 application uses this type of communication.
The configuration screen appears when Character mode is selected:
ASCII Configuration
Transmission Speed
9600 Bits/s
Data
7 bits
8 bits
Parity
Even Odd
Stop
1 bit
2 bits
Without
Stop on reception
Stop
CR LF 13
Character included
OK Cancel
Transmission speed
Data
Stop
Parity l l l
It is used to set the transmission speed: the default speed is 9600 bits/s.
possible values are 4800 bits/s and 9600 bits/s.
you are advised to adjust transmission speed according to the remote devices.
The Data field is used to enter the number of data bits for coding a character: l l l characters are coded on 7 or 8 bits.
the default value is 8 bits.
you are advised to adjust the number of data bits according to the remote devices.
The Stop field is used to set the number of stop bits employed for detecting the end l l l of a frame: possible values are 1 or 2 bits.
the default value is 1 bit.
you are advised to adjust the number of stop bits according to the remote devices.
This field is used to define the addition or non-addition of a parity bit, and its type.
l l l
Possible values are Even, Odd, or none.
The default value is odd.
You are advised to adjust the parity according to the remote devices.
92
TLX DS COM PL7 xxE
Stop on reception
Modem configuration l l l
The following parameters are used to define the end of message character(s): l Stop (cannot be modified): is used to activate stop on reception by an end character,
CR: is used to detect the end of a message by a carriage return,
LF: is used to detect the end of a message by a line feed, an entry field: is used to identify an end character which is different from a CR or
LF character, using a decimal value.
The possible values are: l l 0 to 255 if the data is coded onto 8 bits, l 0 to 127 if the data is coded onto 7 bits,
Character included (cannot be modified): is used to include the character at the end of the reception table for the PL7 PLC application.
TLX DS COM PL7 xxE
93
Modem configuration
Modem parameters
Introduction
Illustration
The modem configuration screen is used to configure: l l l l password management, dialing mode, call parameters, connection parameters.
The configuration screen appears when the Modem button is selected:
Modem configuration
Called
Password check
Password list:
9
10
11
12
13
14
15
16
6
7
8
3
4
1
2
5
Calling
Station password:
Call parameters
Dialing time (sec):
Delay between calls (sec):
Number of redial attempts:
60
60
3
Dial mode
Tone dial
Pulse dial
Connection parameters
Maximum connection time (s): 0
Maximum time between 2 frames (sec): 0
OK Cancel l l
Modem configuration is split into two windows: aCalled window aCalling window
94
TLX DS COM PL7 xxE
Modem configuration
Modem parameters for a called station
Introduction
Verifying the password
List of passwords
They are split into two parts: l l a Verify password field aPassword list
If the box is checked, password management by the called station is enabled.
By default, password testing is disabled.
If password management is used, each called station has a list of a maximum of 8 or 16 passwords which can be used to identify 8 or 16 separate devices (only authorizes connection for these 8 or 16 devices).
The size of a word must not exceed 8 characters max. (characters = upper and lower case letters, numbers or special characters).
TLX DS COM PL7 xxE
95
Modem configuration
Modem parameters for a calling station
Introduction
Station password
Call parameters
Dial mode
They are split into two parts: l l l l aStation password field aCall parameters window aDial mode window aConnection parameters window
Each station has its own password. It is used to identify the station. During a connection request, the calling station sends its password so that the called station can identify it and then authorize the connection.
For communication with other devices, the exchange protocol, described in exchange coding (See
Coding of exchanges, p. 104), must be supported by the
remote device.
These include all the parameters necessary in order to make a call: l Dialing time (60 seconds by default): corresponds to the duration of a call in seconds.
l Delay between calls (60 seconds by default): corresponds to the calling station waiting time, in seconds, between two connection attempts. If a connection l attempt fails, the PLC attempts another call after the waiting time if the number of redials has not been exceeded.
Number of redial attempts (3 redial attempts by default): is used to set the number of call attempts in the event of failed connection attempts. If the last call fails, the CALL_MODEM function, which launched the connection attempts, sends back an error report. If the number of redial attempts configured is 0, no redial attempts will be made.
l l
The dial modes are: either tone dial, or dialing.
96
TLX DS COM PL7 xxE
Connection parameters
Modem configuration
These include all the necessary parameters for a connection: l Maximum connection time (0 seconds by default): l is used to define the connection time in seconds. After this time has elapsed, the current connection will be stopped. This control is necessary if the sender station is not able to disconnect from the line following an application error l switching to STOP, or a system error.
l if the number of redial attempts configured is 0, this control will not be active.
Maximum time between two frames (0 seconds by default): l l if the time between two frames (in seconds) is greater than this maximum time, the connection will be broken off. This control is necessary in the event of an unused connection.
if the configured value is equal to 0 or greater than 360 seconds, communication will be broken off after 360 seconds.
TLX DS COM PL7 xxE
97
Modem configuration
98
TLX DS COM PL7 xxE
Programming Modem communication
8
Introduction
Aim of this
Chapter
What's in this
Chapter?
This chapter describes the Programming process for the setting up communication via a TSX MDM 10 modem.
This Chapter contains the following Maps:
Topic
CALL_MODEM communication function
Modem specific management parameters
Coding of exchanges
Guide to choosing connection parameters in Uni-telway mode
Guide to choosing connection parameters in character mode
Examples of connection, disconnection, and reset with a remote station
Examples of communication between two PLCs
Page
99
TLX DS COM PL7 xxE
Modem Programming
CALL_MODEM communication function
Introduction
Syntax
The CALL_MODEM communication function is used to manage connection with the
TSX MDM 10 card.
l l
It provides the option to: l connect a line between a TSX MDM 10 card and another TSX MDM 10 card, or a remote third party modem, l disconnect a line which has been established or is in the process of being established, reset the TSX MDM 10 card if necessary (following a protocol error, for example), send AT commands.
The syntax of the CALL_MODEM communication function is presented in the following format:
CALL_MODEM (ADR#0.1.SYS, 1, %MB100:20, 0, 0, %MW256:4)
The following table describes the different parameters of the function:
Parameter
ADR#0.1.SYS
1
%MB100:20
0
0
%MW256:4
Description
Broadcast address: l l l processor slot: 0 or 1,
PCMCIA channel: 1, system channel.
Command
These bytes can contain two types of information: l l either a telephone number for the station called, or an AT command to be sent.
Connection options
Choice between Uni-telway master or slave mode
Activity bit, exchange report, length
100
TLX DS COM PL7 xxE
Modem Programming
Description of parameters
Parameter
Command
Telephone number or
AT command
Connection option
Uni-telway slave or master mode
See the following table:
Type
Word
Meaning l l l l value = 1: connection command, value = 2: disconnection command, value = 3: reset modem command, value = 4: AT command to be sent.
Byte table The table’s maximum size of 24 bytes is given by the last %MWk+3 management parameter (as shown in the example for %MW259 below).
If %MWk+3 = 0, the size is 24 bytes.
word word l l l l l l l l value = 0: connection in Uni-telway mode, with password, value = 1: connection in ASCII mode, with password, value = 2: connection in Uni-telway mode, without password, value = 3: connection in ASCII mode, without password, value = 4: connection in Uni-telway mode without character string transmission on connection request, value = 5: connection in ASCII mode without character string transmission on connection request.
value = 0: connection in Uni-telway slave mode, value not equal to 0: connection in Uni-telway master mode l byte 0 (least significant) corresponds to the number of slave addresses value = 1: for Ad0 l value = 2: for Ad0 and Ad1 byte 1 (most significant) corresponds to address Ad0 for the Uni-telway slave (from 1 to 98)
TLX DS COM PL7 xxE
101
Modem Programming
Modem specific management parameters
Introduction A detailed description of these parameters is available in the common section. See
(PL7 Micro/Junior/Pro ; Communication applications ; Volume 1).
l l
This document only describes parameters specific to communication via a modem.
These parameters are:
Timeout, operation report.
CALL_MODEM function timeout
Timeout of the function is a time used to check for the absence of response to the
CALL_MODEM function.
This time, (increment of a 100 ms time base), is a combination of different parameters configured via the Modem Configuration screen.
It is advisable to allocate the following minimum value to this parameter:
Minimum timeout = the number of redial attempts * dialing time + (number of redial attempts - 1) * delay between redial attempts
Operation report Operation reports are specific to the modem and only significant if the communication report has the following values: l l
16#00,
16#FF.
Communication report = 16#00
In this case, the exchange is correct.
In this case, the operation report (most significant byte) is:
Value
16#00
16#01
16#02
16#03
16#04
16#05
16#06
16#07
16#09
16#0A
16#0B
16#0C
Meaning
Command executed
Non processed request
Incorrect response
Connection in progress by a remote modem
Connection in progress by a local CALL_MODEM function
Connection in progress by an external CALL_MODEM function
Connection request by a local CALL_MODEM function
Connection request by an external CALL_MODEM function
Remote station busy
Disconnection by a remote modem
Disconnection due to protocol error
Disconnection by timeout
102
TLX DS COM PL7 xxE
Communication report = 16#FF
In this case, the message is refused.
In this case, the operation report (most significant byte) is:
16#08
16#0B
16#0C
16#0D
16#0F
16#11
16#12
16#14
Value
16#01
16#02
16#03
16#04
16#05
16#06
16#07
16#15
16#16
16#17
Meaning
Lack of resources on connection to processor
Lack of line resources
Device missing on line
Line error
Length error
Communication channel faulty
Addressing error
Application fault
No system resources
Inactive communication function
Destination missing
Intra-station routing problem or non configured channel
Address format not handled
Lack of destination resource
Non operational connection
Absence of resource on the local channel
Non-authorized access
Incompatible network configuration
Modem Programming
TLX DS COM PL7 xxE
103
Modem Programming
Coding of exchanges
At a Glance
Format of the string
When a connection request is made, a 32-byte character string may be sent on the line by the calling station to initialize the connection.
l l l l l
The character string which may be sent on the line is in the following format: l l the Start of the frame field, of 2 bytes in length, containing the value 16#531B, the Password field, of 8 bytes in length, containing the value of the station l password (8 characters), the Type field, (protocol type) of 1 byte in length, containing 16#00 for Uni-telway mode or 16#01 for ASCII mode, l the UTW field, (Unitelway mode) of 1 byte in length, containing 16#00 for a master or 16#01 for a slave, the Slave address field, with the slave address stated in 1 byte, the Number of slaves field, stating the number of slave address scanned in 1
byte, the Reserved field, containing 15 bytes, all reserved and equal to 0, the Checksum field, of 1 byte in length, which checks the frame, the Start of the frame field, of 2 bytes in length, containing the value 16#451B,
Note: This coding of this string depends on the following parameters: l l
Station password of the modem configuration screen,
Mode and Options of the communication function.
The "Checksum" is performed over 1 byte, without taking into consideration the value of the most significant byte.
Note: The password must not exceed 8 characters in length.
104
TLX DS COM PL7 xxE
Modem Programming
Processing of the string
The following table lists different processing scenarios:
Calling station (TSX MDM 10) l l if the station is configured by default, the modem transmits no character string on the line: l connection without password ( CALL_MODEM l function with option 4),
Slave Uni-telway protocol with addresses Ad0 = 1 and Ad1 = 2.
in all other scenarios, the station sends the character string.
Station called (TSX MDM 10)
Scenario where password management is not configured l the station waits for 5 seconds. If no character string has been received on the line, it switches to Uni-telway master mode and scans the slave addresses Ad0 = 1 l and Ad1 = 2, otherwise the station tests the Password field equal to
FFFFFFFF in hexadecimal: l if the test is valid, the station tests the Type, Mode and Number of addresses fields, and switches to the corresponding mode.
l If the test is invalid, the line is closed.
Scenario where password management is configured l the station tests the received password: l if the password received does not correspond to any password in the list, the line is closed.
l if the test is valid, the station tests the Type, Mode and Number of addresses fields, and switches to the corresponding mode.
TLX DS COM PL7 xxE
105
Modem Programming
Guide to choosing connection parameters in Uni-telway mode
Introduction The Uni-telway master or slave mode, as well as the addresses used, depend on l l the following parameters: the parameters of the Calling mode field in the configuration screen, the Mode parameter for the CALL_MODEM communication function.
Communication between two TSX
MDM 10 cards
Calling: TSX MDM 10
Screen parameters
CALL_MODEM mode
Designation
Usage parameters for the calling station:
Case 1
By default:
Ad0 = 1 and address number = 2
By default: value 0
Case 2
Ad0 = n and address number = 2
Case 3
By default:
Ad0 = 1 and address number = 2
By default: value 0
Value xx
Byte 0 = 02
Byte 1 = 50
Slave to be scanned at address 50 to 51
Becomes Uni-telway slave with addresses Ad0 = 1 and
Ad1 = 2
Becomes Uni-telway slave with addresses Ad0 = n and
Ad1 = n+1
Becomes Uni-telway master and scans addresses 50 and 51
Called: TSX MDM 10
Screen parameters
Designation
Usage parameters for the called station:
Case 1
By default:
Ad0 = 1 and address number = 2
Becomes Uni-telway master and scans addresses 1 and 2
Case 2
Immaterial
Becomes Uni-telway master and scans addresses n and n+1
Case 3
Immaterial
Becomes slave which responds on addresses 50 and 51
The following is a list of comments relating to the various possible cases: l case 1 is the most common (for communication between two TSX MDM 10 devices), l case two is used to attribute a different slave address to each calling station
(useful in multi-station architecture), l case 3 is used to communicate with devices configured in Uni-telway slave mode.
106
TLX DS COM PL7 xxE
Modem Programming
Communication with a third party device
Calling: TSX MDM 10
Screen parameters
CALL_MODEM mode
Designation
Usage parameters for the calling station (TSX MDM 10 card):
Case 1
By default:
Ad0 = 1 and address number = 2
By default: value 0
Case 2
Ad0 = n and address number = 2
By default: value 0
Becomes Uni-telway slave with addresses Ad0 = 1 and
Ad1 = 2
Becomes Uni-telway slave with addresses Ad0 = n and
Ad1 = n+1
Case 3
By default:
Ad0 = 1 and address number = 2
Value xx
Byte 0 = 02
Byte 1 = 50
Slave to be scanned at address 50 to 51
Becomes Uni-telway master and scans addresses 50 and 51
Usage parameters for the called station (third party device):
Called: third party device Case 1
Designation Becomes Uni-telway master and scans addresses 1 and 2
Case 2
Becomes Uni-telway master and scans addresses n and n+1
Case 3
Becomes slave which responds on addresses 50 and 51
The following is a list of comments relating to the various possible cases: l l l case 1 is not significant, for case 2, the initialization protocol must be implemented (exchange coding), for case 3, the initialization protocol must be implemented (exchange coding).
TLX DS COM PL7 xxE
107
Modem Programming
Communication from a third party device
Usage parameters for the calling station (third party device):
Calling: third party device Case 1
Designation Becomes slave which responds on addresses 1 and 2
Case 2
Becomes slave which responds on addresses n and n+1
Case 3
Becomes a Uni-telway master and scans addresses configured on the TSX MDM 10 card
Called: TSX MDM 10
Screen parameters
Designation
Usage parameters for the called station (TSX MDM 10 card):
Case 1
By default:
Ad0 = 1 and address number = 2
Case 2
Requires the configuration
Ad0 = n and address number = 2
Case 3
Immaterial
Becomes Uni-telway master and scans addresses Ad0 = 1 and Ad1
= 2
Becomes Uni-telway master and scans addresses Ad0 = n and Ad1
= n+1
Becomes a Uni-telway slave with the configured addresses
The following is a list of comments relating to the various possible cases: l l cases 1 and 2 are not significant, for case 3, the initialization protocol must be implemented (exchange coding).
108
TLX DS COM PL7 xxE
Modem Programming
Guide to choosing connection parameters in character mode
Introduction The character mode depends on the following parameters: l l the configuration screen parameters, the Option parameter for the CALL_MODEM communication function.
Communication between two TSX
MDM 10 cards
Calling: TSX MDM 10
Screen parameters
CALL_MODEM option
Usage parameters for the calling station:
Configuration in character mode (data coded on 8 bits)
Character mode protocol
Usage parameters for the called station:
Called: TSX MDM 10
Screen parameters Configuration in character mode is identical to that of calling station
Note: In this configuration, the character string, described in the exchange coding, is transmitted on the line.
Communication with a third party device
Calling: TSX MDM 10
Screen parameters
CALL_MODEM option
Usage parameters for the calling station (TSX MDM 10 card):
Configuration in character mode (data coded on 8 bits)
Character mode protocol
Usage parameters for the called station (third party device):
Called: third party device
Screen parameters Implementation of initialization protocol (exchange coding)
Note: In this configuration, the character string, described in the exchange coding, is transmitted on the line.
TLX DS COM PL7 xxE
109
Modem Programming
Communication from a third party device
Usage parameters for the calling station (third party device):
Calling: third party device
Screen parameters Configuration in character mode (data coded on 8 bits)
Designation Implementation of initialization protocol (exchange coding) for sending the character string
Usage parameters for the called station (TSX MDM 10 card):
Called: TSX MDM 10
Screen parameters Configuration in character mode is identical to that of calling station
Note: In this configuration, the character string, described in the exchange coding, is transmitted on the line.
110
TLX DS COM PL7 xxE
Modem Programming
Examples of connection, disconnection, and reset with a remote station
Introduction
Example 1
The following examples are to assist with installation of the various CALL_MODEM services.
Connection in Uni-telway slave mode, without password:
CALL_MODEM(ADR#0.1.SYS, 1, %MB100:20, 2, 0, %MW256:4)
The following table describes the different parameters of the function:
Parameter
ADR#0.1.SYS
1
%MB100:20
2
0
%MW256:4
Description
Modem address
Connection
Telephone number of called station
Uni-telway mode, without password
Uni-telway slave mode
Activity bit, exchange report, length
Example 2 Connection in Uni-telway slave mode, with password:
CALL_MODEM(ADR#0.1.SYS, 1, %MB100:20, 0, 0, %MW256:4)
The following table describes the different parameters of the function:
Parameter
ADR#0.1.SYS
1
%MB100:20
0
0
%MW256:4
Description
Modem address
Connection
Telephone number of called station
Uni-telway mode, with password
Uni-telway slave mode
Activity bit, exchange report, length
TLX DS COM PL7 xxE
111
Modem Programming
Example 3 Disconnection request:
CALL_MODEM(ADR#0.1.SYS, 2, %MB100:20, 2, 0, %MW256:4)
The following table describes the different parameters of the function:
Parameter
ADR#0.1.SYS
2
%MW256:4
Description
Modem address
Disconnection
Activity bit, exchange report, length
Example 4
Note: In this example details of the telephone number, the Uni-telway slave mode and password are unnecessary. The line is interrupted.
Request to reset modem:
CALL_MODEM(ADR#0.1.SYS, 3, %MB100:20, 2, 0, %MW256:4)
The following table describes the different parameters of the function:
Parameter
ADR#0.1.SYS
3
%MW256:4
Description
Modem address
Modem reset
Activity bit, exchange report, length
Note: In this example details of the telephone number, the Uni-telway slave mode and password are unnecessary. The modem is reset.
A reset does not interrupt a connection request in progress
112
TLX DS COM PL7 xxE
Modem Programming
Examples of communication between two PLCs
Introduction
Connection phase
The following example describes the different phases of a communication between l l l two TSX Micro PLCs linked by the telephone network: the connection phase, the data exchange phase, the disconnection phase.
The calling station makes the call in Uni-telway slave mode without password management:
CALL_MODEM(ADR#0.1.SYS, 1, %MB50:4, 2, 0, %MW1024:4)
The following table describes the different parameters of the function:
Parameter
Address
Command 1
Telephone number %MB50:4
Option 2
Mode
Report
Variable
ADR#0.1.SYS
0
%MW1024:4
Description
Modem address
Processor slot: 0 or 1
PCMCIA channel: 1
System server: SYS
Connection command
Telephone number of called station (in bytes)
Connection in Uni-telway mode, without password
Connection in Uni-telway slave mode
%MW1026 = 300, corresponds to a 30 second time-out.
%MW 1027 = 4, corresponds to the length in bytes of the telephone number to call (4 bytes in the example).
TLX DS COM PL7 xxE
113
Modem Programming
Data exchange phase
The calling station reads the called station’s internal words, %MW100 to %MW199.
This latter station is considered the Uni-telway master:
READ_VAR(ADR#0.1.1, ‘%MW’, 100, 100, %MW200:100, %MW1094:4)
The following table describes the different parameters of the function:
Parameter
Address
Type of object
Number of first object
Consecutive numbers
Content of response
Report
Variable
ADR#0.1.1
‘%MW’
100
100
%MW200:100
%MW1094:4
Description
Address of the Uni-telway master station to be scanned
Internal words
Shows the index of the first internal word to be read (%MW100)
Specifies the number of internal words to be read
(100 words)
Table of words containing the value of objects read
Disconnection phase
The calling station disconnects the line:
CALL_MODEM(ADR#0.1.SYS, 2, %MB50:4, 2, 0, %MW1028:4)
The following table describes the different parameters of the function:
Parameter
Address
Command 2
Telephone number %MB50:4
Option 2
Mode
Report
Variable
ADR#0.1.SYS
0
%MW1028:4
Description
Modem address
Processor slot: 0 or 1
PCMCIA channel: 1
System server: SYS
Disconnection command
Telephone number of called station (in bytes)
Connection in Uni-telway mode, without password
Connection in Uni-telway slave mode
%MW1030 = 300, corresponds to a 30 second time-out.
%MW 1031 = 4, corresponds to the length in bytes of the telephone number to call (4 bytes in the example).
114
TLX DS COM PL7 xxE
Debugging Modem communication
9
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter describes the Debugging process when setting up a TSX MDM 10 modem.
This Chapter contains the following Maps:
Topic
Modem debugging screen
Debugging parameters
Page
TLX DS COM PL7 xxE
115
Modem debugging
Modem debugging screen
Introduction
Illustration
This screen, split into two zones, is used to declare the communication channel and to configure the necessary parameters for a modem link.
The screen dedicated to Modbus communication looks like this:
1
2
TSX 57252 [RACK 0 POSITION 0]
Debugging
Designation: TSX P 57252 PROCESSOR Version: 3.3
DIAG...
CHANNEL 1 TSX MDM 10 PCMCIA MODEM CARD
UNI-TELWAY LINK MAST
Communication mode
Command
Transparent
Order to dial
Yes
No
Called phone number
Password received
Number of redial attempts
Time between redial attempts
Remaining dialing time
Remaining connection time
0
0
0
0
DIAG...
Mode
Calling
Local EF “Call_Modem”
External EF “Call_Modem”
Called
Cause of disconnection
EF “Call_Modem”
Protocol error
Modem (CD)
Connection timeout
Timeout between 2 frames
Password error
Elements and functions
This table describes the different zones that make up the configuration screen:
Address Zone
1 common
2 specific
Function
See (See : PL7 Micro/Junior/Pro ; Communication applications
; Volume 1).
is used to access the debugging parameters for a Modem link.
116
TLX DS COM PL7 xxE
Modem debugging
Debugging parameters
Introduction The specific part is split into several windows: l l l l l the Communication mode window, the Order to dial window, the Mode window, the Cause of disconnection window, a field grouping.
Communication mode l l
This is used to identify the state of connection: command: connection request in progress (connection being established), transparent: connection established.
Order to dial This indicates if a CALL_MODEM communication function has been received by the
TSX MDM 10 card and is being processed.
Mode This is used to specify the connection mode: l calling: the station initiated the call. The screen shows whether the CALL_MODEM communication function has been sent by the local station or by a remote station l via a network, called: the station is the call receiver.
Cause of disconnection l l l l l
This indicates the causes of a line disconnection: l EF CALL_MODEM: the local station has initiated the disconnection using the
CALL_MODEM function, protocol error: a protocol error is the cause of the disconnection, modem (CD): the remote modem has initiated the disconnection, connection timeout: the duration of the connection has overrun, timeout between 2 frames: the delay between 2 frames has overrun, password error: the password received is invalid - it does not appear in the local station list.
Additional fields They provide the following information: l l number of redial attempts: indicates the number of redial attempts remaining, time between redial attempts: indicates the time remaining between redial attempts, l l remaining dialing time: indicates the remaining dialing time, remaining connection time: indicates the remaining connection time (if the local station is connected).
TLX DS COM PL7 xxE
117
Modem debugging
118
TLX DS COM PL7 xxE
Language objects associated with
Modem communication
10
Introduction
Aim of this
Section
What's in this
Chapter?
This Chapter introduces language objects associated with communication via a TSX
MDM 10 modem.
This Chapter contains the following Maps:
Topic
Language objects in implicit exchange
Language objects for explicit exchange
Explicit exchange management and reports
Language objects associated with configuration
Page
119
TLX DS COM PL7 xxE
Modem language objects
Language objects in implicit exchange
Introduction
Bit objects
This page describes all the language objects for implicit exchange in modem communication that can be displayed or modified by the application program. (PL7
Micro/Junior/Pro ; Communication applications ; Volume 1)
The table below shows the different bit objects for implicit exchange.
Object (1) Function
%Ixy.MOD.ERR Module error bit
%Ixy.i.ERR
Channel error bit
Meaning
This bit set to 1, indicates a module error (at least one of the channels is faulty,…)
This bit set at 1 indicates a faulty channel.
Key
(1) Address xy.i
l l l x: corresponds to the rack number, y: corresponds to the module number, i: corresponds to the channel number.
Word objects The table below shows the different word objects for implicit exchange.
Object (1)
%IWxy.i.0
%IWxy.i.1
Function
Not used
General status of slaves
Meaning
x0 = 1: if at least one slave does not respond
Key
(1) Address xy.i
l l l x: corresponds to the rack number, y: corresponds to the module number, i: corresponds to the channel number.
120
TLX DS COM PL7 xxE
Modem language objects
Language objects for explicit exchange
Introduction
Word objects
This page describes all the language objects for explicit exchange in Modem communication that can be displayed or modified by the application program. (PL7
Micro/Junior/Pro ; Communication applications ; Volume 1)
The table below shows the different word objects for explicit exchange.
Object (1) Function
%MWxy.MOD.2 Module status
%MWxy.i.2
%MWxy.i.3
Standard channel status
Specific channel status
Not used l l l l l l l l l l l l
Meaning l l x0 = 1: defective module, x1 = 1: functional error (error between the processor and the module, adjustment or configuration error, …), x2 = 1: terminal block fault (not connected), x3 = 1: self-tests running, x4 = 1: reserved, x5 = 1: error in hardware or software configuration (the module present is not that declared in the configuration, the sub-modules are not compatible), x6 = 1: missing module, x7 = 1: error in one of the sub-modules.
l l x0 = 1: single station on the network, x1 = 1: not used, x2 = 1: transmission line error, x3 = 1: not used, x4 = 1: internal software fault, x5 = 1: error in hard- or software configuration, or configuration missing, x6 = 1: communication error with the processor, x7 = 1: application fault (double address station).
0 for Uni-telway master mode
1 for Uni-telway slave mode
%MWxy.i.4
to
%MWxy.i.7
%MWxy.i.8
Slave address Standard address of calling slave
TLX DS COM PL7 xxE
121
Modem language objects
Object (1)
%MWxy.i.12
Function
Modem status
%MWxy.i.13
to
%MWxy.i.16
%MWxy.i.17
Current password
Modem state
Meaning l l l l l l l l l l l l l l l l l l x0 = 0: command mode (to establish a connection), x0 = 1: transparent mode (connection established), x1 = 0: calling mode (transmitter station), x1 = 1: called mode (receiver station), x2 = 1: connection request, x3 = 1: dialing request, x4 = 1: disconnection request, x5 = 1: connection via CALL_MODEM local function, x6 = 1: connection via CALL_MODEM external function, x7 = 1: connection via a remote modem, x2 = 0: disconnection via CALL_MODEM local function, x9 = 1: disconnection via CALL_MODEM external function, x10 = 1: disconnection using timeout, x11 = 1: disconnection due to protocol error, x12 = 1: disconnection via a remote modem, x13 = 1: disconnection following password error, x14 = 1: disconnection caused by configured timeout, x15 = 1: modem error.
Transmitter (calling) station password l l l l l l l l l x0 = 1: initialization of the card active, x1 = 1: command mode active, x2 = 1: transparent mode active, x3 = 1: dialing in progress, x4 = 1: disconnecting, x5 = 1: call in progress, x6 = 1: busy, x12 = 1: card initialization error, x13 = 1: card initialization request.
122
TLX DS COM PL7 xxE
TLX DS COM PL7 xxE
Modem language objects
%MWxy.i.21
to
%MWxy.i.32
%MWxy.i.33
%MWxy.i.34
%MWxy.i.35
%MWxy.i.36
%MWxy.i.37
%MWxy.i.38
Object (1)
%MWxy.i.18
%MWxy.i.19
%MWxy.i.20
Function
Dialing state
State of called unit
Connection state
Telephone number
Meaning l l l l l l l l l l l l l l l l l l l l l l l l x0 = 1: dialing in progress, x1 = 1: AT D command transmission (dialing), x2 = 1: connection received, x3 = 1: password test running, x4 = 1: valid password received, x5 = 1: protocol mode can be activated, x6 :not used, x7 = 1:Carriage Return not detected, x8 = 1: DCD signal missing, x9 = 1: dialing time overrun, x10 = 1: general input/output error, x11 = 1: illegal command, x12 = 1: disconnection while dialing.
x0 = 1: call in progress, x1 = 1: AT A command transmission (answer), x2 = 1: connection received, x3 = 1: password test running, x4 = 1: password received, x5 = 1: password not received, x6 = 1: Carriage Return not detected, x10 = 1: general input/output error, x11 = 1: illegal command.
l x0 = 1: DTR signal active, x1 = 1: AT H command transmission (hang up), x2 = 1: awaiting disconnection.
Telephone number of called station
Remaining number of redial attempts
Delay between remaining calls
Remaining dialing time
Remaining number of calls to be made
Remaining delay value between calls is between
0 and 255 (between 30 s and 180 s)
Remaining dialing time value is between 40 and
255 seconds
Remaining time value between two frames Remaining time between 2 messages
Remaining connection time
Display of remaining connection time
Input character trace Offset of last character received, between 0 and
99 bytes
123
Modem language objects
Object (1)
%MWxy.i.39
to
%MWxy.i.88
%MWxy.i.89
Function Meaning
Input character trace Trace of 100 input characters
%MWxy.i.90
to
%MWxy.i.139
Output character trace Offset of last character transmitted, between 0 and 99 bytes
Output character trace Trace of 100 output characters
Key
(1) Address xy.i
l l l x: corresponds to the rack number, y: corresponds to the module number, i: corresponds to the channel number.
124
TLX DS COM PL7 xxE
Modem language objects
Explicit exchange management and reports
Introduction
Word objects
This page describes all the language objects that manage explicit exchanges. (See
: PL7 Micro/Junior/Pro ; Communication applications ; Volume 1)
The table below shows the different word objects for the management of explicit exchanges.
Object (1) Function
%MWxy.MOD.0 Module exchanges in progress
%MWxy.MOD.1 Module report
%MWxy.i.0
%MWxy.i.1
Channel exchanges in progress
Channel report
Meaning l l l x0 = 1: reading status in progress x1 = 1: sending of command parameters to the communication module x2 = 1: sending of adjustment parameters to the communication module l l l l x1 = 0: command parameters received and accepted by the module x2 = 0: adjustment parameters received and accepted by the module l x0 = 1: reading status in progress x1 = 1: sending of command parameters to the communication channel x2 = 1: sending of adjustment parameters to the communication channel l l x1 = 0: command parameters received and accepted by the communication channel x2 = 0: adjustment parameters received and accepted by the communication channel
Key
(1) Address xy.i
l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the channel number
TLX DS COM PL7 xxE
125
Modem language objects
Language objects associated with configuration
Introduction
Internal constants
This page describes all the configuration language objects for Modem communication that can be displayed by the application program.
The following table describes the internal constants:
Object
%KWxy.i.0
%KWxy.i.1
%KWxy.i.2
%KWxy.i.3
Function
Type
Speed / format
Timeout
Slave address
Meaning
0 for Uni-telway mode
Byte 0 = speed l 16#00 = 1200 bits/s, ..., 16#03 = 9600 bits/s
Byte 1: format l l l l x8: bit number (1 = 8 bits, 0 = 7 bits) x9 = 1: parity management x10: Parity type (1 = odd, 0 = even) x11: stop bit (1 = 1 bit, 0 = 2 bits)
Value of timeout
Byte 0: standard slave address
Byte 1: number of consecutive addresses (from 1 to
3)
%KWxy.i.4
Not used
%KWxy.i.5
RTS/CTS delay Value of delay in hundredths of a millisecond
%KWxy.i.6
Speed / Format in ASCII mode
%KWxy.i.7
Stop Bits received
Byte 0 = speed in ASCII mode l 16#00 = 1200 bits/s, ...,16#03 = 9600 bits/s
Byte 1: format in ASCII mode l l l l x8: bit number (1 = 8 bits, 0 = 7 bits) x9 = 1: parity management x10: Parity type (1 = odd, 0 = even) x11: stop bit (1 = 1 bit, 0 = 2 bits)
Byte 0 l l x0 = 1: end character enabled x1 = 1: end character included
Byte 1: value of frame end character
%KWxy.i.8
Not used
%KWxy.i.9
Number of redial attempts
%KWxy.i.1
0
Delay between redial attempts
Value between 0 and 10 redial attempts
Byte 0: delay between redial attempts in seconds, value between 30 and 180 seconds in increments of
30 s
126
TLX DS COM PL7 xxE
Modem language objects
Object
%KWxy.i.1
1
%KWxy.i.1
2
%KWxy.i.1
3
%KWxy.i.1
4 to 17
Function
Dial mode
Meaning
Byte 0: type of dialing l l l l x0 = 0: tone dial x0 = 1: pulse dial x1 = 0: password test x1 = 1: no password test
Byte 1: dialing time value between 30 and 180 seconds in increments of 30 s
Maximum time between
2 messages
Message transfer check, value in seconds between
0 and 32767 seconds
Maximum connection time
Passwords
Value between 0 and 32767 seconds l l
= 0: no connection time control
> 0: connection time control
148 byte string
TSX Micro internal constants
The following table describes internal constants for TSX Micro PLCs:
Object
%KWxy.i.1
8 to 49
%KWxy.i.5
0 to 123
Function
List of passwords
Modem string
Meaning
List of 8 passwords, with a maximum of 8 characters per password
148 byte string
TSX Premium internal constants
The following table describes internal constants for TSX Premium PLCs:
Object
%KWxy.i.1
8 to 81
%KWxy.i.8
2 to 155
Function
List of passwords
Modem string
Meaning
List of 16 passwords, with a maximum of 8 characters per password
148 byte string
TLX DS COM PL7 xxE
127
Modem language objects
128
TLX DS COM PL7 xxE
Appendices
11
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter introduces AT commands associated with the TSX MDM 10 modem.
This Chapter contains the following Maps:
Topic
AT commands
A/ - Command re-execution
AT = x - Write to the selected S register
AT? - Read the selected S register
A - Answer
Cn - Checking for carrier
Dn - Dialing
En - Local command echo
Hn - Disconnection (hang up)
In - Identification
Ln - Loudspeaker volume
Mn - Loudspeaker command
Nn - Activation of automatic mode.
On- Return to on-line data mode
P - Default adjustment of pulse dialing
Qn - Activation / deactivation of result codes
Sn - S register read / write
T - Default adjustment of tone dialing
Vn - Form of the result codes
Wn - Error correction messages control
Page
TLX DS COM PL7 xxE
129
Appendices
Topic
Xn - Extended result codes
Yn - Disconnection after prolonged inactivity
Zn - Software reset of modem and restoration of profile
&Cn - RLSD Option (detection of DCD carrier)
&Dn - DTR Option (Data Terminal Ready)
&Fn - Restoration of the factory configuration (profile)
&Gn - Selection of guard tone
&Kn – Flow control
&Pn - Selection of pulse dialing close/open report
&Qn - Synchronous/asynchronous mode
&Rn - RTS/CTS option
&Sn - DSR Monitoring (Data Station Ready)
&V - Display of current configuration and stored profiles
&Wn – Storage of the current configuration
&Yn - Designation of a default profile on reset
&Zn – Storage of telephone numbers
%Cn - Activation / deactivation of data compression
%En - Activation/deactivation of line quality monitoring or automatic resynchronization or fallback/increase of transfer rate
%L - Level of line signal
%Q - Quality of line signal
\Kn - BREAK control
\Nn - Operating mode
Values of the registers of the TSX MDM 10 card in a PLC
Page
130
TLX DS COM PL7 xxE
Appendices
AT commands
Introduction
Available commands
TLX DS COM PL7 xxE
The modem will respond to the commands described below. The parameters which can be associated with each command are given in the command description. The default values indicated for each configuration command are those used by the
Rockwell factory profile.
The following table recapitulates the AT commands supported by the TSX MDM 10:
Sn
T
Vn
Wn
Xn
Yn
Zn
&Cn
&Dn
&Fn
&Gn
Nn
On
P
Qn
Hn
In
Ln
Mn
A
Cn
Dn
En
Command
A/
AT = x
AT?
Description
Command re-execution
Write to the selected S register
Read the selected S register
Answer
Checking for carrier
Dialing
Local command echo
Disconnection (hang up)
Identification
Loudspeaker volume
Loudspeaker command
Loudspeaker activation
Return to on-line data mode
Default adjustment of pulse dialing
Activation / deactivation of result codes
S register read / write
Default adjustment of tone dialing
Form of the result codes
Error correction messages control
Extended result codes
Disconnection after prolonged inactivity
Software reset of modem and restoration of profile
RLSD Option (detection of DCD carrier)
DTR Option (Data Terminal Ready)
Restoration of the factory configuration (profile)
Selection of guard tone
131
Appendices
%L
%Q
\Kn
\Nn
\Vn
&v1
&Wn
&Yn
&Zn
%Cn
%En
Command
&Kn
&Pn
&Qn
&Rn
&Sn
&V
Description
Flow control
Selection of pulse dialing close/open report
Synchronous/asynchronous mode
RTS/CTS option
DSR check (Data Station Ready)
Display of current configuration and stored profiles
Display of statistics from last connection)
Storage of current configuration
Designation of a default profile on reset
Storage of telephone numbers
Activation / deactivation of data compression
Activation/deactivation of line quality monitoring and automatic resynchronization attempt or of fallback/increase of transfer rate
Level of line signal
Quality of line signal
"Break" control
Operating mode
Validation of single line connection messages
132
TLX DS COM PL7 xxE
Appendices
A/ - Command re-execution
Introduction The modem behaves as though the last command line had been returned by the
DTE. "A/" repeats all the commands contained in the command buffer.
The principal use of this command is to be able to renew a call (using the dial command) which has not finished following an engaged signal or no reply. This command must appear alone on the command line and must finish with the character "/". It must not finish with a carriage return.
TLX DS COM PL7 xxE
133
Appendices
AT = x - Write to the selected S register
Introduction
Result codes
This command writes the value x in the S register which is currently selected. It is possible to select an S register with the ATSn command.
All S registers will send back an OK if x is a number.
Code
OK
Description
For all arguments
134
TLX DS COM PL7 xxE
Appendices
AT? - Read the selected S register
Introduction
Result codes
This command reads and displays the selected S register. It is possible to select an
S register with the ATSn command.
All S registers will send back an OK if x is a number.
Code
OK
Description
For all arguments
TLX DS COM PL7 xxE
135
Appendices
A - Answer
Introduction The modem connects and attempts to answer the call received if all the necessary conditions have been fulfilled.
Once contact has been made, the modem connects in answer mode.
136
TLX DS COM PL7 xxE
Appendices
Cn - Checking for carrier
Introduction
Result codes
This command is included solely for reasons of compatibility; its only effect is to return a result code. The only valid parameter is 1.
The following table lists the possible command responses.
Code
OK
ERROR
Description n = 1
If n is not equal to 1
TLX DS COM PL7 xxE
137
Appendices
Dn - Dialing
Introduction This command asks the modem to unhook, to dial the number corresponding to the dialing string entered and to attempt to establish a connection. In the absence of a dialing string, the modem unhooks and attempts to make contact in send mode.
Dialing Modifiers The valid parameters for the dialing string are described in the following table: For reasons of clarity, it is possible to use certain punctuation symbols such as brackets, hyphens or spaces. These symbols are not processed by the command.
*
#
Code
0 - 9
A - D
L
P
T
R
S = n
!
W
@
,
Description
Numbers 0 to 9 in MFDT
The "asterisk" symbol (tone dialing only)
The "hash" symbol (tone dialing only)
Letters A, B, C and D in MFDT. In certain countries, these letters cannot be sent during dialing.
Redial the last number: the modem redials the last valid telephone number.
The L must come immediately after the D and all subsequent characters are ignored.
Selects pulse dialing: pulse dialing dials the numbers which follow until a 'T' is reached. This applies to current and subsequent dialing. In certain countries, the dialing mode cannot be changed once the first number has been dialed.
Selects tone dialing: tone dialing dials the numbers which follow until a 'P' is reached. This applies to current and subsequent dialing. In certain countries, the dialing mode cannot be changed once the first number has been dialed.
This command will be accepted but it will have no effect.
Dialing of number stored in directory (n = 0 to 19) (see command &Z).
Quick hang up: the modem hangs up during the period defined by the value of
S29. In certain countries, a limit may be imposed on this period.
Waiting for tone: the modem waits for the tone before dialing the digits which come after the 'W'.
Waiting for silence: the modem waits until there are at least 5 seconds of silence in the call frequency band before dialing the dialing string. If the modem does not detect these 5 seconds of silence after a period defined by the call abandon timer (S7), the modem ends the call attempt with a NO ANSWER message. If the detection of an engaged line is validated, the modem can end the call with the result code BUSY. If the answer tone comes while this parameter is being carried out, the modem makes contact.
Dialing pause: the modem pauses for the period indicated by S8 before dialing the digits which come after the ','.
138
TLX DS COM PL7 xxE
Appendices
Code
;
Description
Returns to command mode. Added to the end of the dialing string, this parameter returns the modem to command mode once it has processed the part of the string which precedes ','. This enables new AT commands to be sent while off-hook. The new AT commands can be set on the source command line after ',' or entered on new command lines. The modem does not attempt to establish the connection until the new dial command is sent without the end symbol ','. Use 'H' to abandon dialing in progress and hang up.
^
( )
<i>
Switch call tone: only applies to the dialing attempt in progress.
Ignored: can be used to format the dialing string.
Ignored: can be used to format the dialing string.
<space> Ignored: can be used to format the dialing string.
Invalid symbol: will be ignored.
TLX DS COM PL7 xxE
139
Appendices
En - Local command echo
Introduction
Parameters
According to the parameter indicated, the modem activates or deactivates the appearance of the characters on the DTE. The parameter value, if valid, is written in the S14 bit.
The parameters are.
Code
E0
E1
Description
Deactivates command echo.
Activates command echo (default value)
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 or 1.
If n is not equal to 0 or 1.
140
TLX DS COM PL7 xxE
Appendices
Hn - Disconnection (hang up)
Introduction
Parameters
This command launches a hanging up sequence; it is possible that it is not available in certain countries.
The parameters are:
Code
H0
H1
Description
The modem frees the line if it is currently connected, and ends all attempts
(AT&T) in progress. Any processing which is particular to a country, to the modulation or to the error correction protocol (S38) is carried out outside the
H0 command.
Only in STN mode; if the modem is on-hook, it unhooks and goes into command mode. The modem hangs up at the end of the time period defined by S7.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 or 1.
If n is not equal to 0 or 1.
TLX DS COM PL7 xxE
141
Appendices
In - Identification
Introduction
Parameters
The modem reports the result corresponding to the entered command parameter to the DTE.
I4
I5
I6
Code
I0
I1
I3
The parameters are:
Description
Gives the product code (e.g. '14400').
Gives the pre-calculated checksum of the read-only memory ROM (e.g. '007').
Gives the firmware revision level (e.g. 'V1.000S').
Gives the identification string defined by the OEM (e.g. 'RC96ACL').
Gives the country code (e.g. '022').
Gives the model of the modem data pumping device.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 6.
If n is not in the range 0 to 6.
142
TLX DS COM PL7 xxE
Appendices
Ln - Loudspeaker volume
Introduction
Parameters
The modem adjusts the loudspeaker volume control according to the parameter entered. The parameter value, if valid, is written in bits 0 and 1 of S22.
The parameters are:
Code
L0
L1
L2
L3
Description
Low or deactivated volume.
Low volume (default value).
Medium volume.
High volume.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 3.
If n is not in the range 0 to 3.
TLX DS COM PL7 xxE
143
Appendices
Mn - Loudspeaker command
Introduction
Parameters
This command controls the moment at which the loudspeaker is active or deactivated. The parameter value, if valid, is written in bits 2 and 3 of S22.
The parameters are:
Code
M0
M1
M2
M3
Description
The loudspeaker is always deactivated.
The loudspeaker is activated during establishment of the call but deactivated during reception of the carrier (default value).
The loudspeaker is always activated.
The loudspeaker is deactivated during reception of the carrier and during dialing.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 3.
If n is not in the range 0 to 3.
144
TLX DS COM PL7 xxE
Appendices
Nn - Activation of automatic mode.
Introduction
Parameters
This command activates or deactivates detection of automatic mode. The parameter value, if valid, is written in bit 1 of S31.
The parameters are:
Code
N0
N1
Description
Detection of automatic mode is deactivated (equivalent to giving the 0 value to the sub-parameter +MS). The handshaking which follows is made according to the content of S37 or, if S37 is at 0, according to the most recently detected
DTE baud rate.
Detection of automatic mode is activated (equivalent to giving the value 1 to the sub-parameter +MS). The handshaking which follows is made according to the automatic mode algorithm supported by the modem, in other words according to the content of S37 or, if S37 is 0, by starting at 28800 b/s V.34 (RC288). This command also equates to F0 (RC144) (default value).
Result codes
Observations
The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 1.
If n is not in the range 0 to 1.
1. The Nn and S37=x commands have priority over the values of the +MS command. When the N0 or N1 command is sent, the sub-parameters of +MS are updated to reflect the values of Nn and S37 (see descriptions of the +MS command and of the S37 register).
For example: l N1S37=10 updates the sub-parameters of the +MS command as follows:
+MS=10,1,300,12000 l N037=10 updates the sub-parameters of the +MS command as follows:
+MS=10,0,12000,12000
2. It is recommended to use the +MS command rather than the Nn and S37=x commands. The Nn and S37=x commands are supported to ensure compatibility with the existing communication software.
TLX DS COM PL7 xxE
145
Appendices
On- Return to on-line data mode
Introduction
Parameters
This command determines the way in which the modem sets in on-line data mode.
If the modem is in the on-line command mode, this command sets it in on-line data mode with or without a resynchronization attempt.
If the modem is in off-line command mode (no connection), ERROR is displayed as the response.
The parameters are:
Code
O0
O1
Description
Switches to on-line data mode without resynchronization attempt. The processing is determined by the call establishment task. In general, if there is a connection, this command reconnects the DTE to the remote modem after an escape (+++).
In STN mode only; switches to on-line data mode after a resynchronization attempt.
Result codes The following table lists the possible command responses.
Code Description
CONNECT n = 0 to 3.
ERROR If n is not in the range 0 to 3.
146
TLX DS COM PL7 xxE
Appendices
P - Default adjustment of pulse dialing
Introduction
Result codes
This command imposes pulse dialing until the receives the next 'T' dialing modifier or the next 'T' command. It sets bit 5 of S14. On execution of a dialing command which expressly indicates the dialing mode of the call in question (e.g. ATDT…), this command is canceled so that all subsequent dialing will be tone dialing (see 'T' command).
In certain countries, this command may not be authorized.
The following table lists the possible command responses.
Code
OK
Description
-
TLX DS COM PL7 xxE
147
Appendices
Qn - Activation / deactivation of result codes
Introduction
Parameters
According to the parameter indicated, the command activates or deactivates sending of result codes to the DTE. The parameter value, if valid, is written in S14.
The parameters are:
Code
Q0
Q1
Description
Sends the result codes to the DTE (default value).
Does not send result codes to the DTE.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 1.
If n is not in the range 0 to 1.
148
TLX DS COM PL7 xxE
Appendices
Sn - S register read / write
Introduction
Parameters
The modem selects an S register, performs a read or write operation on an S register or reports the value of an S register.
The parameters are:
Code n n = v n?
Description
Sets the S register as the default register.
Attributes the value v to the S register n.
Indicates the value of the register S n. The n parameter can be omitted, in which case it is the value of S0 which is read. S can be omitted, in which case it is the value of the last consulted S register (default register) which is read.
Examples
Result codes l l l l
ATS7 sets S7 as the default register.
ATS38 sets S38 as the default register.
AT=40 gives the default register the value of 40.
ATS=20 gives the value 20 to S0.
If the number n is outside the range of available S registers, the modem sends back an ERROR message. The value 'v' is rollover 256. If the result is outside the permitted range for a given S register, the values are still stored but from a functional point of view, it is the upper and lower limits which are used.
The input and output values are always in decimal format. Note that some S registers are read-only. In these cases, a write operation to an S register appears to be accepted but the value is in fact not written.
TLX DS COM PL7 xxE
149
Appendices
T - Default adjustment of tone dialing
Introduction
Result codes
This command imposes MFDT dialing until the next 'P' dialing modifier or the next
'P' command is received. The modem sets an S register bit to '1' to indicate that all subsequent dialing will be tone dialing. Note that the DP command has priority over this command. It clears bit 5 of S14. In certain countries, this command may not be used (see P command).
The following table lists the possible command responses.
Code
OK
Description
-
150
TLX DS COM PL7 xxE
Appendices
Vn - Form of the result codes
Introduction
Parameters
This command chooses to send the result codes to the DTE in abbreviated form or in complete form. The parameter value, if valid, is written in bit 3 of S14.
The parameters are:
Code
V0
V1
Description
Presents the result codes in abbreviated form (numerical). There is no line change before the result code given in abbreviated form.
Presents the result codes in complete form (text) (default value).
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 1.
If n is not in the range 0 to 1.
TLX DS COM PL7 xxE
151
Appendices
Wn - Error correction messages control
Introduction
Parameters
This command controls the format of CONNECT messages. The parameter value, if valid, is written in bits 2 and 3 of S31 (also see description of S95).
The parameters are:
Code
W0
W1
W2
Description
On connection, the modem only indicates the baud rate of the DTE (e.g.
CONNECT 9600). Subsequent responses are deactivated (default value).
On connection, the modem indicates the line baud rate, the error correction protocol and the baud rate of the DTE respectively. Subsequent responses are deactivated.
On connection, the modem indicates the baud rate of the DCE (e.g. CONNECT
2400). Subsequent responses are deactivated.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 2.
If n is not in the range 0 to 2.
152
TLX DS COM PL7 xxE
Appendices
Xn - Extended result codes
Introduction This command selects the set of messages that the modem will use to inform the
DTE of the command results. The table indicates the messages which are activated for each value of X.
If the modem is in fax mode (+FCLASS=1 or 2), the only message sent to indicate that a connection has been made is CONNECT without any indication of baud rate.
Parameters
Code
X0
X1
X2
X3
X4
The parameters are:
Description
Deactivates detection of engaged tones except if this is imposed by the national requirements; only sends the result codes OK , CONNECT , RING , NO CARRIER , ERROR and NO ANSWER .The blind dialing mode is activated/deactivated by the national parameters. If detection of the engaged tone is in use and if such a tone is detected, it is the response NO CARRIER which is sent back instead of BUSY .If dial tone detection is in use or selected and if no such tone is detected, it is the response NO CARRIER which is sent back instead of NO DIAL TONE .The binary value 000 is written in bits 6, 5 and 4 of S22 respectively.
Deactivates detection of engaged tones except if this is imposed by the national requirments; only sends the result codes OK , CONNECT , RING , NO CARRIER , ERROR , NO ANSWER and CONNECT XXXX
(XXXX = baud rate). Blind dialing mode is activated/deactivated by the national parameters. If detection of the engaged tone is in use and if such a tone is detected, it is the response NO CARRIER which is sent back instead of BUSY .If dial tone detection is in use or selected and if no such tone is detected, it is the response NO CARRIER which is sent back instead of NO DIAL TONE .The binary value 100 is written in bits 6, 5 and 4 of S22 respectively.
Deactivates detection of engaged tones except if this is imposed by national requirements; only sends the result codes OK , CONNECT , RING , NO CARRIER , ERROR , NO DIAL TONE , NO ANSWER and
CONNECT XXXX .If detection of the engaged tone is in use and if such a tone is detected, it is the response NO CARRIER which is sent back instead of BUSY .If dial tone detection is in use or selected and if no such tone is detected, it is the response NO CARRIER which is sent back instead of NO DIAL
TONE .The binary value 101 is written in bits 6, 5 and 4 of S22 respectively.
Activates detection of engaged tones; only sends the result codes OK , CONNECT , RING , NO CARRIER ,
ERROR , NO DIAL TONE , NO ANSWER et CONNECT XXXX .Blind dialing mode is activated/deactivated by the national parameters.If dial tone detection is in use and if no such tone is detected, it is the reply
NO CARRIER which is sent instead of NO DIAL TONE .The binary value 110 is written in bits 6, 5 and
4 of S22 respectively.
Activates detection of engaged tones; sends all messages. The binary value 111 is written in bits 6,
5 and 4 of S22 (default value) respectively.
TLX DS COM PL7 xxE
153
Appendices
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 4.
If n is not in the range 0 to 4.
Table of result codes
The n value
18
19
20
22
14
15
16
17
23
24
32
33
10
11
12
13
8
9
6
7
4
5
2
3
0
1
Abbreviated Complete form form
OK
CONNECT
RING
NO CARRIER
ERROR
CONNECT 1200
NO DIAL TONE
BUSY
NO ANSWER
CONNECT 0600
CONNECT 2400
CONNECT 4800
CONNECT 9600
CONNECT 7200 n = 0
CONNECT 12000
CONNECT 14400
CONNECT 19200
CONNECT 38400
CONNECT 57600
CONNECT 115200
CONNECT 230400 X
CONNECT 75RTX / 1200RX 1
CONNECT 1200TX / 75RX
DELAYED
1
4
BLACKLISTED
FAX
4
X
1
1
1
1
1
1
1
1
1
1
X
1
3
3
X
1
X
X
X
X n = 1
X
X
X
X
X
X
X
X
3
3
X
X
X
X
X
X
X
4
X
X
4
X
X
X
X
X n = 2 n = 3
X
X
X
X
X
X
X
X
X
3
X
X
X
X
X
X
X
4
X
X
4
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
4
X
X
4
X
X
X
X
X n = 4
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
Note
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Note 4
-
154
TLX DS COM PL7 xxE
Appendices
77
78
79
80
66
67
69
70
81
84
91
150
61
62
63
64
56
57
58
59
52
53
54
55
48
49
50
51
44
45
46
47
Abbreviated form
Complete form
35
40
DATA
CARRIER 300
CARRIER 1200 / 75
CARRIER 75 / 1200
CARRIER 1200
CARRIER 2400
CARRIER 4800
CARRIER 7200
CARRIER 9600
CARRIER 12000
CARRIER 14400
CARRIER 16800
CARRIER 19200
CARRIER 21600
CARRIER 24000
CARRIER 26400
CARRIER 28800
CONNECT 16800
CONNECT 21600
CONNECT 24000
CONNECT 26400
CONNECT 28800
COMPRESSION: CLASS 5
COMPRESSION: V.24 bis n = 0
COMPRESSION: NONE
PROTOCOL: NONE
PROTOCOL: LAPM
CARRIER 31200
CARRIER 33600
PROTOCOL: ALT
PROTOCOL: ALT-CELLULAR X
CONNECT 33600 1
X
X
CONNECT 31200
CARRIER 32000
1
X
X
X
X
X
X
X
1
1
1
1
X
1
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
TLX DS COM PL7 xxE n = 1 n = 2
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X n = 3
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
Note
-
-
-
Note 3
Note 3
-
-
Note 3
Note 3
Note 4
Note 2
Note 2
Note 2
Note 2
-
-
Note 2
Note 2
-
-
-
Note 2
Note 2
Note 2
Note 2
Note 2
-
-
-
-
-
-
-
n = 4
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
155
Appendices
171
172
173
174
167
168
169
170
175
176
177
+ F4
161
162
165
166
157
158
159
160
153
154
155
156
Abbreviated Complete form form
151
152
CARRIER 34000
CARRIER 36000
CARRIER 38000
CARRIER 40000
CARRIER 42000
CARRIER 44000
CARRIER 46000
CARRIER 48000
CARRIER 50000
CARRIER 52000
CARRIER 54000
CARRIER 56000
CONNECT 32000
CONNECT 34000
CONNECT 36000
CONNECT 38000
CONNECT 40000
CONNECT 42000
CONNECT 44000
CONNECT 46000
CONNECT 48000
CONNECT 50000
CONNECT 52000
CONNECT 54000
CONNECT 56000
+FCERROR n = 0 n = 1
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X n = 2 n = 3
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X n = 4
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
Note
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
Note 4
-
156
TLX DS COM PL7 xxE
Appendices
Abbreviated form
Complete form n = 0 n = 1 n = 2 n = 3 n = 4 Note
2
3
4
Observatio ns
1 An ‘X’ in the column means that the message in question (in its text form or only numerical) is generated when the corresponding value ‘n’ (indicated at the top of column) has been selected with the ATXn command. If the column is blank, no message is generated for this table slot. A number sends back a less explicit message (in complete or abbreviated form) which will be sent to the table slot in question.
RC288 modems and higher.
RC336 modems and higher.
RC56 modems.
TLX DS COM PL7 xxE
157
Appendices
Yn - Disconnection after prolonged inactivity
Introduction
Parameters
This command activates/deactivates generation and response to a disconnection after prolonged inactivity. The parameter value, if valid, is written in bit 7 of S21.
The parameters are:
Code
Y0
Y1
Description
Deactivates disconnection after prolonged inactivity.
Activates disconnection after prolonged inactivity. In error correction mode, the modem sends an inactivity signal of four seconds before hanging up. In the same mode, the modem responds to the receipt of a prolonged inactivity signal
(for example a 'break' signal of more than 1.6 seconds) by hanging up.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 1.
If n is not in the range 0 to 1.
158
TLX DS COM PL7 xxE
Appendices
Zn - Software reset of modem and restoration of profile
Introduction
Parameters
The modem executes a software reset and reestablishes the configuration profile defined by the parameter.
In the absence of a parameter, zero is assumed.
The parameters are:
Code
Z0
Z1
Description
Software reset of modem and reestablishment of stored profile 0.
Software reset of modem and reestablishment of stored profile 1.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 1.
If n is not in the range 0 to 1.
TLX DS COM PL7 xxE
159
Appendices
&Cn - RLSD Option (detection of DCD carrier)
Introduction
Parameters
The modem monitors the carrier detection output according to the parameter entered. The parameter value, if valid, is written in bit 5 of S21.
The parameters are:
Code
&C0
&C1
Description
Carrier detection is active all the time (default value).
Carrier detection depends on the carrier status.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 1.
If n is not in the range 0 to 1.
160
TLX DS COM PL7 xxE
Appendices
&Dn - DTR Option (Data Terminal Ready)
Introduction
Parameters
This command interprets loss of the DTR signal sent by the DTE, according to the parameter entered. The parameter value, if valid, is written in bits 3 and 4 of S21.
The parameters are:
Code
&D0
&D1
&D2
&D3
Description
Loss of the DTR signal is interpreted as follows according to the &Q value in progress (default value): l &Q0,&Q5, &Q6: ignores the DTR signal (assumed activated) and enables operation with DTEs which do not support DTR signals.
l &Q1, &Q4: loss of the DTR signal causes the modem to hang up. There is no repercussion on automatic answer.
l &Q2, &Q3: loss of the DTR signal causes the modem to hang up. Automatic answer is inhibited.
Loss of the DTR signal is interpreted as follows according to the &Q value in progress: l &Q0, &Q1, &Q4, &Q5, &Q6: loss of the DTR signal is interpreted by the modem as though the synchronous escape sequence had been entered.
The modem returns to asynchronous command mode without l disconnection.
&Q2, &Q3: loss of the DTR signal causes the modem to hang up. Automatic answer is inhibited.
Loss of the DTR signal is interpreted as follows according to the &Q value in progress: l &Q0 to &Q6: loss of the DTR signal causes the modem to hang up.
Automatic answer is inhibited.
Loss of the DTR signal is interpreted as follows according to the &Q value in progress: l &Q0, &Q1, &Q4, &Q5, &Q6: loss of the DTR signal causes the modem to reset the software as though it had received the Z command. The value of
&Y defines the profile which is loaded.
l &Q2, &Q3: loss of the DTR signal causes the modem to hang up. Automatic answer is inhibited.
Note: If &Q5, &Q6, +FCLASS=1 is in use, the result is identical to the &Q0 command.
TLX DS COM PL7 xxE
161
Appendices
&Fn - Restoration of the factory configuration (profile)
Introduction
Parameters
The modem loads the defined factory default configuration according to the parameter entered. The default Rockwell values corresponding to the 0 (&F0) profile are used for each command and in the S register descriptions. Two profiles are available. A configuration profile is made up of a sub-set of S registers.
The parameters are:
Code
&F0
&F1
Description
Reestablishes the factory profile 0 (default value).
Reestablishes the factory profile 1.
162
TLX DS COM PL7 xxE
Appendices
&Gn - Selection of guard tone
Introduction
Parameters
The modem generates the guard tone selected by this command according to the parameter entered (differential phase shift modulation modes only). The parameter value, if valid, is written in bits 6 and 7 of S23.
The parameters are:
Code
&G0
&G1
&G2
Description
Deactivates the guard tone (default value for US models).
Deactivates the guard tone.
Selects a guard tone of 1800 Hz (default value for W-class models).
Result codes
Note: In certain countries, this command may not be authorized.
The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 2.
If n is not in the range 0 to 2.
TLX DS COM PL7 xxE
163
Appendices
&Kn – Flow control
Introduction
Parameters
This command defines the DTE/DCE (terminal/modem) flow control mechanism.
The parameter value, if valid, is written in bits 0, 1 and 2 of S39.
The parameters are:
Code
&K0
&K3
&K4
&K5
&K6
Description
Deactivates flow control.
Activates RTS/CTS flow control - hardware flow control (default value for data modem modes).
Activates XON/XOFF flow control – software flow control.
Activates transparent XON/XOFF flow control.
Activates RTS/CTS flow control and XON/XOFF flow control at the same time
(default value for fax-modem modes).
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0, 3 to 6.
If n is not equal to 0 or 3 to 6.
164
TLX DS COM PL7 xxE
Appendices
&Pn - Selection of pulse dialing close/open report
Introduction
Parameters
This command determines the close/open report used during pulse dialing. It only has an effect if the appropriate bit activating this command is set by the program
ConfigurACE.
If the command is activated, it has priority over the close/open reports defined by the
OEM parameters in ConfigurACE. The default value depends on the country. The parameter value, if valid, is written in bits 3 and 4 of S28.
The parameters are:
Code
&P0
&P1
&P2
&P3
Description
Selection of 39%-61% as close/open report at 10 pulses per second (default value).
Selection of 33%-67% as close/open report at 10 pulses per second.
Selection of 39%-61% as close/open report at 20 pulses per second.
Selection of 33%-67% as close/open report at 20 pulses per second.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 3.
If n is not in the range 0 to 3.
TLX DS COM PL7 xxE
165
Appendices
&Qn - Synchronous/asynchronous mode
Introduction
Parameters
This command monitors the authorized connection modes. It is used in association with S36 and S48 (see also command \N).
The parameters are:
Code
&Q0
&Q1
&Q2
&Q4
&Q5
&Q6
Description
Selects direct asynchronous mode.
Selects
Selects
Selects automatic synchronous mode. The binary value 100 is written in bits 3,
1 and 0 of S27 respectively.
The modem attempts to establish a link with error correction. The mode can be configured with S36 to determine if, in case of failure, the modem hangs up or if it falls back to an asynchronous connection. The binary value 101 is written in bits 3, 1 and 0 of S27 (default value) respectively.
Selects normal asynchronous mode (with baud rate buffer). The binary value
110 is written in bits 3, 1 and 0 of S27 respectively.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0, 1, 2, ,4, 5, 6.
If n is not equal to 0, 1, 2, 4, 5, or 6.
166
TLX DS COM PL7 xxE
Appendices
&Rn - RTS/CTS option
Introduction
Parameters
This command selects the mode for monitoring of the ready to send signal (Clear to
Send - CTS) by the modem. The operation of the CTS signal is modified if hardware flow control is selected (see command &K).
The parameters are:
Code
&R0
&R1
Description
In synchronous mode, the CTS signal follows the RTS status (request to send); the RTS-CTS delay is defined by S26. In asynchronous mode, CTS operates according to V.25 handshaking.
In synchronous mode, CTS is always active (the RTS transitions are ignored).
In asynchronous mode, CTS does not become inactive unless it is imposed by flow control (default value).
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 1.
If n is not in the range 0 to 1.
TLX DS COM PL7 xxE
167
Appendices
&Sn - DSR Monitoring (Data Station Ready)
Introduction
Parameters
This command selects the way in which the modem monitors the DSR signal (Data
Station Ready). The parameter value, if valid, is written in bit 6 of S21.
The parameters are:
Code
&S0
&S1
Description
The DSR signal is always active (default value).
The DSR signal becomes active after the detection of an answer tone and inactive after the loss of the carrier.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 1.
If n is not in the range 0 to 1.
168
TLX DS COM PL7 xxE
Appendices
&V - Display of current configuration and stored profiles
Introduction
Result codes
This command gives the current configuration (active), the profiles (defined by the user) and the first four stored telephone numbers.
The profiles and the stored telephone numbers are not displayed if the NVRAM memory is not installed or if it is detected as being non operational by the NVRAM test during the reset process.
The following table lists the possible command responses.
Code
OK
Description
-
Example The example
AT&V
ACTIVE PROFILE :
B0 E1 L1 M1 N1 QO T V1 W0 X4 Y0 &C0 &D0 &G2 &J0 &K3 &Q5 &R1
&S0 &T4 &X0 &Y0
S00:002 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002
S07:030 S08:002 S09:006S10:014 S11:255 S12:050 S18:000 S25:005
S26:001 S36:007 S37:000 S38:020 S46:138
S48:007 S95:000
PROFILE 0 STORED :
B0 E1 L1 M1 N1 QO T V1 W0 X4 Y0 &C0 &D0 &G2 &J0 &K3 &Q5 &R1
&S0 &T4 &X0
S00:002 S02:043 S06:002 S07:030 S08:002 S09:006 S10:014
S11:095 S12:050 S18:000
S36:007 S37:000 S40:105 S41:003 S46:138 S95:000
PROFILE 1 STORED :
B0 E1 L1 M1 N1 QO T V1 W0 X4 Y0 &C0 &D0 &G2 &J0 &K3 &Q5 &R1
&S0 &T4 &X0
S00:002 S02:043 S06:002 S07:030 S08:002 S09:006 S10:014
S11:095 S12:050 S18:000
S36:007 S37:000 S40:105 S41:003 S46:138 S95:000
TELEPHONE NUMBERS :
0 = 1 =
2 = 3 =
OK
TLX DS COM PL7 xxE
169
Appendices
&Wn – Storage of the current configuration
Introduction
Parameters
Saves the current configuration (active profile), including the S registers, in one of the two user profiles in NVRAM memory, according to the value of the parameter.
This command will result in an ERROR response if the NVRAM memory is not installed or if it is detected as being non operational by the test.
The current configuration is made up of a list of storable parameters, as illustrated by the &V command. These values are reassigned to the active configuration on receipt of a Zn command or on power-up (see &Yn command).
The parameters are:
Code
&W0
&W1
Description
Stores the active configuration as profile 0.
Stores the active configuration as profile 1.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 1.
If n is not in the range 0 to 1.
170
TLX DS COM PL7 xxE
&Yn - Designation of a default profile on reset
Introduction
Parameters
Selects the user profile to be loaded after a hardware reset.
The parameters are:
Code
&Y0
&Y1
Description
The modem uses profile 0.
The modem uses profile 1.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 1.
If n is not in the range 0 to 1.
Appendices
TLX DS COM PL7 xxE
171
Appendices
&Zn – Storage of telephone numbers
Introduction
Parameters
The modem can store a maximum of 20 telephone numbers. Each telephone number can be up to 45 digits.
The parameters are:
Code Description
&Zn = x n = 0 to 19 (W-class) and x = number string (needs 2048 bytes of NVRAM).
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 19 and x less than or equal to 45 digits.
If n is greater than 19 or x greater than 45 digits.
172
TLX DS COM PL7 xxE
Appendices
%Cn - Activation / deactivation of data compression
Introduction
Parameters
Activates / deactivates data compression The parameter value, if valid, is written in bits 0 and 1 of S41.
The parameters are:
Code
%C0
%C1
%E2
%E3
Description
Deactivates data compression.
Activates MNP 5 data compression.
Activates V.42 bis data compression.
Activates V.42 bis and MNP 5 data compression.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 3.
If n is not in the range 0 to 3.
TLX DS COM PL7 xxE
173
Appendices
%En - Activation/deactivation of line quality monitoring or automatic resynchronization or fallback/increase of transfer rate
Introduction
Parameters
Determines whether or not the modem automatically monitors the line quality and requests resynchronization (%E1) or a fallback when the line quality is insufficient or an increase in the transfer rate when the line quality is sufficient (%E2). This only applies to switched lines. The parameter value, if valid, is written in bits 2 and 6 of
S41.
The resynchronization attempt, if it is activated, lasts a maximum of 30 seconds.
The parameters are:
Code
%E0
%E1
%E2
Description
Deactivates line quality monitoring and automatic resynchronization attempt
(default value).
Activates line quality monitoring and automatic resynchronization attempt.
Activates line quality monitoring and transfer rate fallback/increase.
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 2.
If n is not in the range 0 to 2.
174
TLX DS COM PL7 xxE
Appendices
%L - Level of line signal
Introduction
Result codes
Sends back a value which indicates the level of signal received. The returned value is a direct indication of the level of reception at the modem data pumping device, and not at the telephone line connector.
For example, 009 = -9 dBm, 043 = -43 dBm, and so on.
The following table lists the possible command responses.
Code
OK
Description n = 0 to 1.
TLX DS COM PL7 xxE
175
Appendices
%Q - Quality of line signal
Introduction
Result codes
Indicates the line quality (DAA function, network access connector). Sends back most significant byte of EQM value. Depending on the EQM value, there can be a resynchronization attempt or a fallback/increase of transfer rate, triggered by &E1 or
%E23.
The following table lists the possible command responses.
Code
OK
ERROR
Description
If connected.
If not connected or connected at 300 b/s, in V.23 or in fax mode.
Example AT&Q
015
176
TLX DS COM PL7 xxE
Appendices
\Kn - BREAK control
Introduction
Parameters of case 1
According to the parameter entered, controls the modem response to a break signal received from the DTE, from the remote modem or from the \B command. The value of the parameter, if valid, is written in bits 3, 4 and 5 of S40. The response is different according to the case.
Code
\K0
\K1
\K2
\K3
\K4
\K5
The first case is that of the modem which receives a break from the DTE when it is in data transfer mode:
Description
Switches to on-line command mode, no break sent to the remote modem.
Empties the data buffers and sends a break to the remote modem.
As \K0.
Immediately sends a break to the remote modem.
As \K0.
Sends a break to the remote modem in sequence with the transmitted data
(default value).
Parameters of case 2
Code
\K0
\K1
\K2
\K3
\K4
\K5
The second case is that of the modem which is in on-line command mode (awaiting
AT commands) during a connection, and which receives a \B command for it to send a break to the remote modem:
Description
Empties the data buffers and sends a break to the remote modem.
Empties the data buffers and sends a break to the remote modem.
Immediately sends a break to the remote modem.
Immediately sends a break to the remote modem.
Sends a break to the remote modem in sequence with the data.
Sends a break to the remote modem in sequence with the data.
TLX DS COM PL7 xxE
177
Appendices
Parameters of case 3
Code
\K0
\K1
\K2
\K3
\K4
\K5
The third case is that of the modem which receives a break from the remote modem during a connection without error correction:
Description
Empties the data buffers and sends a break to the DTE.
Empties the data buffers and sends a break to the DTE.
Immediately sends a break to the DTE.
Immediately sends a break to the DTE.
Sends a break to the DTE in sequence with the received data.
Sends a break to the DTE in sequence with the received data (default value).
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 5.
If n is not in the range 0 to 5.
178
TLX DS COM PL7 xxE
Appendices
\Nn - Operating mode
Introduction
Parameters
This command defines the preferred error correction mode to negotiate during a subsequent connection. It is assigned by the configuration of the OEM firmware.
The parameters are:
Code
\N0
\N1
\N2
\N3
\N4
\N5
Description
Selects normal mode with baud rate buffer (without error correction mode)
(equivalent to &Q6).
Serial interface selected – selects direct mode and is equivalent to the operating mode (equivalent to &Q0). Parallel interface selected – as \N0.
Select reliable mode (with error correction). The modem attempts first to establish an LAPM correction then an MNP connection. If it fails, the modem hangs up (equivalent to &Q5, S36=4 and S48=7).
Selects automatic reliable mode. This mode is identical to \N2 mode apart from the fact that if the modem does not manage to establish a reliable connection, it falls back to normal mode (equivalent to &Q5, S36=7 and S48=7).
Selects LAPM error correction mode. If it fails, the modem hangs up
(equivalent to &Q5, and S48=0).
Selects MNP error correction mode. If it fails, the modem hangs up (equivalent to &Q5, S36=4 et S48=128).
Result codes The following table lists the possible command responses.
Code
OK
ERROR
Description n = 0 to 5.
If n is not in the range 0 to 5.
TLX DS COM PL7 xxE
179
Appendices
Values of the registers of the TSX MDM 10 card in a PLC
Introduction
Registers
The default values of the TSX MDM 10 card are stored in ROM memory and loaded during power-up or by the ATZn command.
S18
S25
S26
S36
S09
S10
S11
S12
S37
S38
S46
S48
S95
The default values are shown in the following table:
S03
S04
S05
S06
Register
S00
S01
S02
S07
S08
Function
Rings to auto-answer
Ring counter
Escape character
Carriage Return character
Line Feed Character
Backspace character
Wait time for dial tone
Wait time for carrier
Pause time for dial delay modifier
Carrier detect response time 006
Carrier loss disconnect time 014
DTMF tone duration
Escape code guard time
070
050
Test timer
Delay to DTR off
RTS to CTS delay
LAPM failure control
000
005
000
007
Line connection speed 000
Delay before forced hangup 020
Data compression control
V.42 negotiation control
Result code messages control
136
007
000
013
010
008
005
Values
000
000
043
050
002
180
TLX DS COM PL7 xxE
Communication via Modbus Plus
III
Introduction
Aim of this part
What's in this part?
This part introduces the principles of configuring and communicating with Modbus
Plus via PL7 software.
This Part contains the following Chapters:
Chapter
12
13
14
15
16
17
Chaptername
General
Peer Cop service
Configuring Modbus Plus communication
Programming Modbus Plus communication
Debugging Modbus Plus communication
Language objects associated with Modbus Plus communication
Page
181
TLX DS COM PL7 xxE
Communication via Modbus Plus
182
TLX DS COM PL7 xxE
General
12
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter introduces Modbus Plus communication and its services.
This Chapter contains the following Maps:
Topic
Introduction
Compatibility
Integration into an X-WAY architecture
Integration into a Modbus Plus architecture
Page
TLX DS COM PL7 xxE
183
Modus Plus communication: General
Introduction
Introduction Modbus Plus communication is used to exchange data between all devices connected by the bus.
The Modbus Plus protocol is based on the principle of a logical token bus (Logical
Token passing). Each station of one network is identified by an address between 1 and 64 and each station accesses the network after reception of a token. Duplicated addresses are not valid.
Network example
Modbus Plus
2 12
Premium Quantum
Token bus (logic ring)
Associated manuals
A Modbus Plus communication channel comprises three main functions: l point to point data exchanges via the messaging service, using the Modbus protocol, l broadcast exchanges of global data between all the stations participating in this exchange, l multidrop exchanges of specific data via the Peer Cop services.
If you require further information you should consult the following manuals:
Title
Modbus Plus Network - Installation and planning manual
TSX Micro PLCs - Installation manual
Premium TSX PLCs - Installation manual
Description
Detailed description of the set-up procedure for the Modbus Plus network
Hardware installation
Hardware installation
184
TLX DS COM PL7 xxE
Modus Plus communication: General
Compatibility
Hardware
Software
This type of communication is available for PLCs of at least version V3.0: l l
TSX Premium via the intermediary of the TSX MBP100 PCMCIA card,
TSX Micro accepting the PCMCIA card described below.
Note: This type of communication is not available with TSX SCY 21601 modules.
TSX Premium and Micro PLCs do not support redundancy with the TSX MBP 100 card.
The PCMCIA TSX MBP 100 card can process 4 communication functions at the same time.
The maximum size of the number of objects per communication function is 125 useful data words (maximum frame of 256 bytes).
In the event of communication of a TSX Premium and Micro PLC with a TSX
Quantum PLC, it is necessary to shift addressing. To access a Quantum object with address n, the communication function on the Premium side must have the address n-1.
The Peer Cop service is only supported by TSX Premium PLCs.
During configuration of inputs and outputs for the Peer Cop service, it is possible to allocate up to 32 internal words to each connection point in the local bus. The total number of words must not exceed 500 internal words.
TLX DS COM PL7 xxE
185
Modus Plus communication: General
Integration into an X-WAY architecture
Introduction A Modbus Plus segment can be integrated into an X-WAY network architecture.
Communications between stations on the different networks are possible under certain conditions of use.
Communication to a Modbus Plus network
A client application connected to a FIPWAY or ETHERNET TCP/IP network can communicate with a Modbus Plus station via the Modbus protocol.
In this case, you must indicate the X-WAY network address of the TSX Premium
PLC which is connected on the Modbus Plus segment as well as on the FIPWAY network, and the number of the destination Modbus Plus station.
The syntax is as follows:
{network number, station number} 0.1. Modbus Plus station number
Example In this example, the FIPWAY station {5.3} has a Modbus Plus connection and therefore, any remote FIPWAY station which wishes to communicate with a Modbus
Plus station (for example station 5) must use this address.
READ_VAR(ADR#{5.3}0.1.5, '%MW', 100, 10,%MW200:10, %MW300:4)
Configuration example
READ_VAR(ADR#{5.3}0.1.5, '%MW', 100,
10,%MW200:10, %MW300:4)
Premium
3
FIPWAY #5
Quantum
8
Modbus Plus
Quantum
5
Note: Routing between FIPWAY and Modbus Plus is carried out by the automatic system. In a network architecture, it is not necessary to declare a bridge station.
186
TLX DS COM PL7 xxE
Modus Plus communication: General
Communication from a Modbus
Plus network
If a Modbus Plus segment is integrated into an X-WAY architecture, a Quantum station cannot communicate with stations connected to another network in this architecture (for example FIPWAY or ETHERNET TCP/IP). Communication is only possible with the local Premium.
Example The Quantum PLC sends a write request to modify 5 words in the PL7 application
(%MW10, .etc.), but it does not have access to the other stations on Fipway.
Premium
3
FIPWAY #5
Quantum
5 Modbus Plus
MBP-MSTR write
5
10
RP=5.0.0.0.0
TLX DS COM PL7 xxE
187
Modus Plus communication: General
Integration into a Modbus Plus architecture
Introduction
Premium to
Quantum
Quantum to
Premium
In a Modbus Plus architecture, a TSX Quantum PLC application can communicate with a TSX Premium PLC and vice versa.
Communication from a TSX Premium PLC to a remote station is described in the exchange service on remote networks.
Communication from a TSX Quantum PLC to a TSX Premium PLC is available via
MSTR blocks.
In this case, the TSX Premium or Micro are servers; therefore, all Modbus Plus stations connected to a network architecture, up to a maximum of 5 levels, can communicate with them.
Example
1
Premium
2
Quantum
3 Modbus Plus
Bridge Plus
Modbus Plus
5
8
Bridge Plus
Modbus Plus
Quantum
4
Quantum
MSTR read
The Quantum station sends a read request to the Premium station using an address path: 8.5.1.0.0 (routing path).
188
TLX DS COM PL7 xxE
Modus Plus communication: General
The MSTR function block is used to read or write internal words of a Premium or
Micro station. The parameter of the slave register of the MSTR function block directly indicates the address of the internal word %MW of the PL7 application. This function block is also used to read or reset the statistics counters of a Premium or
Micro station. This request is executed directly by the PCMCIA card which responds directly.
TLX DS COM PL7 xxE
189
Modus Plus communication: General
190
TLX DS COM PL7 xxE
Peer Cop service
13
Peer Cop service
Introduction
Specific inputs and outputs
Report
The Peer Cop service is an automatic exchange mechanism between stations connected to the same local Modbus Plus segment.
This service is used to maintain constant control over inputs / outputs which have been remoted by implicit exchanges.
l l
The TSX Premium PLCs support two types of Peer Cop transfer.
specific inputs, specific outputs.
The specific inputs and outputs are point to point services which use the multicast protocol (multistations). Each message contains one or several destination addresses for sending the data. This function is used to exchange data to several stations without repetition.
l l
Three types of report are associated with the specific inputs and outputs: activity bit: provides information on the availability and validity of the status bits, status bits (to the number of one bit per station): l ensure coherence between the number of specific inputs configured and the l l number of specific inputs received, indicate if the specific inputs have been received during the Timeout, presence bits (to the number of one bit per station): indicate if the specific inputs have been refreshed.
Note: The presence bits are only valid for the specific inputs.
191
TLX DS COM PL7 xxE
Communication Modbus Plus: Peer Cop service
Example for the inputs
The data blocks are copied in full from the PCMCIA card to the internal word space, reserved during configuration.
Max. 500 characters
In the following example, the address of the first internal word is %MW10:
Internal words PCMCIA card Modbus Plus network
%MW10
3 words from station 1
%MW13
32 words from station 5
%MW45
20 words from station 6
%MW65
12 words from station 8
%MW77
32 words from station 9 copy
Peer Cop data specific inputs
Station 1
Station 5
Station 6
Station 62
%MW150
3 words from station 62
Activity bit
%IW0.1.6
%IW0.1.7
...
%IW0.1.14
copy
Status bits
Presence bits
192
TLX DS COM PL7 xxE
Communication Modbus Plus: Peer Cop service
Example for the outputs
The data blocks are copied in full from the internal word space, reserved during configuration, to the PCMCIA card. The reports are copied from the PCMCIA card to the language objects.
In the following example, the address of the first internal word is %MW10:
Max. 500 characters
Internal words
%MW10
3 words from station 1
%MW13
32 words of station 5
%MW45
20 words of station 6
%MW65
12 words from station 8
%MW77
32 words from station 9 copy
PCMCIA card
Specific outputs
Peer Cop data
Modbus Plus network
Station 1
Station 5
Station 6
Station 62
%MW150
3 words from station 62
%IW0.1.6
%IW0.1.7
...
%IW0.1.14
copy
Activity bit
Status bits
Station 1
Station 5
Station 6
Station 62
TLX DS COM PL7 xxE
193
Communication Modbus Plus: Peer Cop service
194
TLX DS COM PL7 xxE
Configuring Modbus Plus communication
14
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter describes the Configuration process during set-up of Modbus Plus communication.
This Chapter contains the following Maps:
Topic
How to access the Modbus Plus PCMCIA card parameters
Modbus Plus configuration screen
Functions accessible from Modbus Plus
Modbus Plus configuration parameters
Configuring the specific inputs and outputs
Page
195
TLX DS COM PL7 xxE
Modbus Plus configuration
How to access the Modbus Plus PCMCIA card parameters
Introduction
How to access the link
This operation describes how to access the configuration parameters of the Modbus
Plus link via the intermediary of the PCMCIA cards for TSX Premium PLCs.
The following table shows the procedure for accessing the Modbus Plus link:
Step
1
2
Action
Access the communication channel configuration screen.
Select the communication channel from the drop-down menu CHANNEL 1
Example
CHANNEL 1:
CHANNEL 1 (No PCMCIA submodule)
(Link not configured)
CHANNEL 1
MAST
3 Select the PCMCIA card from the drop-down menu TSX MBP 100 MODBUS+
PCMCIA CARD :
Example
CHANNEL 1
CHANNEL 1 (No PCMCIA submodule)
(Link not configured) MAST
TSX FPP 200 FIPWAY PCMCIA CARD
TSX FPP 10 FIPIO PCMCIA CARD
TSX FPP 100 MODBUS+ PCMCIA CARD
TSX MDM 10 MODEM PCMCIA CARD
FCS SCP 111 RS232 OPEN PCMCIA CARD
FCS SCP 114 RS485 OPEN PCMCIA CARD
196
TLX DS COM PL7 xxE
Modbus Plus configuration
Modbus Plus configuration screen
Introduction
Illustration
This screen, split into two zones, is used to declare the communication channel and to configure the parameters necessary for a Modbus Plus link.
The screen dedicated to Modbus Plus communication looks like this:
TSX 57302 [RACK 0 POSITION 0]
Configuration
Designation: PROCESSOR TSX P 57302
1
CHANNEL 1:
CHANNEL 1
MODBUS+
TSX MBP 100 MODBUS+ PCMCIA CARD
MAST
2
Station number: : 1
Peer Cop
Value of Timeout:
Input fallback mode
Maintain
Reset to 0
500 (ms)
Specific Inputs
Specific outputs
Elements and functions
This table describes the different zones that make up the configuration screen:
Address Zone
1 common
2 specific
Function
(See : PL7 Micro/Junior/Pro ; Communication applications ;
Volume 1) is used to select or complete the parameters of a Modbus Plus link.
It is split into two types of information: l l station addressing, the parameters concerning the Peer Cop service.
TLX DS COM PL7 xxE
197
Modbus Plus configuration
Functions accessible from Modbus Plus
Introduction
Accessible functions
Depending on the chosen communication supports, some parameters cannot be modified. They appear grayed out.
The summary table below shows the various choices possible:
Functions
Station number
Peer Cop
Input fallback mode
Specific inputs
Specific outputs
TSX MPB 100
For processors of at least version V3.0
For processors of at least version V3.3
Accessible if the Peer Cop box is checked
Accessible if the Peer Cop box is checked
Accessible if the Peer Cop box is checked
198
TLX DS COM PL7 xxE
Modbus Plus configuration
Modbus Plus configuration parameters
Introduction
Addressing parameter
Peer Cop parameters
Once the communication channel has been configured, complete the parameters dedicated to the Modbus Plus link.
They are split into two windows: l l the Station number window, the Peer Cop window,
The window looks like this:
Station number: : 1
This parameter is used to define the address (or connection point) of the station on the Modbus Plus network.
The window is only accessible by checking the box Peer Cop:
Peer Cop
Value of Timeout:
Input fallback mode
Maintain
Reset to 0
500 (ms)
Specific Inputs
Specific outputs
It can be used to: l complete the Timeout value: Input refresh time in milliseconds. It is used to specify the maximum time during which the inputs from remote stations must be l l updated in the PCMCIA card. In the event that data is not refreshed within the time allowed, an error is detected.
l l the default value is 20 ms, the values range from 20 ms to 2 s, l the increment is 20 ms.
define the Input Fallback mode: l maintained, l cleared.
access the values of the specific inputs and specific outputs. Peer Cop
TLX DS COM PL7 xxE
199
Modbus Plus configuration
Configuring the specific inputs and outputs
Introduction
Configuration rules
Specific inputs
If you have checked the box Peer Cop, you must specify the start address and the size of the data to be exchanged.
These data are stored in the internal words of the application. Peer Cop service,
The input words zone cannot be superimposed on the output words zone.
The internal words corresponding to the specific inputs or outputs are stored continuously.
The maximum size of the specific data must not exceed 1000 words (max. 500 words for the inputs and max. 500 words for the outputs).
After selection of the button Specific inputs, the following window will appear:
Peer Cop input
Station
8
9
6
7
10
3
4
1
2
5
Ref.
Length (0..32)
%MW10
%MW15
%MW24
%MW56
%MW84
%MW88
%MW104
%MW117
%MW149
5
9
32
28
4
16
13
32
19
Validate
Cancel
Address of 1st %MW
%MW 10
For each connection point of the local bus segment, the user must define: l l the start address in the table of internal words (%MW),
The size of the exchanges from 0 to 32 words per station on the local bus segment.
200
TLX DS COM PL7 xxE
Modbus Plus configuration
Specific outputs After selection of the button Specific outputs, the following window will appear:
Peer Cop outputs
Station
8
9
6
7
10
3
4
1
2
5
Ref.
%MW100
%MW105
%MW111
%MW126
%MW158
%MW184
%MW187
%MW199
%MW220
Length (0..32)
5
6
15
32
26
3
12
21
1
Validate
Cancel
Address of 1st %MW
%MW 100 l l
For each connection point of the local bus segment, the user must define: the start address in the table of internal words (%MW),
The size of the exchanges from 0 to 32 words per station on the local bus segment.
TLX DS COM PL7 xxE
201
Modbus Plus configuration
202
TLX DS COM PL7 xxE
Programming Modbus Plus communication
15
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter describes the Programming process during set-up of Modbus Plus communication.
This Chapter contains the following Maps:
Topic
Read and write service on local segment
Exchange service on remote Modbus Plus networks
Examples of Exchanges on Offset Networks
Diagnostic service
Global data exchange service
Page
203
TLX DS COM PL7 xxE
Modbus Plus programming
Read and write service on local segment
Introduction A TSX Micro or Premium PLC can exchange data with stations connected to the local Modbus Plus network.
Data exchanges The functions READ_VAR and WRITE_VAR are used to access remote stations on the same local segment, bits, internal words or input and output words in read / write mode.
These exchanges are explicit exchanges managed by the application.
The addressing from a TSX Premium station will be for example: l in read mode l
READ_VAR (ADR#0.1.10, '%MW', 10, 20, %MW10:20, %MW100:4) in write mode
WRITE_VAR (ADR#0.1.10, '%MW', 10, 20, %MW10:20, %MW100:4)
The following table describes the different parameters of the function:
Parameter
ADR#0.1.10
'%MW'
10
20
%MW10:20
%MW100:4
Description
Address of destination device for the message: l l l processor slot: 0 or 1
PCMCIA channel: 1 destination station number: 10
Type of object to be read or written, for example: internal words
Address of first word to be read or written
Number of words to be read or written
For reading: content of response
For writing: value of words to be written
Activity bit, exchange report, length
204
TLX DS COM PL7 xxE
Modbus Plus programming
Correspondence of object type
The tables describe the correspondence of object types between the TSX Premium and TSX Quantum PLCs.
The TSX Premium PLC is the sender of the request and the TSX Quantum PLC replies:
Type of PL7 object Responding Quantum object READ_VAR or WRITE_VAR function
'%MW'
'%M'
'%IW'
'%I' internal words internal bits input words input bits
4x... memory area
0x... memory area
3x... memory area
1x... memory area
The TSX Quantum PLC is the sender via an MSTR function block and the TSX
Premium PLC replies:
MSTR function block
READ
WRITE
Responding Premium object
%MW
%MW
Example
1
The TSX Premium PLC application writes 10 internal words in the TSX Quantum
PLC at address 2 and reads 5 input words in the TSX Quantum PLC at address 5:
2 5
Quantum
WRITE_VAR(ADR#0.1.2, ‘%MW’, 10, 5, %MW100:5, %MW200:4)
READ_VAR(ADR#0.1.5, ‘%IW’, 5, 8, %MW100:5, %MW200:4)
The internal words to be written in station 2 are at address 10.
The internal words to be read in station 5 are at address 5.
Quantum
TLX DS COM PL7 xxE
205
Modbus Plus programming
Exchange service on remote Modbus Plus networks
Introduction A TSX Micro or Premium PLC can exchange data with stations connected to other
Modbus Plus segments via BP85 Bridge Plus bridges.
Access to a remote station.
To access a station connected to another network segment, it is necessary to indicate the full address path (routing path) in the information sent.
Beforehand, indicate, in the request, the address of the first destination connection point on the local bus.
Next, clarify, in the data to be sent, each address of the devices which will allow the passage of the exchanges to the destination station.
Data exchanges This type of exchange is accessible via the function SEND_REQ . To differentiate the reading and writing of data from a remote station, a request code is associated to the function SEND_REQ . These exchanges are explicit exchanges managed by the application.
The addressing from a TSX Premium station will be for example: l in read mode
SEND_REQ (ADR#0.1.61, 16#36, %MW300:50, %MW450:150, l
%MW600:4) in write mode
SEND_REQ (ADR#0.1.61, 16#37, %MW300:50, %MW450:150,
%MW600:4)
The following table describes the different parameters of the function:
Parameters
ADR#0.1.61
16#36
16#37
%MW300:50
%MW450:150
%MW600:4
Description
Address of destination device for the message: l l l processor slot: 0 or 1
PCMCIA channel: 1 number of the destination connection point on the local bus:
61
Request code for reading objects
Request code for writing objects
Address path, length, data to be sent
Address, length of data to be received
Activity bit, exchange report, length
206
TLX DS COM PL7 xxE
Data coding
Modbus Plus programming
The data of read / write requests are encoded in internal words, to be sent in the following way:
%MW300
Third address
Second address
Fifth address
%MW301
Fourth address
Type
%MW302
Segment
%MW303 %MW304
Address of first word
%MW306 to
%MW349
Size of data Data
TLX DS COM PL7 xxE
207
Modbus Plus programming
Examples of Exchanges on Offset Networks
At a Glance
22
The following illustration shows the two types, which are processed subsequently:
Modbus Plus
Premium
13
Quantum
61
BP85
Bridge Plus
12 30
15 25
Quantum
62
Quantum
BP85
Bridge Plus
4 7
Quantum
9
22
Slave
A
1
Bridge multiplexer
2 3 4
Modem
Modem
Master
A
Modem
Slave
113
Slave
69
BP85
Bridge Plus
208
TLX DS COM PL7 xxE
Example 1
Modbus Plus programming
Reading 120 internal words to address 80 of the Quantum station at the local address of 62 using a TSX Premium requires: l l l the routing path to access the Quantum station: 61, 30, 22, 62, 0.
the reading request code: 16#36.
the actual size of data to be transferred (memorized in %MW603): 10 bytes.
SEND_REQ(ADR#0.1.61, 16#36, %MW300:5, %MW450:120, %MW600:4)
Coding of the data to be transferred:
Parameters
%MW300
%MW301
%MW302
%MW303
%MW304
No data
Values
0x161E
0x003E
0x0768
80
120
Description
Second and third changeover addresses (30, 22)
Fourth and fifth changeover addresses (62, 0)
Segment 104 and type 7 (depends on the type of variable to be read or written)
Address of the first internal word to be read in the Quantum station
Size of data to be read (in words)
Note: After the execution of the SEND_REQ function, it is necessary to reclassify the bytes in the correct order.
TLX DS COM PL7 xxE
209
Modbus Plus programming
Example 2 Writing 50 internal words to address 560 of slave 113 connected to port 4 on the multiplexer bridge using a TSX Premium requires: l l l l l the routing path to access the slave: 61, 25, 4, 113, 0.
the reading request code: 16#37.
the actual size of data to be transferred (memorized in %MW603): 110 bytes.
the values of the data to be written (memorized in %MX306 to %MW354).
the response (memorized in %MW450:1): does not contain any data to be received, but should have a minimum length of a word.
SEND_REQ(ADR#0.1.61, 16#36, %MW300:5, %MW450:120, %MW600:4)
Coding of the data to be transferred:
Parameters
%MW300
%MW301
%MW302
%MW303
%MW304
%MW305 to
%MW354
%MW603
Values
0x0419
0x0071
0x0768
560
50
110
Description
Second and third changeover addresses (25, 4)
Fourth and fifth changeover addresses (113, 0)
Segment 104 and type 7 (depends on the type of variable to be read or written)
Address of the first internal word to be written in the Quantum station
Size of the data to be written (in words)
Data to be written
Actual size of the data to be transmitted with this function (in bytes)
210
TLX DS COM PL7 xxE
Modbus Plus programming
Diagnostic service
Introduction A TSX Micro or Premium PLC can read or reset local or remote default counters on a local Modbus Plus network.
Data exchanges This type of exchange is accessible via the function SEND_REQ . To differentiate the reading and writing of data from a remote station, a request code is associated to the function SEND_REQ .
The addressing from a TSX Premium station will be for example: l Reading counters
SEND_REQ (ADR#0.1.5, 16#A2, %MW100:1, %MW200:20, %MW300:4) l resetting counters
SEND_REQ (ADR#0.1.5, 16#A4, %MW100:1, %MW200:1, %MW300:4)
The following table describes the different parameters of the function:
Parameters
ADR#0.1.5
16#A2
16#A4
%MW100:1
%MW200:20
%MW200:1
%MW300:4
Description
Address of destination device for the message: l l l processor slot: 0 or 1
PCMCIA channel: 1 number of the destination connection point on the local bus: 5
Request code for reading counters
Request code for resetting counters
No data to send
No response on reception
Content of error counters
Activity bit, exchange report, length
Note: The length parameter in the report words is initialized at 0 before the request is sent.
TLX DS COM PL7 xxE
211
Modbus Plus programming
Counter list The following table shows the counters.
Meaning
15
16
17
18
19
20
11
12
13
14
7
8
9
10
5
6
3
4
1
2
Number of the counter
Retransmit deferral error counter
Receive buffer DMA overrun error counter
Repeated command received counter
Frame size error counter
Receiver collision abort error counter
Receiver alignment error counter
Receiver CRC error counter
Bad-packet-length error counter
Bad link address error counter
Transmit buffer DMA underrun error counter
Bad internal packet length error counter
Bad mac function code error counter
Communication retry counter
Communication failed error counter
Good receive packet success counter
No response received error counter
Exception response received error counter
Unexpected path error counter
Unexpected response error counter
Forgotten transaction error counter
212
TLX DS COM PL7 xxE
Modbus Plus programming
Global data exchange service
Introduction The global data exchange service is a simple exchange mechanism which is used to send broadcast messages between stations connected on the same Modbus Plus network.
During an exchange, a station which has the token can broadcast words destined for other stations connected on the network. A receiving station takes the content of words transmitted by the sending station, stores them in its PCMCIA card and sends them back to the network. The same applies to each station when the token is passed.
Precautions for use
For TSX Premium and Micro PLCs, this service is provided by particular communication functions ( WRITE_GDATA and READ_GDATA ) periodically taken on by the application. It is not integrated in the Peer Cop transactions.
A TSX Premium or TSX Micro PLC can broadcast a maximum of 32 words.
Writing global data
Note: Data transfer from one station to another is automatic.
To read the global data which is sent, the application of the receiving station must read its PCMCIA card.
This type of exchange is accessible via the function WRITE_GDATA .
The addressing from a TSX Premium station will be for example:
WRITE_GDATA (ADR#0.1.SYS, %MW100:x, %MW200:4)
The following table describes the different parameters of the function:
Parameters
ADR#0.1.SYS
%MW100:x
%MW200:4
Description
Broadcast address: l l l processor slot: 0 or 1
PCMCIA channel: 1 system channel: transmission for all the stations on the network
Content of the global data to be transmitted (x = 1 to 32 words)
Activity bit, exchange report, length
TLX DS COM PL7 xxE
213
Modbus Plus programming
Reading global data
This type of exchange is accessible via the function READ_GDATA .
The addressing from a TSX Premium station will be for example:
READ_GDATA (ADR#0.1.10, %MW30:32, %MW300:4)
The following table describes the different parameters of the function:
Parameters
ADR#0.1.10
%MW30:32
%MW300:4
Description
Address of device sending the message: l l l processor slot: 0 or 1
PCMCIA channel: 1 number of station sending data: 10
Content of global data
Activity bit, exchange report, length
Note: The length of the global data actually read is contained in the activity report length word (e.g.: %MW304). One length = 0 means that there is no new global data available in the station specified in the request.
214
TLX DS COM PL7 xxE
Debugging Modbus Plus communication
16
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter describes the Debugging process during set-up of Modbus Plus communication.
This Chapter contains the following Maps:
Topic
Modbus Plus debugging screen
Modbus Plus debugging screen
Page
TLX DS COM PL7 xxE
215
Modbus Plus debugging
Modbus Plus debugging screen
Introduction
Illustration
This screen, split into two zones, is used to declare the communication channel and to access the debugging parameters for a Modbus Plus link.
The screen dedicated to Modbus Plus communication looks like this:
TSX 57302 [RACK 0 POSITION 0]
Debugging
Designation: PROCESSOR TSX P 57302 Version: 3.0
1
DIAG...
CHANNEL 1
CHANNEL 1
MODBUS*
TSX MBP 100 PCMCIA CARD MODBUS*
MAST DIAG...
2
Station number:
RAZ counters
1
4
5
6
7
1
2
3
8
9
10
Debug values
Counter labels
Retransmit deferral error
Receive buffer DMA overrun error
Repeated command received
Frame size error
Receiver collision abort error
Receiver alignment error
Receiver CRC error
Bad-packet-length error
Bad link address error
Transmit buffer DMA underrun error
0
0
0
0
0
0
Value
0
0
0
0
Elements and functions
This table describes the different zones that make up the configuration screen:
Address Zone
1 common
2 specific
Function
(See : PL7 Micro/Junior/Pro ; Communication applications ;
Volume 1) is used to access the debugging parameters of a Modbus Plus link.
216
TLX DS COM PL7 xxE
Modbus Plus debugging
Modbus Plus debugging screen
Introduction The specific part is split into two windows: l l the Station numbering window, the Debugging value window.
Station numbering l l
The window, identical to that in configuration, is used to select: either the local station, or the remote station.
Debugging value The window looks like this:
4
5
6
7
1
2
3
8
9
10
Debug values
Counter labels
Retransmit deferral error
Receive buffer DMA overrun error
Repeated command received
Frame size error
Receiver collision abort error
Receiver alignment error
Receiver CRC error
Bad-packet-length error
Bad link address error
Transmit buffer DMA underrun error
0
0
0
0
0
0
0
0
Value
0
0
This window displays the different fault counters of a station connected to the
Modbus Plus network.
By default, the screen proposes the default counters of the local station. It is possible to view the fault counters of a local station or of a remote station.
Note: To access the fault counters of a remote station, you must first select the number of the remote station.
the Reset Counters button resets the counters.
TLX DS COM PL7 xxE
217
Modbus Plus debugging
218
TLX DS COM PL7 xxE
Language objects associated with
Modbus Plus communication
17
Introduction
Aim of this section
What's in this
Chapter?
This Chapter introduces the language objects associated with Modbus Plus communication.
This Chapter contains the following Maps:
Topic
Implicit Exchange Language Object
Explicit exchange language object
Explicit exchange management and report
Language objects associated with configuration
Page
TLX DS COM PL7 xxE
219
Modbus Plus language objects
Implicit Exchange Language Object
At a Glance
Bit Objects
This page describes all implicit exchange language objects for Modbus Plus communication, which can be displayed or modified by the application program (PL7
Micro/Junior/Pro ; Communication applications ; Volume 1).
The table below shows the different implicit exchange bit objects.
Object (1) Function
%Ixy.MOD.ERR
Error bit module
%Ixy.i.ERR
Error bit path
Meaning
When this bit is at 1, it indicates a module fault (at least one of the paths is faulty, etc.)
When this bit is at 1, it indicates a line fault.
Key
(1) xy.i address l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the path number
Word Objects The table below shows the different implicit exchange word objects.
Object (1)
%IWxy.i.0
Function
Requests
%IWxy.i.1
reserved
%IWxy.i.2 to
%IWxy.i.5
Stations present
Meaning
Status of communication paths
Byte 0: number of communication functions processed simultaneously in client mode l l l l x0 = 1: communication function 1 x0 = 1: communication function 2 x2 = 1: communication function 3 x3 = 1: communication function 4
Byte 1: number of communication functions processed simultaneously in server mode l l l l x8 = 1: communication function 1 x9 = 1: communication function 2 x10 = 1: communication function 3 x11 = 1: communication function 4
-
A bit at 1 indicates the presence of a station (01 to
64).
220
TLX DS COM PL7 xxE
TLX DS COM PL7 xxE
Modbus Plus language objects
Object (1)
%IWxy.i.6
%IWxy.i.7 to
%IWxy.i.9
%IWxy.i.11 à
%IWxy.i.13
%IWxy.i.15
Function
Status bit availability
Status of the specific inputs
Status of the specific inputs
%IWxy.i.10
Status of the specific inputs
New presence of specific inputs
New presence of specific inputs
%IWxy.i.14
New presence of specific inputs
Status bit availability
Status of the specific outputs
%IWxy.i.16 à
%IWxy.i.18
Status of the specific inputs
%IWxy.i.19
Status of the specific inputs
Meaning
Byte 0: the specific inputs of all remote stations are available l l l x0 = 0: the specific inputs are not available x0 = 1: the specific inputs are available x1 to x7: reserved
Byte 1: a bit at 1 indicates the presence of a station that is transmitting specific inputs. Stations 1 to 8.
A bit at 1 indicates the presence of a station that is transmitting specific inputs. Stations 9 to 56.
Byte 0: a bit at 1 indicates the presence of a station that is transmitting specific inputs. Stations 57 to 64.
Byte 1: a bit at 1 indicates the presence of new specific inputs. Stations 1 to 8.
A bit at 1 indicates the presence of new specific inputs. Stations 9 to 56.
Byte 0: a bit at 1 indicates the presence of new specific inputs. Stations 57 to 64.
Byte 1: not used
Byte 0: the specific outputs are available for all remote stations l l l x0 = 0: the specific outputs are not available x0 = 1: the specific outputs are available x1 to x7: reserved
Byte 1: a bit at 1 indicates the presence of a station that is receiving specific outputs. Stations 1 to 8.
A bit at 1 indicates the presence of a station that is receiving specific outputs. Stations 9 to 56.
Byte 0: a bit at 1 indicates the presence of a station that is receiving specific outputs. Stations 57 to 64.
Byte 1: not used
Key
(1) xy.i address l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the path number
221
Modbus Plus language objects
Explicit exchange language object
Introduction
Word objects
222
This page describes all the language objects for explicit exchange in Modbus Plus communication that can be displayed or modified by the application program (PL7
Micro/Junior/Pro ; Communication applications ; Volume 1).
The table below shows the different word objects for explicit exchange.
Object (1) Function
%MWxy.MOD.2
Module status
%MWxy.i.2
%MWxy.i.3
%MWxy.i.4
Standard channel status
Specific channel status
Status of link layer
Specific channel status
Peer Cop l l l l l l l l l l l l l l
Meaning l l x0 = 1: defective module x1 = 1: functional error (error between the processor and the module, adjustment or configuration error, …) x2 = 1: terminal block fault (not connected) x3 = 1: self-tests running x4 = 1: reserved x5 = 1: error in hardware or software configuration (the module present is not the one declared in the configuration, the submodules are not compatible) x6 = 1: module missing x7 = 1: error in one of the sub-modules x0 = 1: only station on the network x1 = 1: not used x2 = 1: transmission line error x3 = 1: not used x4 = 1: internal software fault x5 = 1: hardware or software error or no configuration x6 = 1: processor communication error x7 = 1: application fault (double station address)
Byte 0 l l l
= 0: initialization phase
= 3: awaiting token phase
= 4..10: normal status
Byte 0 l l l l l
= 0: station being tested
= 32: normal status
= 64: no token
= 96: only station (idem x0 of %MWxy.i.2)
= 128: two stations have the same number
(idem x7 of %MWxy.i.2)
TLX DS COM PL7 xxE
Object (1)
Key
(1)
Function Meaning
Address xy.i
l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the channel number
Modbus Plus language objects
TLX DS COM PL7 xxE
223
Modbus Plus language objects
Explicit exchange management and report
Introduction
Word objects
This page describes all the language objects that manage explicit exchanges (See
: PL7 Micro/Junior/Pro ; Communication applications ; Volume 1).
The table below shows the different word objects for the management of explicit exchanges.
Object (1) Function
%MWxy.MOD.0 Module exchanges in progress
Meaning l l l x0 = 1: reading status in progress x1 = 1: sending of command parameters to the communication module x2 = 1: sending of adjustment parameters to the communication module
%MWxy.MOD.1 Module report
%MWxy.i.0
Channel exchanges in progress l l l l x1 = 0: command parameters received and accepted by the module x2 = 0: adjustment parameters received and accepted by the module l x0 = 1: reading status in progress x1 = 1: sending of command parameters to the communication channel x2 = 1: sending of adjustment parameters to the communication channel
%MWxy.i.1
Channel report l l x1 = 0: command parameters received and accepted by the communication channel x2 = 0: adjustment parameters received and accepted by the communication channel
Key
(1) Address xy.i
l l l x: corresponds to the rack number y: corresponds to the module number i: corresponds to the channel number
224
TLX DS COM PL7 xxE
Modbus Plus language objects
Language objects associated with configuration
Introduction
Internal constants
TLX DS COM PL7 xxE
This page describes all the configuration language objects in Modbus Plus communication that can be displayed by the application program.
The following table describes the internal constants:
Object
%KWxy.i.0
%KWxy.i.1
%KWxy.i.2
Function
Type
Station Address
Peer Cop
Meaning
Byte 0 = 14 for Modbus PLUS communication
Byte 0: station address
Byte 0 = 1: no Peer Cop service
Byte 0 = 2: Peer Cop service
%KWxy.i.4
Timeout behavior
Source address of specific outputs
%KWxy.i.5
Size of specific outputs for nodes 1 and 2
Byte 1 = 1: cleared inputs
Byte 1 = 2: inputs maintained at the last value
%KWxy.i.3
Destination address for specific inputs
Address of first internal word %MW used for receiving specific inputs
Address of first internal word %MW used for sending specific outputs
%KWxy.i.6
Size of specific outputs for nodes 3 and 4
Number of specific output words to be sent to connection point 1 and 2 l l byte 0: connection point 1 byte 1: connection point 2
Number of specific output words to be sent to connection points 3 and 4 l l byte 0: connection point 3 byte 1: connection point 4
...
...
%KWxy.i.3
6
...
Size of specific outputs for nodes 63 and 64
%KWxy.i.3
7
%KWxy.i.3
8
...
Size of specific inputs for nodes 1 and 2
Size of specific inputs for nodes 3 and 4
...
Number of specific output words to be sent to connection points 63 and 64 l l byte 0: connection point 63 byte 1: connection point 64
Number of specific input words to be received by connection points 1 and 2 l l byte 0: connection point 1 byte 1: connection point 2
Number of specific input words to be received by connection points 3 and 4 l l byte 0: connection point 3 byte 1: connection point 4
...
225
Modbus Plus language objects
Object
%KWxy.i.6
8
Function
Size of specific inputs for nodes 63 and 64
%KWxy.i.6
9
Timeout of Peer Cop service
Meaning
Number of specific input words to be received by connection points 63 and 64 l l byte 0: connection point 63 byte 1: connection point 64
Time interval of Timeout l byte 0 = 1 to 100: from 20 ms to 2 s
226
TLX DS COM PL7 xxE
Communication via FIPIO bus
IV
Introduction
Aim of this part
What's in this part?
This part introduces the principles of configuring and using FIPIO bus communication via PL7 software.
This Part contains the following Chapters:
Chapter
18
19
20
21
22
23
24
25
Chaptername
Communication via FIPIO bus
Configuring FIPIO communication
Programming FIPIO communication
Debugging a FIPIO communication
FIPIO communication diagnostics
Language objects associated with FIPIO communication
FIPIO communication standard profiles
FIPIO Agent
Page
TLX DS COM PL7 xxE
227
Communication via FIPIO
228
TLX DS COM PL7 xxE
Communication via FIPIO bus
18
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter introduces communication via the FIPIO bus and its services.
This Chapter contains the following Sections:
Section
18.1
18.2
Topic
Introduction to FIPIO communication
Characteristics
Page
TLX DS COM PL7 xxE
229
General
18.1
Introduction to FIPIO communication
Introduction
Aim of this
Section
What's in this
Section?
This Section provides a summary description of the FIPIO bus and its associated services.
This Section contains the following Maps:
Topic
Introduction
Addressing of language objects for modules remoted on the FIPIO bus
Page
230
TLX DS COM PL7 xxE
General
Introduction
Introduction
Associated manuals
Communication via FIPIO is part of Schneider Automation’s global WORLDFIP package.
FIPIO is a field bus used to delocalize the inputs/outputs of a PLC station and its industrial periphery to be as close as possible to the working part.
The FIPIO protocol uses producer/consumer exchanges (e.g.: common words) and the bus is managed via a bus arbiter.
If you require further information you should consult the following manuals:
Title
FIPIO bus - Reference manual
TSX Micro PLCs - Installation manual
Premium TSX PLCs - Installation manual
Description
Detailed description of the FIPWAY bus and hardware installation
Hardware installation
Hardware installation
Note: Refer to the separate documentation pertaining to each device connected to the FIPIO bus for details on their installation.
TLX DS COM PL7 xxE
231
General
Addressing of language objects for modules remoted on the FIPIO bus
Presentation
Illustration
Addressing for the main bit and word objects for modules remoted on the FIPIO bus l l l is geographical. This means that it depends on: the connection point, the module type (base or extension), the channel number.
Addressing is defined as follows:
% I, Q, M, K X, W, D, F
Symbol Object type Format
\ p.2.c
\
Module/channel address and connection point m
Module number i
Channel number r
Rank
Syntax The table below shows the different elements which constitute addressing.
Family
Symbol
Object type
Format (size)
Module/channel address and connection point p
2 c
Module position m
Channel no.
i
W
D
F
Element Values Meaning
% -
I
Q
M
-
-
-
Image of the module's physical input,
Image of the module's physical output,
This information is exchanged automatically on each cycle of the task to which it is connected.
Internal variable
This read or write information is exchanged at the request of the application.
K
X
-
-
Internal constant
This configuration information is only accessible in read-only.
Boolean
For boolean-type objects, the X may be omitted.
16 bits
32 bits
32 bits
Single length.
Double length
Floating. The floating format used is that of IEEE standard 754-1985
(equivalent IEC 559).
0 or 1
-
Number of the processor's position in the rack.
Channel number of the processor's built-in FIPIO link.
1 to 127 Number of the connection point.
0 or 1 0 : base module, 1: extension module.
0 to 127 or MOD
MOD: channel reserved for management of the module and the parameters shared by all channels.
232
TLX DS COM PL7 xxE
Family
Position
Examples
General
Element Values Meaning r 0 to 255 or ERR
ERR: indicates a module or channel fault.
The table below gives some examples of object addressing.
Object
%MW\0.2.1\0.5.2
%I\0.2.1\0.7
Meaning
Position 2 status word for the image bit of input 5 of the remote input base module located at connection point 1 of the FIPIO bus.
image bit of input 7 of the remote input base module located at connection point 1 of the FIPIO bus.
%Q\0.2.1\1.2
%I\0.2.2\0.MOD.ERR Fault information for the Momentum module located at connection point 2 of the FIPIO bus.
%Q\1.2.3\0.0.ERR
Fault information for channel 0 of module CCX17 located at connection point 3 of the FIPIO bus.
image bit of output 2 of the remote output extension module located at connection point 1 of the FIPIO bus.
0 FIPIO manager TSX 57253
1 TBX LEP 030 0 TBX DES 1622 1 TBX DSS 1622
2 170 FNT 110 01 0 170 AAI 030 00
3 TSX FPP 010 0 T CCX 17 20 F
TLX DS COM PL7 xxE
233
General
18.2
Characteristics
Introduction
Aim of this
Section
What's in this
Section?
This Section introduces the characteristics and constraints of using FIPIO communication.
This Section contains the following Maps:
Topic
Hardware compatibility relating to the bus manager
Software compatibility relating to the bus manager
Software compatibility: Network transparency
Software compatibility: communication with the exterior
Compatibility information relating to TBX devices
Compatibility information relating to Momentum devices
Compatibility information relating to the programming terminal
Compatibility information relating to other devices
FIPIO bus operating mode
Network cycle time: mono task application
Network cycle time: multitasking application
Example of calculating the network cycle times of a multitasking application
Page
234
TLX DS COM PL7 xxE
General
Hardware compatibility relating to the bus manager
General
Availability
Capacity
The binary flow of the bus is 1 Mbits/s and it can extend to a length of up to 15 Km, with four optical or electric repeaters (TSX FP ACC 6).
The FIPIO bus links up to Hirshmann optical transmitters, which allows medium redundancy architectures to be created.
This type of communication is available via built-in links on TSX Premium PLCs from version V3.0 onwards.
The PLCs with built-in FIPIO links are the following: l TSX type processors: l TSX P57 153, l l TSX P57 253, TSX P57 2823, l TSX P57 353, l TSX P57 453, TSX P57 4823.
PCX type processors: l PCX57353.
l l
The bus manager can also be a PLC of the following type:
TSX 47-107 version 5.3 minimum,
S1000.
Processors with built-in FIPIO links are used to manage 128 connection points (TSX
P57 153 = 64) on the bus (addresses 0 to 127).
The bus manager is connected to address 0, and address 63 is reserved for the programming and diagnostics terminal.
These processors have a RAM memory for saving the configurations of devices connected to the bus. This memory has a maximum capacity of 93,320 bytes.
TLX DS COM PL7 xxE
235
General
Software compatibility relating to the bus manager
Explicit exchange limits
Reminders
X-TEL software
Processors with a built-in FIPIO link can simultaneously activate 24 explicit exchange functions.
An exchange request addressed to a FIPIO device can take several MAST task cycles. Thus, it is absolutely necessary to manage the exchange management parameter words for all exchanges of explicit variables including READ_STS
%CH@channel and READ_STS %CH@MOD .
For example, if 24 functions are being processed simultaneously or if 25 functions are triggered in the same task cycle, the 25th, or any new function, will not be served and will terminate in error.
For a READ_STS exchange, if the twenty-fifth exchange is impossible, the report signals a communication fault in the word: %MW\p.2.c\m.v.2.
For WRITE_CMD , READ_PARAM , WRITE_PARAM , RESTORE_PARAM exchanges, the report signals a communication fault in the word %MW\p.2.c\m.v.1. A likely cause is a lack of system resources to provide the service.
The system word %SW155 contains the number of explicit exchanges in progress.
Bit %SW116: x2 switches to 1 if the maximum number of simultaneous explicit exchanges is reached or exceeded.
When the bus manager is a series 7 PLC (TSX 47-107), the configuration of the bus and the manager is performed by the X-TEL software workbench, of version 6.0 or later.
236
TLX DS COM PL7 xxE
General
Software compatibility: Network transparency
Introduction
Transparency restrictions
Exchanges from a remote station to the FIPIO bus or vice versa are possible under certain conditions.
Inter-station communication with FIPIO is only available if the bus arbiter is a TSX
Premium PLC, of at least version V3.3.
Exchanges from a third-party device to a PLC connected as a FIPIO slave are only possible if the PLC is a TSX Premium of V3.3 at least. Communication with a TSX
Micro PLC is not possible.
A FIPIO agent does not communicate with the exterior.
Only one programming terminal can be connected to the FIPIO bus. If it is present in the configuration, it must be connected to the default connection port (63).
This programming terminal cannot be used to load the application onto the FIPIO bus arbiter.
TLX DS COM PL7 xxE
237
General
Illustration The following illustration shows the different exchanges possible between a FIPIO bus and a network or another bus.
FIPAWAY, ETHERNET, Uni-telway, ...
TSX Premium V3.3
Third party device
0
TSX Micro
TSX Premium V3.3
Magelis
63
Programming terminal
238
TLX DS COM PL7 xxE
General
Software compatibility: communication with the exterior
Introduction To communicate from a station connected to the FIPIO bus to an outside device, the transmitter station must address the master PLC and not the destination device
(requests are not routed directly).
Example
Note: The master PLC application transfers these requests to the destination device.
In the following example, an exchange from the FIPIO bus to the Uni-telway bus has to be performed. For a transfer in the opposite direction, the procedure is identical.
TSX Premium master, Serie 7
Step 2
0
Uni-telway
Step 1
6
Ad0 = 1
Ad1 = 2
Ad2 = 3
63
Step 1
Step 2
The transmitter station, connected to connection port 6 on FIPIO, sends the request to the master PLC. The destination address is the master PLC address.
WRITE_VAR (ADR#\6.1.0\SYS, %MW,0,10, %MW:10, %MW100:4)
The master PLC generates the report.
When the master PLC application receives the request from the transmitter station, it directs it to the destination device in accordance with the Uni-telway protocol.
WRITE_VAR (ADR#0.0.1, '%MW', 100, 10, %MW10:10, %MW40:4)
The report is sent to the master PLC.
TLX DS COM PL7 xxE
239
General
Compatibility information relating to TBX devices
Introduction
Rules of use
Addressing
The following compatibility information relates to: l l the addressing supported by the different connectable devices, the memory space that the devices take up in the configuration RAM.
If a device linked to a connection port is modular, it must be homogeneous at an application-specific level. Discrete base and extension or analog base and extension (not a mixture of discrete and analog).
The device is only controlled by one PL7 task (FAST or MAST) (no assigning of channel groups of the same TBX to different tasks).
The FIPIO addressing depends on the type of device:
Types of device
Compact TBXs
Sealed TBXs
Modular TBXs
TBX SAP 10
FIPIO addresses
1...31
1...62, 64...127
1...62, 64...127
1...62, 64...127
Comments
TBX C•
TBX E•
TBX LEP 020, TBX LEP 030
AS-i gateway
Maximum configuration
The number of modules of the same reference connected to the FIPIO bus in a configuration is limited. The values in the table below are expressed in bytes.
Module Base
AES 200, ASS 400
AMS 620
1332
1332
1152
Extension Maximum number of connection points
TSX P57
153
TSX P57
253/2823/
353
TSX P57
453/4823
272
528
For 2 or 4 channels
62 70
For 8 channels
59 59
125
126
-
For 10 or 12 channels
50 50
31 31
114
31 CEP 1622, CSP 1622,
CSP 1625
DES •••, DMS •••, DSS •••
SAP 10
1152
1088
144
-
62
52
81
52
126
117
240
TLX DS COM PL7 xxE
General
Compatibility information relating to Momentum devices
Introduction
Rules of use
Addressing
Maximum configuration
The following compatibility information relates to: l l the addressing supported by the different connectable devices, the memory space that the devices take up in the configuration RAM. installing Momentum devices on FIPIO is only possible with the communication module: 170 FNT 110 01.
A Momentum device can have addresses from 1 to 62 or 64 to 127.
The number of modules of the same reference connected to the FIPIO bus in a configuration is limited. The values in the table below are expressed in bytes.
Module Base
ADI, ADM, ADO
ARM 370 30
ANR 120 90
AAI 520 40 00
AMM 090 00, AAI 030 00,
AAO 120 00, AAO 921 00
AAI 140 00
FED C32
FED C32P
FED M32
FED M32P
FRD C2
FSD C8
FSD C8P
FSD M8
FSD M8P
2304
1280
2304
1424
2448
832
896
1808
1040
1952
832
832
832
1808
1808
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Extension Maximum number of connection points
TSX P57
153
TSX P57
253/2823/
353
TSX P57
453/4823
62
62
62
52
52
98
98
98
52
52
98
98
98
98
98
38
62
62
52
40
62
40
62
62
48
38
113
105
52
40
73
40
66
90
48
87
126
126
117
92
126
92
126
126
109
TLX DS COM PL7 xxE
241
General
Compatibility information relating to the programming terminal
Introduction
Rules of use l l
The following compatibility information relates to: the addressing supported by the different connectable devices, the memory space that the devices take up in the configuration RAM.
A programming terminal fitted with the TSX FPC 10 card or the PCMCIA card TSX
FPP 20 must be connected to the FIPIO address 63.
PL7 operates in connected mode with the FIPIO manager PLC.
If the manager PLC has an application in which one or several agent devices are l l configured:
PL7 communicates with the TSX Micro/Premium FIPIO agent PLCs.
MMI 17 communicates with the CCX-17.
It is not possible to download a PL7 application to the manager from a programming terminal. However, it is possible to download a PL7 application to a FIPIO agent
PLC.
242
TLX DS COM PL7 xxE
General
Compatibility information relating to other devices
Introduction
Addressing
The following compatibility information relates to: l l the addressing supported by the different connectable devices, the memory space that the devices take up in the configuration RAM.
The FIPIO addressing depends on the type of device:
Types of device
ATV-16/58/66
CCX 17
Magelis
FipConnect products
FIPIO addresses Comments
1...62
The speed controllers are fitted with a TSX
FPP 10 card, of version V1.8 or later.
1...62
The consoles have to be of version V2.4 or later and are fitted with the TSX FPP 10 card of version V1.8 or later.
1...62
1...62, 64...127
The consoles are fitted with a TSX FPP 10 card of version V1.8 or later.
apart from limitations specific to the product used
Maximum configuration
The number of modules of the same reference connected to the FIPIO bus in a configuration is limited. The values in the table below are expressed in bytes.
Module Base
ATV 16, ATV 58, ATV 66
CCX 17
EEF 08D2, EEF 16D2
ESF 08T22 EMF 16DT2
FED C32
FED C32P
FED M32
FED M32P
FRD C2
FSD C8
FSD C8P
1952
1952
832
1808
1280
2304
1424
2448
832
896
1808
-
-
-
-
-
-
-
-
-
-
-
Extension aximum number of connection points
TSX P57
153
TSX P57
253/2823/
353
TSX P57
453/4823
48
4
62
52
48
4
98
52
62
4
98
98
62
40
62
38
62
62
52
73
40
66
38
113
105
52
126
92
126
87
126
126
117
TLX DS COM PL7 xxE
243
General
Module
FSD M8
FSD M8P
Micro Premium
Base
1040
1952
1424
-
-
Extension aximum number of connection points
-
62
48
62
90
48
62
126
109
62
244
TLX DS COM PL7 xxE
General
FIPIO bus operating mode
Introduction The FIPIO bus operating mode is linked to the processor operating mode and to the physical state of the bus.
If the number of physical errors detected by the processor is endangering the nominal operation of the devices connected to the bus, the processor stops all bus activity. In this case, the devices connected apply the fallback values to the inputs/ outputs.
Operating mode The operating mode is as follows:
Phase
1
2
3
4
5
6
Description
Cold restart of the processor with a FIPIO application: the bus is started automatically; the I/Os are monitored and commanded.
Downloading an FIPIO application: the bus is started automatically; the inputs/ outputs are monitored and commanded.
If the processor detects serious physical errors, the FIPIO bus is stopped automatically. The connected devices apply the fallback values; the processor no longer monitors the inputs/outputs. A serious physical error is for example the disconnection of the line plug, the disconnection of the FIPIO terminal block on the processor, etc…
Following an automatic stop (serious errors detected by the processor): l the bit %SW144:x2 is set; the processor periodically carries out a restart attempt, trying to monitor and command the inputs/outputs of the connected devices. This is automatic mode.
l the bit %SW144:x2 is cleared; to restart the bus, there a user action must be performed via the program or via the programming terminal. Set bits
%SW144:x0 and %SW144:x1 to 1. This is manual mode.
Warm restart: the bus is restarted automatically if it has not been stopped voluntarily by an action on the system word %SW144 bits 0 and 1. The bus is returned to the state it was in before the power outage.
If %S0 = 1 the system words are initialized, and if the bus had been stopped, it is restarted.
TLX DS COM PL7 xxE
245
General
Information on manual mode
If %SW144:x0 is set to 0 (via the programming terminal or via the program) the production/consumer function (PC) stops. No more variables or messages are exchanged on the bus.
If %SW144:x1 is set to 0 (via the programming terminal or via the program) the bus arbiter function (BA) stops. There is no more scanning of variables or messages on the bus.
To completely and voluntarily stop the activity on the FIPIO bus, it is necessary to simultaneously set bits 0 and 1 of the system word %SW144 to 0 via the programming terminal or via the program.
Information on automatic mode
If the FIPIO bus is stopped without a voluntary action on the system word %SW144, this means that the processor has detected physical errors which prevent the nominal operation of the bus and the connected devices.
In this case, and only in this case, , if bit %SW144:x2 is set to 1 (automatic start), the processor will make periodic and automatic attempts to restart the exchanges on the bus.
If bit %SW144:x2 is at 0 following the stopping of the bus owing to physical errors, it is necessary to reset bits %SW144 x:0 and %SW144 x:1 via the program or via the programming terminal in order to restart the FIPIO bus. In this case, the bus will restart if, and only if, the physical error which caused the stop has
disappeared.
Example if bit %SW144 x:2 = 1 on disconnection/reconnection of the processor FIPIO terminal block, the bus will be restarted automatically.
The devices will be monitored once again and will be able to apply the program values.
if bit %SW144 x:2 = 1 on disconnection/reconnection of the processor FIPIO bus, the connected devices on the bus will be neither monitored, nor will they be able to apply the program values.
The devices will be monitored once again if the user sets bits %SW144:x0 and
%SW144:x1 = 1.
246
TLX DS COM PL7 xxE
General
Network cycle time: mono task application
Introduction
Calculation of the network cycle time
The network cycle time for a mono task application is calculated for the following l l configuration: the length of the bus is 1 Km, the values corresponding to the reversal and silence times and the bandwidths are default values (automatic mode).
For an application which has all the devices configured in the same task, the value of the network cycle time of the task, in milliseconds, is obtained, for information purposes only, by the following formula:
TCR_TASK= 1,45 +
Σ(
K x number of equipments of the same family)
Value of coefficient K
Coefficient K will be defined as follows:
1,5
1,5
0,6
1,5
0,4
0,6
1,5
0,6
0,6
0,6
0,6
Coefficient K
0,5
0,9
0,4
Family
TBX
TBX
Momentum
Momentum
ATV-16
ATV-58
CCX 17
CCX 17-32
TSX 37/57
AS-i gateway
Magelis
STD_P
STD_P
STD_P
Device
Discrete
Analog
Discrete
Analog
All
All
All
All
All
TSX SAP 10
All
FRD
FSP
FED
TLX DS COM PL7 xxE
247
General
Example l l
The configuration of the example is as follows:
All the elements are configured in the MAST task in the application.
l l
The configuration comprises: l 10 discrete TBXs,
11 analog TBXs,
12 discrete Momentums.
The calculation of the cycle time for the Mast task is as follows:
TCR_MAST = 1.45 + ((0.5 x 10) + (0.9 x 11) + (0.4 x 12)) = 21.15 ms
The network cycle time is about 21 ms.
248
TLX DS COM PL7 xxE
General
Network cycle time: multitasking application
Introduction
Convention
For a multitasking application with two periodic tasks, and if the devices are configured in each of the tasks, the value of the network cycle times depends on the configuration of the different tasks.
The cycle time values calculated with the following algorithm are the maximum values. The actual values are less than or equal to these values.
The following table shows all the parameters involved in the calculation of the network cycle time.
Parameter
P max
P min
T max
T min
R
NE max
NE min
NE_Equip
TCR_T max
TCR_T min
Definition
Value of the largest task period (MAST or FAST)
Value of the smallest task period (MAST or FAST)
Task with period P max
Task with period P min
Ratio between the periods (This ratio must be a whole number; it will be rounded off to the nearest whole number if necessary).
Number of devices from the same family configured in T max
Number of devices from the same family configured in T min
Equivalent number of devices from the same family
Network cycle time for the task T max
Network cycle time for the task T min
TLX DS COM PL7 xxE
249
General
Calculation algorithm
Value of coefficient K
To calculate the network cycle time, the algorithm is as follows:
Stage
1
Description
Calculation of
2
3
4
R
R =
Pmin
Calculation of NE_Equip (for each device family)
NE_Equip =
( (
R
×
NEmin
)
+ NEmax
)
Calculation of
TCR_T max
TCR_Tmax = 1,45 +
å
(
K
×
NE_Equip
)
Calculation of
TCR_T min
TCR_Tmin =
R
Coefficient K will be defined as follows:
1,5
1,5
0,6
1,5
0,4
0,6
1,5
0,6
0,6
0,6
0,6
Coefficient K
0,5
0,9
0,4
Family
TBX
TBX
Momentum
Momentum
ATV-16
ATV-58
CCX 17
CCX 17-32
TSX 37/57
AS-i gateway
Magelis
STD_P
STD_P
STD_P
Device
Discrete
Analog
Discrete
Analog
All
All
All
All
All
TSX SAP 10
All
FRD
FSP
FED
250
TLX DS COM PL7 xxE
General
Interpretation of the results
To refresh the inputs/outputs on the bus, the following constraints are imposed: l For the periodic tasks in controlled mode, the network cycle time of the task must be less than the task period.
l For the periodic tasks in free mode, the network cycle time of the task must be less than the task watchdog.
TLX DS COM PL7 xxE
251
General
Example of calculating the network cycle times of a multitasking application
Introduction
Convention
Algorithm
The configuration of the example is as follows: l l
Task periods: l l
MAST: 60 ms
FAST: 15 ms
The configuration comprises: l 6 discrete TBXs configured in the MAST task and 4 discrete TBXs configured in the FAST task, l l l
6 analog TBXs configured in the MAST task and 4 analog TBXs configured in the FAST task,
6 discrete Momentums configured in the MAST task and 4 discrete
Momentums configured in the FAST task,
6 analog Momentums configured in the MAST task and 4 analog Momentums configured in the FAST task, l l l
Depending on the configuration, the application of conventions involves:
P max
= 60 and P min
= 15
T max
= T
MAST
and T min
= T
FAST
TCR_T max
= TCR_T
MAST
and TCR_T min
= TCR_T
FAST
The following table shows the algorithm:
Stage
1
2
3
4
Description
Calculation of R
R = 60 / 15 = 4
Calculation of the equivalent number of devices
NE_TBX_TOR = (R * 4 + 6) = 22
NE_TBX_ANA = (R * 4 + 6) = 22
NE_MOMENTUM_TOR = (R * 4 + 6) = 22
NE_MOMENTUM_ANA = (R * 4 + 6) = 22
Calculation of the network cycle times TCR_T
MAST
TCR_T
MAST
= 1.45 + ((0.5 * 22) + (0.9 * 22) + (0.4 * 22) + (0.6 * 22))
TCR_T
MAST
= 54.25 ms
Calculation of the network cycle times TCR_T
FAST
TCR_T
FAST
= 54.25 / 4
TCR_T
FAST
= 13.56 ms
252
TLX DS COM PL7 xxE
Conclusions
General
The network cycle times of each equal: l l
TCR_T
MAST
= 55 ms,
TCR_T
FAST
= 14 ms.
The time period for MAST and FAST tasks are sufficient to refresh the inputs/ outputs.
TLX DS COM PL7 xxE
253
General
254
TLX DS COM PL7 xxE
Configuring FIPIO communication
19
Introduction
Aim of this
Chapter
What's in this
Chapter?
This chapter describes the Configuration process during set-up of FIPIO communication.
This Chapter contains the following Sections:
Section
19.1
19.2
19.3
19.4
19.5
Topic
General information on configuration
FIPIO bus configuration
Configuration of devices on the FIPIO bus
Input/output management by the PL7 tasks
Confirmation of the FIPIO bus configuration
Page
TLX DS COM PL7 xxE
255
FIPIO Configuration
19.1
General information on configuration
Configuration mode
Introduction
Methodology
The creation of an application to implement a FIPIO bus requires the configuration of several elements via the PL7 software.
The following methodology reviews the different phases involved in configuring the
FIPIO bus:
Configuring points of connection and bus properties
This phase is used to define the type of device connected to the bus, bus management (e.g.: length, bandwidth, etc.
Configuring each device connected to the bus.
This phase is used to configure each device (e.g.: PLC task managing devices, inputs, outputs, etc.).
Adapting PL7 tasks according to the bus topology.
This phase is used to define the management of input/outputs on the bus by PL7 tasks (e.g.: cyclic or periodic task, controlled or free mode, etc.
256
TLX DS COM PL7 xxE
19.2
FIPIO bus configuration
Introduction
Aim of this
Section
What's in this
Section?
This section introduces the FIPIO bus configuration principles.
This Section contains the following Maps:
Topic
How to access the FIPIO configuration screen
FIPIO bus configuration screen
How to add a device on to the bus
How to modify/delete/move/duplicate a bus device
How to access the FIPIO bus properties screen
FIPIO bus properties configuration screen
Properties of the FIPIO bus: General tab
Properties of the FIPIO bus: Expert tab
Expert tab: manual mode
FIPIO Configuration
Page
TLX DS COM PL7 xxE
257
FIPIO Configuration
How to access the FIPIO configuration screen
Introduction
How to access the link
This operation describes how to access the configuration via the the TSX Premium
PLCs provided with a built-in link.
The following table shows the procedure for accessing the FIPIO link:
Step
1
2
Action
Access the hardware configuration screen
Double click on the FIPIO connector.
258
TLX DS COM PL7 xxE
FIPIO Configuration
FIPIO bus configuration screen
Introduction
Illustration
This screen is used: l l to register devices which are connected to the bus, to parameter the bus properties.
The screen dedicated to FIPIO communication looks like this:
FIPIO Configuration
TSX 57252 V3.0
Bus length: 0 15 km
1
Logical address Communicator Standard module Extension module
0 Fipio manager TSX 57252
63
Privileged terminal
127
Elements and functions
Zone
Bus length
Logical address
Communicator
Standard module
Extension module
This table describes the different areas that make up the configuration screen:
Function
This cursor is used to adjust the bus length. The default value is 1 Km.
This zone defines the address for each device.
This zone specifies the type of device which enables communication between the manager and the standard device.
Where the standard device has no need for a communicator, this zone is empty.
This zone specifies the standard device connected to the bus.
This zone gives information on whether an extension is associated to the standard device.
Grayed out rectangles on the bus indicate the two reserved addresses: l l
0 for the bus manager,
63 for the privileged terminal.
The available connection points are indicated by a small circle and dotted lines.
TLX DS COM PL7 xxE
259
FIPIO Configuration
How to add a device on to the bus
Procedure This operation is used to logically add a device connected to the FIPIO bus.
Step
1
2
Action
Access the FIPIO configuration screen.
Double click on the logic address of the connection point at the place where the module must be connected (available addresses ranging from 1 to 62 and from
64 to 127, addresses 0 and 63 being reserved by the system).
Result: the Add/Modify a device screen appears.
Add/Modify a device
Connection point
Connection point number
Comment
TBX DMS 1625
1 OK
Cancel
Families
ATV-16
ATV-58
CCX-17
CCX17-32
MAGELIS
MOMENTUM 1.0
PASSERELLE 1.0
SIMULATION 1.0
STD_P 1.0
TBX
TSX
1.0
1.0
1.0
1.0
1.0
1.0
1.0
Standard module
TBX DES 1633
TBX DES 16C22
TBX DES 16F22
TBX DES 16S04
TBX DMS 1025
TBX DMS 1625
TBX DMS 16C22
TBX DMS 16C222
TBX DMS 16P22
Extension module
TBX7 EMB. 16E 48VCC
TBX7 EMB. 16E CF 24VCC
TBX7 EMB. 16E RAP 24VCC
TBX7 EMB. 16E 120 VCA
TBX7 EMB. 8E/2SR 24VCC
TBX7 EMB. 8E/8SR 24VCC
TBX7 EMB. 8E+8SS 0,5A CF
TBX7 EMB. 8E+8SS 2A CF
TBX7 EMB. 8E+8E/S 0,5A
Communicator
TBX LEP 020 TBX7 MOD.COM.FIP 24/48V
TBX LEP 030 TBX7 MOD.COM.FIP TOR+ANA
260
3
4
5
6
7
Enter the connection point number which corresponds to the address.
By default, the PL7 software offers the first consecutive address which is free
Add a comment to the device connected to the connection point.
This field has a maximum length of 80 characters and is optional.
In the Family field, select the type of equipment to be connected to the bus.
Select the standard module and/or the extension module.
In the Communicator field, select the type of element enabling communication on the FIPIO bus.
For certain types of device, this window does not appear.
TLX DS COM PL7 xxE
TLX DS COM PL7 xxE
FIPIO Configuration
Step
8
Action
Confirm with Ok.
Result: the module is registered.
FIPIO Configuration
TSX 57252 Bus length: 0
5
Logical address Communicator
15 km
Standard module
0 Fipio managerTSX 57252
Extension module
1 TBX LEP 020 0 TBX DSS 1622 1 TBX DES 1622
2 TBX LEP 030 0 TBX AES 400
261
FIPIO Configuration
How to modify/delete/move/duplicate a bus device
Procedure for modifying a device
This operation is used to logically modify a device connected to the FIPIO bus.
Step
1
2
3
4
Action
Access the FIPIO configuration screen.
Double click on connection point corresponding to the device which is to be modified.
Modify the component parts of the device: l l l l standard module, extension module, the communicator, the comment.
It is not possible to modify the family or the connection point number.
Confirm with Ok.
Procedure for deleting a device
This operation is used to logically delete a device connected to the FIPIO bus.
Step
1
2
3
4
Action
Access the FIPIO configuration screen.
Select the connection point to be deleted.
A dotted line square surrounds the selected connection point.
Select the Edit
→
Delete the device command.
Confirm the deletion with Yes.
262
TLX DS COM PL7 xxE
FIPIO Configuration
Procedure for moving a device
Moving a device is not a physical move on the bus but a logic change of the device address. This involves modifying the address of I/O objects in the program and moving variables associated to these objects. On global confirmation of the configuration, the application program will be modified automatically to match the move.
Step
1
2
3
4
5
Action
Access the FIPIO configuration screen.
Select the connection point to be moved.
A dotted line square surrounds the selected connection point.
Select the Edit
→
Move a device command.
Supply the destination connection point number.
Confirm the move with the Ok button.
Procedure for duplicating a device
This function is similar to the function to move a device.
Step
1
2
3
4
5
Action
Access the FIPIO configuration screen.
Select the connection point to be moved.
A dotted line square surrounds the selected connection point.
Select the Edit
→
Duplicate a device command.
Supply the destination connection point number.
Confirm the move with the Ok button.
TLX DS COM PL7 xxE
263
FIPIO Configuration
How to access the FIPIO bus properties screen
Introduction
How to access the link
This operation describes how to access the bus properties screen via TSX Premium
PLCs with an integral link.
The following table shows the procedure:
Step
1
2
3
Action
Access the FIPIO configuration screen.
Right-click at the bottom of the FIPIO configuration screen.
Select the command FIPIO Bus Properties from the contextual menu.
264
TLX DS COM PL7 xxE
FIPIO Configuration
FIPIO bus properties configuration screen
Introduction
Illustration
On a FIPIO bus, a single PLC allows the exchange of inputs/outputs; this is the bus arbiter. It manages the bus accesses of each connected device.
The screen attached to the properties therefore allows you to adapt the management parameters according to the devices which are connected.
The screen dedicated to the properties of the FIPIO bus looks like this:
FIPIO bus properties
General Expert
Profile
Fip
World Fip
Bus length
0
5
15 km
OK Cancel Apply Help
Elements and functions
This table describes the different areas that make up the configuration screen:
Tab
General
Expert
Function
This tab is used to: l l choose the type of profile managed by the bus arbiter, adjust the bus length.
This tab is used for choosing the management mode. In the case where the management is manual, it is used to further adjust the management parameters according to the devices which are connected.
TLX DS COM PL7 xxE
265
FIPIO Configuration
Properties of the FIPIO bus: General tab
Introduction
The profile
With this tab, you can access two types of information: l l the profile, the bus length.
The profile is chosen according to the devices which are connected to the FIPIO bus. It can be in either of two versions: l l
FIP: l This profile is chosen by default.
l It is compatible with all the devices of Schneider and partners.
WorldFip: l The selection of this mode allows you to operate the FIPIO bus in accordance with the EN 50170 standard.
l l
Note: The WorldFip profile mode can be used with the following restrictions: no TSX FP ACC6 or TSX FP ACC8 repeaters, use of TBX LEP 020 version 1.4 minimum and TBX LEP 030 version 1.2 minimum, l use of the PCMCIA TSX FPP 10 card, version 1.8 minimum.
The bus length With this cursor you can increase or decrease the bus length. The default value is 1
Km and the adjustment increment is 1 Km.
This length must be adjusted because it is taken into account in the calculation of the propagation time for the signals on the bus and consequently in the calculation of the network cycle times.
Note: At each modification of the length of the FIPIO bus, all the connected devices must be powered off, then on after the new application has been downloaded (in the PLC).
266
TLX DS COM PL7 xxE
FIPIO Configuration
Properties of the FIPIO bus: Expert tab
Introduction With this tab, you have access to the management mode concerning the calculation l l of: reversal and silence time, bandwidths.
Note: At each modification of the parameters below, all the connected devices must be powered off, then on after the new application has been downloaded (in the PLC).
The automatic mode
Note: This mode is advocated.
The reversal and silence times and the bandwidths cannot be modified. They are calculated according to the bus parameters and device configuration data.
The manual mode
CAUTION
No monitoring is carried out in manual mode. Modifying these parameters can cause the device connected to the bus not to work.
Failure to observe this precaution can result in injury or equipment damage.
This mode is used to enter the reversal and silence times and the bandwidths.
It is mainly reserved for specific applications requiring these values to be modified
(example: use of Hirschmann transmittors).
TLX DS COM PL7 xxE
267
FIPIO Configuration
Expert tab: manual mode
Introduction By selecting the manual mode, you have access to the following information: l l the reversal and silence times, the aperiodic bandwidths.
Aperiodic variables
Parameters
Silence time delay T0
Reversal time TR
The following table gives a description of the times:
Description
This defines the maximum time between the transmission of the last byte of a frame and the transmission of the first byte of the following frame.
This time is expressed in micro-seconds.
Its value must be greater than the reversal time TR and less than 255.
This defines the minimum time between the transmission of the last byte of a frame and the transmission of the first byte of the following frame.
This time is expressed in micro-seconds.
Its value must be greater than or equal to 1 and less than the silence time T0.
Aperiodic bandwidths
Parameters
Aperiodic variables
Messaging
There are two types of exchange on a FIPIO bus: l l exchanges of cyclic variables which are reserved for the process data, exchanges of aperiodic variables which concern the configuration of connected devices, the adjustment and the messaging.
A decrease or increase of the bandwidth of the aperiodic exchanges (Variables and
Messages) slows down or accelerates the output of the configuration or adjustment variables which can circulate on the bus. The same applies to a decrease or increase of the aperiodic bandwidth of the messaging facility.
The following table gives a description of the aperiodic bandwidths:
Description
This defines the output of the aperiodic variables which can circulate on the bus.
This bandwidth is expressed in Kbits/s.
Its value can be adjusted from 1 to 200 Kbits/s.
This defines the output of the aperiodic messages which can circulate on the bus.
This bandwidth is expressed in Kbits/s.
Its value can be adjusted from 1 to 200 Kbits/s.
Note: An increase in the aperiodic bandwidth increases the network cycle time.
268
TLX DS COM PL7 xxE
19.3
FIPIO Configuration
Configuration of devices on the FIPIO bus
Introduction
Aim of this
Section
What's in this
Section?
This section introduces the configuration principles for FIPIO bus devices.
This Section contains the following Maps:
Topic
How to access the FIPIO configuration screen
Configuration screen of a FIPIO device
How to access the different parameters according to device type
Page
TLX DS COM PL7 xxE
269
FIPIO Configuration
How to access the FIPIO configuration screen
Introduction
How to access the link
When a device has been registered, it is possible to access its configuration as in the case of a rack module.
This screen is used to select the task which exchanges the inputs/outputs: FAST or
MAST, to modify the configuration or adjustment parameters specific to the module.
The following table shows the procedure for accessing the configuration of a device on FIPIO:
Step
1
2
Action
Access the FIPIO configuration screen
Double click on the standard module to be configured.
270
TLX DS COM PL7 xxE
FIPIO Configuration
Configuration screen of a FIPIO device
Introduction
Illustration
This screen, split into several areas, is used to register the communication channel and to configure the parameters of the device selected for a FIPIO communication.
The screen looks like this:
1
2
FSD M8 P [FIPIO18 MODULE 0]
Configuration
Designation: EQP STD MOD 8MP
3
4
Channel
Local configuration
Task: MAST
Default configuration
Base
Decimal
Parameters
%KW\0.2.18\0.0.0
%KW\0.2.18\0.0.1
%KW\0.2.18\0.0.2
%KW\0.2.18\0.0.3
%KW\0.2.18\0.0.4
%KW\0.2.18\0.0.5
%KW\0.2.18\0.0.6
%KW\0.2.18\0.0.7
Symbol Value
0
0
16#8040
16#0
0
0
0
16#4
Elements and functions
This table describes the different areas that make up the configuration screen:
Address Zone
1
2
3
4
Title bar
Module
Description
This zone defines the module reference and its physical position in the module.
This zone is used to input information with the aid of dropdown lists: l parameter type: l l the Configuration mode, the Adjustment mode (which can be accessed by certain device types), l l the Debugging mode (can only be accessed in online mode).
channel type (inputs or outputs) when the designated device has inputs and outputs.
Communication channel This zone is used to assign devices to either the MAST task or the FAST task, with the aid of a dropdown list.
Some device types have access to a Local configuration check box. If the box is checked off, the channel parameters can not be accessed.
Channel parameters This zone is used for device parametering. According to certain device types, this zone can not be accessed.
TLX DS COM PL7 xxE
271
FIPIO Configuration
Note: For further information on configuration parameters, adjustment parameters and debugging parameters, refer to the documentation specific to each device.
272
TLX DS COM PL7 xxE
FIPIO Configuration
How to access the different parameters according to device type
How to access the inputs/ outputs
The following procedure provides information on how to access the input or output parameters of a module. It is enabled in both offline and online mode.
Step
1
2
Action
Access the configuration screen of a FIPIO device.
Select input part or output part from the module zone’s dropdown list.
How to adjust the configuration parameters
The following procedure describes how to modify the adjustment parameters of a module. It is enabled in both offline and online mode.
Step
1
2
3
4
5
6
Action
Access the configuration screen of a FIPIO device.
Select adjustment mode from the module zone’s dropdown list.
Select the cell relating to the entry parameter.
Enter the parameter.
Enable by clicking on Input.
Enable the assignment.
How to assign a module to a PL7 task
The following procedure describes how to assign a module to a PL7 task. It is only enabled in offline mode.
Step
1
2
3
Action
Access the configuration screen of a FIPIO device.
Select MAST
→
or FASTTask from the dropdown list.
Enable the assignment.
TLX DS COM PL7 xxE
273
FIPIO Configuration
19.4
Input/output management by the PL7 tasks
Introduction
Aim of this
Section
What's in this
Section?
This Section introduces the configuration principles for PL7 tasks in FIPIO mode.
This Section contains the following Maps:
Topic
How to access PL7 task configuration in FIPIO mode.
Configuration screen of a FIPIO processor
FIPIO input/output management using PL7 tasks
Page
274
TLX DS COM PL7 xxE
FIPIO Configuration
How to access PL7 task configuration in FIPIO mode.
Introduction
Procedure
FIPIO Bus and device configuration modifies the task network cycle times in accordance with the input/output updating of each PL7 task.
These modifications can result in constraints on: l task type (cyclic or periodic), as well as its execution time and watchdog, l FIPIO input/output processing in relation to the task cycle (controlled or free).
The PL7 software is used then to manage the inputs/outputs according to the MAST or FAST tasks and their network cycle time.
The following table shows the procedure for accessing the MAST and FAST tasks in FIPIO mode:
Step
1
2
Action
Access the hardware configuration screen
Double click on the processor.
TLX DS COM PL7 xxE
275
FIPIO Configuration
Configuration screen of a FIPIO processor
Introduction
Illustration
This screen, split into various areas, is used to manage the FIPIO inputs/outputs l l l l according to: task type (MAST or FAST), use type (cyclic or periodic) and duration, watchdog, task network cycle time.
Only the section relating to FIPIO mode is presented below.
The screen looks like this:
TSX 57252 [RACK 0 POSITION 1]
Configuration
Designation: TSX P processor 57252
Operating Mode
Run/Stop input
Auto start in Run
%MWi Reset on cold restart
Memory Card
None
Tasks
MAST
Cyclic
Periodic
Watchdog
FAST
Period:
Watchdog
250
0 ms ms
FIPIO Mode
Network cycle time (calculated)
Controlled
Free
4 ms
100
5 ms ms
FIPIO Mode
cycle
time (calculated)
Controlled
Free
0 ms
The FIPIO Mode window
You can access two types of information via the FIPIO Mode window: l l
Mode (controlled or free): is used to link input/output updating to the task cycle.
Network cycle time (calculated): this time represents the network cycle time associated with a task.
276
TLX DS COM PL7 xxE
FIPIO Configuration
FIPIO input/output management using PL7 tasks
Introduction The FIPIO input/output management modes are dependent upon the type of task execution (cyclic or periodic).
Controlled FIPIO mode
This mode can only be accessed via a PL7 task declared as periodic.
Tasks
MAST
Cyclic
Periodic
Watchdog
FAST
Period:
Watchdog
150
250 ms ms
FIPIO Mode
Network cycle time (calculated)
Controlled
Free
4 ms
100
5 ms ms
FIPIO Mode
Network cycle time (calculated)
Controlled
Free
0 ms
In this mode, input/output refreshing is correlated with the task period. The system guarantees input/output updating during one period only. Only the inputs/outputs associated with this task are refreshed.
Choosing this mode imposes the following constraint:
The PLC task period (MAST or FAST) must be greater than or equal to the network cycle time
Free FIPIO mode This mode can be accessed via a periodic or cyclic declared PL7 task.
Tasks
MAST
Cyclic
Periodic
Watchdog
FAST
Period:
Watchdog
250
0 ms ms
FIPIO Mode
Network cycle time (calculated)
Controlled
Free
4 ms
100
5 ms ms
FIPIO Mode
Network cycle time (calculated)
Controlled
Free
0 ms
In this mode, no constraints are imposed on the task period. The PLC task period
(MAST or FAST) can be less than the network cycle time.
In this case, the task can be carried out without updating the inputs/outputs.
Selecting this mode provides the possibility of having the shortest possible task times for an application where the rate is critical.
TLX DS COM PL7 xxE
277
FIPIO Configuration
19.5
Confirmation of the FIPIO bus configuration
Introduction
Aim of this
Section
What's in this
Section?
This Section introduces the main instances of FIPIO bus configuration refusal.
This Section contains the following Maps:
Topic
Confirming the configuration
Confirmation refused, examples
Page
278
TLX DS COM PL7 xxE
FIPIO Configuration
Confirming the configuration
Introduction
Confirmation refused
On completion of the FIPIO bus configuration, and in order to be recognized in the new application, the global bus configuration must be confirmed.
The PL7 then checks the constraints associated with this new application. If the imposed constraints are not respected, no scanning table is created.
A message window opens in this case.
FIPIO Configuration
Cannot generate the scan table for
FIPIO I/Os
?
Close
Recommendations>>
How to access the recommendations
The configuration remains unconfirmed (Bus X physical configuration and FIPIO physical configuration) as long as the problem is not corrected by the user. This configuration can not be transferred into the PLC.
The Recommendations button enlarges the dialogue box where the reasons for refusal as well as useful corrective measures are located.
Step
1
Action
Select the Recommendations button.
TLX DS COM PL7 xxE
279
FIPIO Configuration
Result The characteristics of each configured task (MAST and FAST) are displayed.
FIPIO Configuration
Cannot generate the scan table for
FIPIO I/Os
?
Close
Recommendation>>
Periodic Mast task in controlled mode
Period: 100 ms
Network cycle time: 177 ms
The network cycle time is greater than the period.
To correct this you can:
- configure this task period at a value greater than 177ms
- reduce the number of devices configured in this task.
- switch this task to free mode
If a task’s constraints are not respected, the cause of the failure and corrective recommendations complete the characteristics.
Depending on the recommendations, there are two possible measures for correcting the configuration, these are as follows: l Access the configuration screen of the processor to modify the PL7 task management parameters.
l Access the FIPIO configuration screen to modify device distribution in the MAST or FAST tasks.
280
TLX DS COM PL7 xxE
FIPIO Configuration
Confirmation refused, examples
Introduction
Example 1
The following examples concern the main refusals encountered.
The MAST or FAST task has been configured in controlled periodic mode.
The network cycle time is greater than the period.
FIPIO Configuration
Cannot generate the scan table for
FIPIO I/Os
?
Close
Recommendation>>
Periodic Mast task in controlled mode
Period: 100 ms
Network cycle time: 177 ms
The network cycle time is greater than the period.
To correct this you can:
- configure this task period at a value greater than 177ms
- reduce the number of devices configured in this task.
- switch this task to free mode
TLX DS COM PL7 xxE
281
FIPIO Configuration
Example 2 The MAST task has been configured in cyclic mode.
The network cycle time is greater than the watchdog.
FIPIO Configuration
Cannot generate the scan table for
FIPIO I/Os
?
Close
Recommendation>>
Cyclic Mast task
Watchdog: 100 ms
Network cycle time: 177 ms
The network cycle time is greater than the watchdog.
To correct this you can:
- configure the watchdog of this task period at a value greater than 177ms
- reduce the number of devices configured in this task.
Example 3 The MAST or FAST task has been configured in free periodic mode.
The network cycle time is greater than the watchdog.
FIPIO Configuration
Cannot generate the scan table for
FIPIO I/Os
?
Close
Recommendation>>
Periodic Mast task in free mode
Period: 50ms
Watchdog: 100 ms
Network cycle time: 177 ms
The network cycle time is greater than the watchdog.
To correct this you can:
- configure the watchdog of this task period at a value greater than
177ms
- reduce the number of devices configured in this task.
282
TLX DS COM PL7 xxE
Programming FIPIO communication
20
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter describes the Programming process during set-up FIPIO communication.
This Chapter contains the following Maps:
Topic
FIPIO error processing
Examples of explicit exchange saturation detection
Page
TLX DS COM PL7 xxE
283
FIPIO Programming
FIPIO error processing
Introduction
Algorithm
FIPIO error processing can be performed with the debugging and diagnostics screens.
It can however be useful to perform this processing using a program.
The algorithm shown is an example of a FIPIO bus error detection and management application algorithm
Test bit %S10
(general input/output error)
284
%S10 = 0 ?
Yes
Find error on the FIPIO bus via
%S118
No No input/output error
Find faulty point of
connection via
%I\p2c\m.MOD.ERR = 1
%S118 = 0?
Yes
No
Test error on bus X via
%S119
Find the word from %SW128 to
%SW143, which is different from FFFF
Find the faulty point of connection using the
%SWi:x word bit which is different from 0
There are two different methods for finding the faulty point of connection.
The recommended method is to find it by using system words %SW128 to
%SW143.
Diagnose the connection point using the
READ_STS %CH\p.2.c\0.MOD function
Find the faulty channel via
%I\p.2.c\m.v.ERR = 1
Diagnose the channel via the
READ_STS %CH\p.2.c\m.v.ERR
function
TLX DS COM PL7 xxE
FIPIO Programming
Examples of explicit exchange saturation detection
Introduction The following examples are given in structured text language, but they can be translated into all the PL7 languages.
They only have to be taken into account if the PL7 application may activate more that 24 explicit functions at the same time and if you want to reiterate a request in the event of explicit exchange saturation.
Management of the READ_STS module
IF (NOT (%MW\0.2.1\0.MOD:x0)) THEN (*no request in progress*)
SET %M0; (*request latch*)
(*bit reset to 0 indicating saturation of explicit exchanges*)
%SW116:=%SW116 AND 2#1111111111111011;
READ_STS %CH\0.2.1\0.MOD;
IF (%SW116:x2) THEN
RESET %M0; (*READ_STS retried, saturation has occurred*)
(*%MW\0.2.1\0.MOD.2:x1 signals a functional error*)
END_IF;
END_IF;
IF(%M0 AND NOT (%MW\0.2.1\0.MOD:x0)) THEN
(*%MW\0.2.1\0.MOD.2 can be used*)
RESET %M0;
END_IF;
TLX DS COM PL7 xxE
285
FIPIO Programming
Management of the READ_STS channel
IF (NOT (%MW\0.2.1\0.0:x0)) THEN (*no request in progress*)
SET %M1; (*request latch from channels 0 to 7*)
(*bit reset to 0 indicating saturation of explicit exchanges*)
%SW116:=%SW116 AND 2#1111111111111011;
READ_STS %CH\0.2.1\0.0;
IF (%SW116:x2) THEN
RESET %M1; (*READ_STS retried, saturation has occurred*)
(*%MW\0.2.1\0.0.2:x6 signals a communication error*)
END_IF;
END_IF;
IF(%M1 AND NOT (%MW\0.2.1\0.0:x0)) THEN
(*%MW\0.2.1\0.0.2 can be used*)
RESET %M1;
END_IF;
READ_PARAM at connection point 02
IF (NOT (%MW\0.2.2\0.0:x2)) THEN (*no request in progress*)
SET %M2; (*request latch from channels 0 to 7*)
(*bit reset to 0 indicating saturation of explicit exchanges*)
%SW116:=%SW116 AND 2#1111111111111011;
READ_PARAM %CH\0.2.2\0.0; (*request from the parameters*)
IF ((%MW\0.2.2\0.0.1:x) AND (%SW116:x2)) THEN
(*exchange refused*)
RESET %M2; (*saturation of explicit exchanges*)
END_IF;
END_IF;
IF(%M2 AND NOT (%MW\0.2.2\0.0:x2)) THEN
(*reading finished parameters*)
RESET %M2;
END_IF;
286
TLX DS COM PL7 xxE
FIPIO Programming
WRITE_PARAM at connection point 02
IF (NOT (%MW\0.2.2\0.0:x2)) THEN (*no request in progress*)
SET %M3; (*request latch from channels 0 to 7*)
(*bit reset to 0 indicating saturation of explicit exchanges*)
%SW116:=%SW116 AND 2#1111111111111011;
WRITE_PARAM %CH\0.2.2\0.0, (*parameter transmitting*)
IF ((%MW\0.2.2\0.0.1:x2) AND (%SW116:x2)) THEN
(*exchange refused*)
RESET %M3; (*saturation of explicit exchanges*)
END_IF;
END_IF;
IF(%M3 AND NOT (%MW\0.2.2\0.0:x2)) THEN
(*end of parameter transmission*)
RESET %M3;
END_IF;
WRITE_CMD at connection point 02
IF (NOT (%MW\0.2.2\0.0:x1)) THEN (*no request in progress*)
SET %M3; (*request latch from channels 0 to 7*)
(*bit reset to 0 indicating saturation of explicit exchanges*)
%SW116:=%SW116 AND 2#1111111111111011;
WRITE_CMD %CH\0.2.2\0.0; (*command transmitting*)
IF ((%MW\0.2.2\0.0.1:x1) AND (%SW116:x2)) THEN
(*exchange refused*)
RESET %M3; (*saturation of explicit exchanges*)
END_IF;
END_IF;
IF(%M3 AND NOT (%MW\0.2.2\0.0:x1)) THEN
(*end of command transmission*)
RESET %M3;
END_IF;
TLX DS COM PL7 xxE
287
FIPIO Programming
288
TLX DS COM PL7 xxE
Debugging a FIPIO communication
21
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter describes the Debugging process during set-up of FIPIO communication.
This Chapter contains the following Maps:
Topic
Debugging mode
How to access the remote device debugging screens
FIPIO bus device debugging screen
Page
TLX DS COM PL7 xxE
289
FIPIO Debugging
Debugging mode
Introduction
Inaccessible functions
Debugging mode can only be accessed in online mode.
This mode: l uses a red square to display when a device is faulty from the FIPIO configuration l screen, and adjusts and debugs the devices connected to the FIPIO bus from their application screen.
The following functions can not be accessed from the FIPIO configuration screen in online mode: l l l l adding on a device in online mode, duplicating or moving a device, modifying a device, deleting a device.
A message displayed in the status bar of the PL7 window gives the reason why access is denied.
290
TLX DS COM PL7 xxE
FIPIO Debugging
How to access the remote device debugging screens
Introduction
Procedure
This operation describes how to access the debugging screen of a device connected to the FIPIO bus.
The following table shows the procedure:
Step
1
2
3
4
Action
Connect with the manager PLC.
Access the hardware configuration screen
Double click on the FIPIO connector.
Double click on the standard module to debug.
TLX DS COM PL7 xxE
291
FIPIO Debugging
FIPIO bus device debugging screen
Introduction
Illustration
1
By opening the application screen of a device in debugging mode, the following l l l l l functions can be accessed: parameter display module configuration, reading, writing, and saving adjustment parameters, reading, writing, and forcing the inputs/outputs, aperiodic status data reading, command word writing,
The screen dedicated to devices looks like this:
TSX DMS 1025 [FIPIO1 MODULE 0]
Debugging
Designation: TBX7 EMB.8E/2SR24Vdc Version: 1.0
Global unforcing
RUN
Inputs
ERR IO DIAG...
2
Chan.
6
7
4
5
2
3
0
1
Symbol
0
0
0
0
0
0
0
0
State Error
DIAG...
DIAG...
DIAG...
DIAG...
DIAG...
DIAG...
DIAG...
DIAG...
Channel control
Forcing
F4 Force to 0
F5
F6
Force to 1
Unforce x
292
TLX DS COM PL7 xxE
Elements and functions
FIPIO Debugging
This table describes the different areas that make up the configuration screen:
Address Zone
1 common
2 specific
Function
See (See : PL7 Micro/Junior/Pro ; Communication applications
; Volume 1).
is used to access device debugging or device adjustment parameters.
The accessible parameters are device type functions.
Specific parameters
For input/output type modules, the specific zone displays the value and state of each of the module channels in real time and provides access to the commands from one channel.
For the other module types, the specific zone displays the bus management periodic exchange data.
TLX DS COM PL7 xxE
293
FIPIO Debugging
294
TLX DS COM PL7 xxE
FIPIO communication diagnostics
22
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter describes the Diagnostics process during set-up of FIPIO communication.
This Chapter contains the following Maps:
Topic
Diagnostics mode
How to access the FIPIO bus monitoring screen
Diagnostics screen: FIPIO bus monitoring
How to access the device monitoring screen
Diagnostics screens: device monitoring
How to access the monitoring screen for one device
Diagnostics screen: single device monitoring
How to access the communication error history screen
Diagnostics screen: communication error history
Page
TLX DS COM PL7 xxE
295
FIPIO Diagnostics
Diagnostics mode
Introduction In online mode it is possible to perform general diagnostics on the bus errors and device faults.
This diagnostic is possible by using screens available in the PL7 or the bits and system words managed by the application software.
Two modes are available: l l
FIPIO bus monitoring, device monitoring with or without a fault history.
Communication counters
Every configured connection point (including connection points 0 and 63) has a
report variable. This variable contains the communication counter and performance values.
This variable has: l the activity counters numbered from 16#00 to 16#20 and standardized as l
WORLDFIP, the error counters numbered from 16#21 to 16#7F and standardized as l
WORLDFIP, the manufacturer counters numbered 16#80 to 16#FF these counters are not standardized as WORLDFIP.
The error counters change when there are communication errors on the FIPIO bus.
Diagnostics screens
Four screens display the status of the various counters and thus the communication errors: l The FIPIO bus monitoring screen provides a global view of the FIPIO bus, it l displays the communication errors on the whole bus.
The Device monitoring screen provides a synthesis per connection point; it features all the connection points and indicates the status of the error counters l l per connection point.
The Device monitoring at connection point n screen shows all the counters and their status at a given connection point.
The Communication fault history screen is a fault history, which dates and retains the fault counter statuses to provide a trace.
Only one screen of each type can be open (one per connection point for the third type). If you try to open a screen which is already open, it will appear instantaneously.
296
TLX DS COM PL7 xxE
FIPIO Diagnostics
How to access the FIPIO bus monitoring screen
Introduction
Procedure
This operation describes how to access the FIPIO bus monitoring screen. It only applies to online mode.
The following table shows the procedure:
Step
1
2
3
4
Action
Connect with the manager PLC.
Access the hardware configuration screen
Double click on the FIPIO connector.
Right click on the screen background.
5
Result: a contextual menu appears.
Fipio bus monitoring
Device monitoring
Fipio bus properties
Select the FIPIO bus monitoring command.
TLX DS COM PL7 xxE
297
FIPIO Diagnostics
Diagnostics screen: FIPIO bus monitoring
Introduction
Illustration
Elements and functions
This screen gives the user a global view of the bus and indicates the communication faults on the bus.
The screen has a list of all the bus communication error counters and indicates their status.
The screen dedicated to devices looks like this:
Fipio bus monitoring
Counter Label
34
35
36
37
39
2F
30
32
33
2B
2C
2D
2E
21
22
23
24
Channel 1 No Echo fault
Channel 1 Hyper current fault
Channel 1 Hypo current fault
Channel 1 Cross talk fault
Frame fragment fault
FCS fault
Frame length fault
Pierced frame fault
Coding fault
Overrun fault
Non identified frame type fault
Message recept queue full fault
Message recept queue full fault
Incorrect ADPU length fault
Received APDU type fault
Elementary cycle time exceed
Underrun fault l l
Each line has: l an icon representing the state of the error counter (the reference state being the state at screen opening): l l white for normal state, red for a faulty counter having changed since the reference state, the hexadecimal counter number, the counter labels (given by the WORLDFIP standard).
298
TLX DS COM PL7 xxE
FIPIO Diagnostics
Diagnostics On screen opening or on reset request, the report variables from all the connection points are read by a cyclic communication (one per second).
The counter values from each report variable are stored to create a reference state.
The time between reading and rereading the same variable is equal to the number of configured devices + 2 (0 and 63) in seconds.
As soon as the error counter value becomes different from its reference value, the counter icon goes red, regardless of the connection point. Reading the counter labels provides the type of error detected.
Example
Counter 21 goes red. This means that at least one counter 21 from all the counter
21s has changed.
Bus monitoring via the application
In PL7, the %SW150 and %SW151 system words indicate the number of frames sent and received by the channel manager.
If one of these two counters stops, it indicates that the FIPIO channel manager function has stopped.
The user is made aware of this stop in the configuration screen in online mode, when the background of connection point 0 goes red.
How to reset the reference state
The following procedure shows how to reset the reference state
Step
1
Action
Right click on the screen background.
2
Result: a contextual menu appears.
Reset
Select the Reset command.
TLX DS COM PL7 xxE
299
FIPIO Diagnostics
How to access the device monitoring screen
Introduction
Procedure
This operation describes how to access the FIPIO bus device monitoring screen. It only applies to online mode.
The following table shows the procedure:
Step
1
2
3
4
Action
Connect with the manager PLC.
Access the hardware configuration screen
Double click on the FIPIO connector.
Right click on the screen background.
5
Result: a contextual menu appears.
Fipio bus monitoring
Device monitoring
Fipio bus properties
Select the Device monitoring command.
300
TLX DS COM PL7 xxE
FIPIO Diagnostics
Diagnostics screens: device monitoring
Introduction
Illustration
This screen is used to access the monitoring of all the configured devices.
The screen has a list of all the configured connection points as well as points 0 and
63.
The screen dedicated to devices looks like this:
Monitoring of …
10
13
15
4
6
7
0
1
2
3
22
24
26
17
20
21
27
30
38
39
40
35
36
37
31
32
33
34
56
63
78
53
54
55
79
80
88
89
90
85
86
87
81
82
83
84
94
95
96
91
92
93
97
100
101
103
104
105
106
107
108
109
110
111
112
114
116
124
125
126
127
Elements and functions
The following elements are associated with each connection point: l one icon showing: l whether the connection point needs to be monitored. If the box is checked, the device is monitored.
l l whether the connection point is faulty. The icon goes red if an error is detected.
the connection point number.
TLX DS COM PL7 xxE
301
FIPIO Diagnostics
Diagnostics
How to disable device monitoring
On screen opening or on reset request, the report variables from all the connection points are read by a cyclic communication (one per second).
The counter values from each report variable are stored to create a reference state.
The time between reading and rereading the same variable is equal to the number of configured devices + 2 (0 and 63) in seconds.
A connection point is considered faulty if the value of one of the error counters has changed since the reference state. When the point is faulty, the icon turns red.
Diagnostics are only sent back if there is a communication between the bus manager and the faulty connection point. Errors correspond to the WORLDFIP standard defined error counters.
The following procedure describes how to disable the device monitoring on the bus.
Step
1
Action
Click on the checkbox belonging to the connection point to be disabled.
Result:
The box is no longer checked. In this case this connection’s report variable is no longer read and its reference state is reset.
How to reset the reference state
The following procedure shows how to reset the reference state
Step
1
Action
Right click on the screen background.
2
Result: a contextual menu appears.
Device monitoring
Communication errors log
Monitoring
Reset
Select the Reset command.
302
TLX DS COM PL7 xxE
FIPIO Diagnostics
How to access the monitoring screen for one device
Introduction
Procedure
This operation describes how to access the monitoring screen for a single FIPIO bus device and how to display its error counters.
It only applies to online mode.
The following table shows the procedure:
Step
1
2
Action
Access the Device monitoring screen.
Select the connection point number to be accessed.
3
4
Result: the number is highlighted.
Right click on the screen background.
Result: a contextual menu appears.
Device monitoring
Communication errors log
Monitoring
Reset
Select the Single device monitoring command.
TLX DS COM PL7 xxE
303
FIPIO Diagnostics
Diagnostics screen: single device monitoring
Introduction
Illustration
This screen is used to display the status details of all the counters from a particular l l l connection point.
It features all three zones corresponding to each type of counter: activity, error, manufacturer
The screen dedicated to devices looks like this:
Device Monitoring at Connection Point 2
Activity counter
21
22
23
Initial value Previous value
6E34
72D8
0000
6C8D
7114
0000
Activity counter
2B
2C
2D
2E
21
22
23
24
2F
30
35
39
Initial value Previous value
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
0000
007E
0000
0000
0060
0000
0000
0000
0000
Activity counter
80
Initial value Previous value
0001 0000
Current value
71B5
Label
Counter frames response received
7673 Counter frames response returned
0000 Fast aperiodic specified requests
Current value
0000
0000
0000
0000
007e
0000
0000
0060
0000
0000
0000
0000
Label
Channel 1 No Echo fault
Channel 1 Hyper current fault
Channel 1 Hypo current fault
Channel 1 Cross talk fault
Frame fragment fault
FCS fault
Frame length fault
Pierced frame fault
Coding fault
Overrun fault
Incorrect ADPU length fault
Underrun fault
Current value
0000
Label
Counter not listed
304
TLX DS COM PL7 xxE
FIPIO Diagnostics
Elements and functions
Diagnostics l l l l l
The following elements are associated with each counter: l one icon indicating the state of the counter since the reference state: l l white: no change, green: change in the activity or manufacturer counters, l red: change in the error counters (the current value is different from the reference state).
the hexadecimal counter number, its hexadecimal reference value, its hexadecimal value during the last read, its current hexadecimal value, its label according to the WORLDFIP standard or the Counter not listed label for the manufacturer part.
On screen opening or on reset request, the report variables from all the connection points are read by a cyclic communication (one per second).
The counter values from each report variable are stored to create a reference state.
A connection point is considered faulty if the value of one of the error counters has changed since the reference state. When the point is faulty, the icon turns red.
Diagnostics are only sent back if there is a communication between the bus manager and the faulty connection point. Errors correspond to the WORLDFIP standard defined error counters.
How to reset the reference state
The following procedure shows how to reset the reference state
Step
1
Action
Right click on the screen background.
2
Result: a contextual menu appears.
Reset
Select the Reset command.
TLX DS COM PL7 xxE
305
FIPIO Diagnostics
How to access the communication error history screen
Introduction
Procedure
This operation describes how to access the FIPIO bus communication error history screen.
It only applies to online mode.
The following table shows the procedure:
Step
1
2
Action
Access the Device monitoring screen.
Right click on the screen background.
Result: a contextual menu appears.
Device Monitoring
Communication errors history
Monitoring
Reset
3 Select the Communication error history command.
306
TLX DS COM PL7 xxE
FIPIO Diagnostics
Diagnostics screen: communication error history
Introduction
Illustration
This screen has a list of the communication errors from the connection points (plus
0 and 63), which are configured and declared monitored in the Device monitoring screen.
The screen dedicated to devices looks like this:
Communication errors history
Date Time Connection point
14/10/1998 14:39:49 2
14/10/1998 14:39:49 2
Counter
2B
2E
Value Label
007E Frame fragment fault
0060 Pierced frame fault
Elements and functions
How to pause/ resume the history
Every time an error counter from a connection point changes, a line is added. It l l l l l features: the current date and time of the programming terminal, the decimal connection point number, the hexadecimal error counter number, the hexadecimal counter value, the counter label according to the WORLDFIP standard.
This command is used to stop and resume screen updating.
Step
1
Action
Right click on the screen background.
2
Result: a contextual menu appears.
Pause History
Reset history
Clear history
Cpy
Sort
Automatic stop of history
Reset
Select the Pause history command or Resume history command.
TLX DS COM PL7 xxE
307
FIPIO Diagnostics
How to clear history
This command can be accessed if the Pause history function is confirmed. It is used to delete all the lines from the screen.
Step
1
2
Action
Access the contextual menu.
Select the Clear history command
How to sort the history
This command can be accessed if the Pause history function is confirmed. It is used to sort all the history lines either by date and time or by connection point or counter.
Step
1
2
Action
Access the contextual menu.
Select the Sort
→
by date and time command.
How to copy the history
This command can be accessed if the Pause history function is confirmed. It is used to copy lines selected in text format onto the clipboard.
Step
1
2
Action
Access the contextual menu.
Select the Sort
→
by date and time command.
How to automatically stop the history
When this function is selected, it is used to stop the history when it has reached a maximum number of lines (4000 lines). A message pops up to indicate that this stop has occurred. When the function is not selected and when the maximum number has been reached, new added lines replace the first ones (turning mode).
Step
1
2
Action
Access the contextual menu.
Select the Automatic history stop command
Result: selecting the command checks the function.
How to reset the reference state
The following procedure shows how to reset the reference state
Step
1
2
Action
Access the contextual menu.
Select the Reset command.
308
TLX DS COM PL7 xxE
Language objects associated with
FIPIO communication
23
Introduction
Aim of this
Section
What's in this
Chapter?
This Chapter introduces language objects associated with FIPIO communication.
This Chapter contains the following Maps:
Topic
Language objects in implicit exchange
Language object for explicit exchange
Explicit exchange management and reports
Page
309
TLX DS COM PL7 xxE
FIPIO language objects
Language objects in implicit exchange
Introduction
Bit objects
This page describes all the language objects for implicit exchange in FIPIO communication that can be displayed or modified by the application program. (PL7
Micro/Junior/Pro ; Communication applications ; Volume 1)
The table below shows the different bit objects for implicit exchange.
Object (1) Function
%I\p.2.c\0.MOD.ERR
Module error bit
%I\p.2.c\m.i.ERR
%I\p.2.c\m.i.r
%Q\p.2.c\m.i.r
Channel error bit
Bit exchange
Bit exchange
Meaning
This bit set to 1, indicates a module error (at least one of the channels is faulty,…)
This bit set at 1 indicates a faulty channel.
Image of the module’s physical inputs (input acquisition)
Image of the module’s physical outputs
(output command)
Key
(1) p.2.c\m.i.r Address l l l l p: corresponds to the processor’s slot c: corresponds to the connection point number m: corresponds to the module position number i: corresponds to the channel number
Word objects The table below shows the different word objects for implicit exchange.
Object (1) Function
%IW\p.2.c\m.i.r
Word exchange
%QW\p.2.c\m.i.
r
Word exchange
Meaning
Image of the module’s physical inputs (input acquisition)
Image of the module’s physical outputs (output command)
Key
(1) p.2.c\m.i.r Address l l l l p: corresponds to the processor’s slot c: corresponds to the connection point number m: corresponds to the module position number i: corresponds to the channel number
310
TLX DS COM PL7 xxE
FIPIO language objects
Language object for explicit exchange
Introduction
Word objects
This page describes all the language objects for explicit exchange in a FIPIO communication that can be displayed or modified by the application program. (PL7
Micro/Junior/Pro ; Communication applications ; Volume 1)
The table below shows the different word objects for explicit exchange.
Object (1) Function Meaning
%MW\p.2.c\0.MOD.2 Module status
%MW\p.2.c\0.i.2
Standard module channel status l l l l l l l l
Least significant byte: corresponds to standard.
l l l l l l l l x0 = 1: internal error x1 = 1: functional error x2 = 1: terminal block fault x3 = 1: standard module self-testing x4 = 1: reserved (= 0) x5 = 1: configuration error x6 = 1: missing module x7 = 1: extension module error
Most significant byte: corresponds to extension x8 = 1: internal error x9 = 1: functional error x10 = 1: terminal block fault x11 = 1: extension module self-testing x12 = 1: reserved (= 0) x13 = 1: configuration error x14 = 1: missing module x15 = 1: reserved (= 0)
Least significant byte: corresponding to standard l l l l l l l l x0 = 1: external error 4 x1 = 1: external error 3 x2 = 1: external error 2 x3 = 1: external error 1 x4 = 1: internal error x5 = 1: hardware configuration error x6 = 1: communication error x7 = 1: application error
TLX DS COM PL7 xxE
311
FIPIO language objects
Object (1)
%MW\p.2.c\1.i.2
Function
Extension module channel status
Meaning
Least significant byte: corresponding to extension l l l l l l l l x0 = 1: external error 4 x1 = 1: external error 3 x2 = 1: external error 2 x3 = 1: external error 1 x4 = 1: internal error x5 = 1: hardware configuration error x6 = 1: communication error x7 = 1: application error
Key
(1) p.2.c\m.i.r Address l l l l p: corresponds to the processor’s slot c: corresponds to the connection point number m: corresponds to the module position number i: corresponds to the channel number
Example
Note: For each connected device, refer to the corresponding documentation for details of task status words.
The example focuses on the channel level diagnostics for a TBX TOR device:
Object
%MW\p.2.c\0.i.2
%MW\p.2.c\1.i.2
Function
Channel status
Meaning l l
Least significant byte: l l l l l x0 = 1: tripped output x1 = 1: globally tripped x2 = 1: terminal block fault x3 = 1: external supply fault x4 = 1: channel configured but not physically present l x5 = 1: channel present but different from that configured x6 = 1: communication error x7 = 1: application error
312
TLX DS COM PL7 xxE
FIPIO language objects
Explicit exchange management and reports
Introduction
Word objects
This page describes all the language objects that manage explicit exchanges. (See
: PL7 Micro/Junior/Pro ; Communication applications ; Volume 1)
The table below shows the different word objects for the management of explicit exchanges.
Object (1)
%MW\p.2.c\
0.MOD.0
%MW\p.2.c\
0.MOD.0
Function
Module exchanges in progress
%MW\p.2.c\
0.i.0
Channel exchanges in progress
%MW\p.2.c\
0.i.1
Module report
Channel report
Meaning l l l x0 = 1: reading status in progress x1 = 1: sending of command parameters to the communication module x2 = 1: sending of adjustment parameters to the communication module l l x1 = 0: command parameters received and accepted by the module x2 = 0: adjustment parameters received and accepted by the module l l l l l l l l l x0 = 1: reading status in progress x1 = 1: sending of command parameters in progress x2 = 1: sending of adjustment parameters in progress x3 to x14: reserved (= 0) x15 = 1: sending of configuration parameters in progress l x0 = 0: status reading OK x1 = 0: command parameters received and accepted by the device x2 = 0: adjustment parameters received and accepted by the device x3 to x14: reserved (= 0) x15 = 0: configuration parameters received and accepted by the device
Key
(1) p.2.c\m.i.r Address l l l l p: corresponds to the processor’s slot c: corresponds to the connection point number m: corresponds to the module position number i: corresponds to the channel number
TLX DS COM PL7 xxE
313
FIPIO language objects
314
TLX DS COM PL7 xxE
FIPIO communication standard profiles
24
Introduction
Aim of this
Chapter
What's in this
Chapter?
This chapter introduces devices compatible with the standard communication profiles for use with the FIPIO bus and its services.
This Chapter contains the following Sections:
Section
24.1
24.2
24.3
24.4
Topic
Introduction to standard FIPIO communication profiles
Configuration of the FIPIO bus standard profiles
Debugging the FIPIO bus standard profiles
Language objects associated with the FIPIO bus standard profiles
Page
TLX DS COM PL7 xxE
315
Standard profiles
24.1
Introduction to standard FIPIO communication profiles
Introduction
Aim of this
Section
What's in this
Section?
This Section provides a summary description of the standard profiles of the FIPIO bus and its associated services.
This Section contains the following Maps:
Topic
Standard profiles: general
Designation of a standard profile
List of the standard profiles proposed in catalog by PL7
Page
316
TLX DS COM PL7 xxE
Standard profiles
Standard profiles: general
Introduction
Volume of data exchanged
A device conforming to the standard FIPIO communication profiles can be linked to a FIPIO bus, to exchange the input/output variables.
Data exchanges with devices are used to: l l l exchange inputs/outputs, write configuration or adjustment parameters, diagnose a connected device.
l l l
There are three types of standard profile:
FRDP: FIPIO Reduced Device Profile
FSDP: FIPIO Simple Device Profile
FEDP: FIPIO Extended Device Profile
The device profiles, which conform to a standard profile are a function of the number of inputs and outputs to be exchanged.
The table below describes the words managed by the different standard profiles:
Profile
Process data input acquisition output control
Configuration (optional)
Adjust (optional)
Commands specific command
Diagnostics input validity specific status
FRD
-
-
2 words
2 words
-
1 byte
-
FSD
8 words
8 words
16 words
32 words
-
1 byte
-
FED
32 words
32 words
30 words
30 words
8 words
1 byte
8 words
TLX DS COM PL7 xxE
317
Standard profiles
Designation of a standard profile
Introduction
How the reference is made up
FRD profile
A device conforming to the standard FIPIO communication profiles is defined by assigning one of the STD_P family standard profiles to it at the FIPIO connection point.
The family consists of a standard profile reference list.
Each reference is made up of several significant codes: l the standard profile used: l FRD l l
FSD
FED l l the connected device structure: l C: Compact l M: Modular the number and type of objects exchanged with the manager: corresponds to the input/output exchange volume in 16 bit words l 2 words l l 8 words l 32 words
P: corresponds to the presence of configuration or adjustment parameters (chosen).
the reference is made up of the following:
Profile
FRD
Structure
C
Number of objects Parameter
2 -
P
FSD profile
FED profile the reference is made up of the following:
Profile
FSD
Structure
C
M
Number of objects Parameter
8 -
P the reference is made up of the following:
Profile
FED
Structure
C
M
Number of objects Parameter
32 -
P
318
TLX DS COM PL7 xxE
Standard profiles
List of the standard profiles proposed in catalog by PL7
Introduction During FIPIO configuration, you can connect standard profiles in accordance with device type.
Compact device The following table gives a list of the compact standard profiles:
Reference
FRD C2
FRD C2 P
FSD C8
FSD C8 P
FED C32
FED C32 P
Designation
EQP RED CMPCT 2M
EQP STD CMPCT 2M P
STD DEV CMPCT 2W P
Language interface
32 bits %I, 32 bits %Q
32 bits %I, 32 bits %Q
16 configuration words, 32 adjustment words
8 words %IW, 8 words %QW EQP STD CMPCT 8M
STD DEV CMPCT 8W
EQP STD CMPCT 8M P
STD DEV CMPCT 8W P
8 words %IW, 8 words %QW
16 configuration words, 32 adjustment words
32 words %IW, 32 words %QW EQP STD CMPCT 32M
STD DEV CMPCT 32W
EQP STD CMPCT 32M P 32 words %IW, 32 words %QW
STD DEV CMPCT 328W P 30 configuration words, 30 adjustment words
Modular device The following table gives a list of the modular standard profiles:
Reference
FSD M8
FSD M8 P
FED M32
FED M32 P
Designation
EQP STD MOD 8M
STD DEV MOD 8W
EQP STD MOD 8M P
STD DEV MOD 8W P
EQP STD MOD 32M
EXTENDED DEV MOD 32W
EQP STD MOD 32M P
EXTENDED DEV MOD
328W P
Language interface
8 words %IW, 8 words %QW
8 words %IW, 8 words %QW
16 configuration words, 32 adjustment words
32 words %IW, 32 words %QW
32 words %IW, 32 words %QW
30 configuration words, 30 adjustment words
TLX DS COM PL7 xxE
319
Standard profiles
Momentum
Device
In the Momentum family, where an analog input/output base is not available in the catalog, it is then necessary to select one of the OTHER_FxD_[P] standard profile references.
The choice criteria are as follows:
Language interface
32 bits %I, 32 bits %Q
Reference
OTHER_FRD
OTHER_FRDP
OTHER_FSD
OTHER_FSDP
OTHER_FED
OTHER_FEDP
8 words %IW, 8 words %QW
32 words %IW, 32 words %QW
Communicator The communicators are as follows:
Reference
OTHER
TSX FPP10
170 FNT 110 01
Language interface other communication module
FIPIO TSX communication module
FIPIO TSX communication module for the TS Momentum
320
TLX DS COM PL7 xxE
24.2
Standard profiles
Configuration of the FIPIO bus standard profiles
Introduction
Aim of this
Section
What's in this
Section?
This Section introduces the configuration principles for the FIPIO bus standard profiles.
This Section contains the following Maps:
Topic
Configuration screen of a standard profile
How to modify the parameters of a standard profile
Adjustment mode
Page
TLX DS COM PL7 xxE
321
Standard profiles
Configuration screen of a standard profile
Introduction
Illustration
The configuration screen of a standard profile reuses the parameters of all other devices configured on the FIPIO bus (see Configuration screen of an FIPIO device).
However, some parameters are exclusive to it. In the rest of this document, only the part specific to the standard profiles is explained.
The screen dedicated to the device looks like this:
FSD M8 P [FIPIO18 MODULE 0]
Configuration
Designation: EQP STD MOD 8MP
Elements and functions
1
2
3
4
Channel 0
Local configuration
Task: MAST
Default configuration
Base
Decimal
Parameter
%KW\0.2.18\0.0.0
%KW\0.2.18\0.0.1
%KW\0.2.18\0.0.2
%KW\0.2.18\0.0.3
%KW\0.2.18\0.0.4
%KW\0.2.18\0.0.5
%KW\0.2.18\0.0.6
%KW\0.2.18\0.0.7
Symbol Value
0
0
16#8040
16#0
0
0
0
16#4
This table describes the different areas that make up the configuration screen:
Address Description
1 The Local configuration check box is only available for the FSD C8 P and FSD
M8 P profiles.
If the box is checked, the configuration and adjustment parameters are not sent to the device connected to the bus (to ensure rapid start-up of the device). The device starts up or initializes with its own parameters.
In the configuration screen, if the box is checked, the parameters of the channel cannot be accessed.
2 The Default configuration button is used to return to the original configuration.
322
TLX DS COM PL7 xxE
Standard profiles
Address Description
3
4
The Standard is used to select the display standard of the value of the selected word.
Three types are available: l l l
Decimal
Hexadecimal
Binary
This list displays the configuration words %KW or the adjustment words %MW which correspond to the registered standard profile.
For each word, there is an associated Symbol and a Value.
TLX DS COM PL7 xxE
323
Standard profiles
How to modify the parameters of a standard profile
Introduction
How to modify the display standard
The following procedures apply to the configuration or adjustment parameters.
The following procedure shows the selection of the display standard. For the example, the chosen standard is binary.
Step
1
2
Action
Select the cell Value of the word to be modified.
Select from the dropdown menu Standard
→
Binary.
Result: the cell displays 2#1011 .
How to enter a value on the keyboard
The following procedure shows how to key a value into a cell.
Step
1
2
Action
Select the Value cell of the word to be modified.
How to enter a value on the keyboard.
Note:
Keyboard entry depends on the display standard.
324
TLX DS COM PL7 xxE
How to enter a value in binary form
Standard profiles
The following procedure shows how to enter a value in binary form.
Step
1
Action
Double click on the Value cell of the word to be modified.
Result: the following window appears.
Property of: %KW\0.2.5\0.0.7
2
3
07:
06:
05:
04:
03:
02:
01:
15:
14:
13:
12:
11:
10:
09:
08:
Bits of word
Select the bits which must be set to 1.
Close the window Property of: ... by selecting the cross in the left-hand corner.
Result: The closure validates the entered value and displays it according to the standard.
TLX DS COM PL7 xxE
325
Standard profiles
Adjustment mode
Introduction
Illustration
Adjustment mode is accessed from the hardware configuration menu of the application browser. The principal is the same as for configuration mode, and the adjustment words are %MW.
There are 32 possible words for the FSD and FRD profiles and 30 words for the FED profiles.
The adjustment screen dedicated to the device looks like this:
FSD C8 P [FIPIO5 MODULE 0]
Configuration
Designation: EQP STD CMPCT 8MP
Channel 0
Local configuration
Task: MAST
Default configuration
Base
Decimal
Parameter
%KW\0.2.5\0.0.0
%KW\0.2.5\0.0.1
%KW\0.2.5\0.0.2
%KW\0.2.5\0.0.3
%KW\0.2.5\0.0.4
%KW\0.2.5\0.0.5
%KW\0.2.5\0.0.6
%KW\0.2.5\0.0.7
Symbol
0
0
0
0
0
0
0
0
Value
326
TLX DS COM PL7 xxE
24.3
Standard profiles
Debugging the FIPIO bus standard profiles
Introduction
Aim of this
Section
What's in this
Section?
This Section introduces the debugging principles FIPIO bus standard profiles.
This Section contains the following Maps:
Topic
Debugging screen of a standard profile
How to modify the debugging parameters of a standard profile
Page
TLX DS COM PL7 xxE
327
Standard profiles
Debugging screen of a standard profile
Introduction The debugging screen of a standard profile reuses the parameters of all other devices configured on the FIPIO bus (see Debugging screen of an FIPIO device).
However, some parameters are exclusive to it. In the rest of this document, only the part specific to the standard profiles is explained.
Note: The adjustment parameters cannot be accessed.
Illustration The screen dedicated to the device looks like this:
1
2
3
FED C32 P [FIPIO4 MODULE 0]
Debugging
Designation: EQP STD CMPCT 32MP Version: 1.0
RUN ERR IO
Channel 0
Variables
Outputs
Reference
%QW\0.2.4\0.0.0
%QW\0.2.4\0.0.1
%QW\0.2.4\0.0.2
%QW\0.2.4\0.0.3
%QW\0.2.4\0.0.4
%QW\0.2.4\0.0.5
%QW\0.2.4\0.0.6
%QW\0.2.4\0.0.7
%QW\0.2.4\0.0.8
%QW\0.2.4\0.0.13
%QW\0.2.4\0.0.14
%QW\0.2.4\0.0.15
DIAG...
Task: MAST
Label
Base
Hexadecimal
Symbol Value
16#1
16#30
16#24
16#C00
16#0
16#0
16#3C10
16#30
16#0
16#0
16#0
16#0
DIAG...
328
TLX DS COM PL7 xxE
Elements and functions
Standard profiles
This table describes the different areas that make up the configuration screen:
Address Description
1
2
3
This dropdown list allows the choice of periodic exchange: l l of the input parts, of the output parts.
The Standard window is used to select the display standard of the value of the selected word.
Three types are available: l l l
Decimal
Hexadecimal
Binary
This list displays the input words %IW or the output words %QW which correspond to the registered standard profile.
For each word there is an associated Wording, a Symbol and a Value.
TLX DS COM PL7 xxE
329
Standard profiles
How to modify the debugging parameters of a standard profile
Introduction
How to modify the display standard
The following procedures apply to the debugging parameters.
The following procedure shows the selection of the display standard. For the example, the chosen standard is binary.
Step
1
2
Action
Select the Value cell of the word to be modified.
Select from the dropdown menu Standard
→
Binary.
Result: the cell displays 2#1011 .
How to enter a value on the keyboard
The following procedure shows how to key a value into a cell.
Step
1
2
Action
Select the Value cell of the word to be modified.
How to enter a value on the keyboard.
Note:
Keyboard entry depends on the display standard.
330
TLX DS COM PL7 xxE
How to enter a value in binary form
Standard profiles
The following procedure shows how to enter a value in binary form. It is only valid for the output parts.
Step
1
Action
Double click on the Value cell of the word to be modified.
Result: the following window appears.
Property of: %KW\0.2.5\0.0.7
2
3
07:
06:
05:
04:
03:
02:
01:
00:
15:
14:
13:
12:
11:
10:
09:
08:
Bits of word
Select the bits which must be set to 1.
Close the window Property of: ... by selecting the cross in the left-hand corner.
Result: The closure validates the entered value and displays it according to the standard.
TLX DS COM PL7 xxE
331
Standard profiles
24.4
Language objects associated with the FIPIO bus standard profiles
Introduction
Aim of this
Section
What's in this
Section?
This section introduces the language objects associated with the FIPIO bus standard profiles.
This Section contains the following Maps:
Topic
Summary of the objects which can be accessed via the standard profiles
Language objects in implicit exchange
Language object for explicit exchange
Language objects associated with configuration
Page
332
TLX DS COM PL7 xxE
Standard profiles
Summary of the objects which can be accessed via the standard profiles
Introduction
FRD profile
The following tables show the language objects associated with each profile contained in the PL7 catalogue.
The following table relates to the FRD profiles
Input acquisition
Output command
Configuration words
FRD C2
%I\p.2.c\0.0
%I\p.2.c\0.31
%Q\p.2.c\0.0
%Q\p.2.c\0.31
-
Status: management of exchanges
Exchange report
Status: channel standard
Validity of inputs
Status: channel specific
Command words
Adjustment words
%MW\p.2.c\0.i.0
-
-
%MW\p.2.c\0.i.1
%MW\p.2.c\0.i.2
%MW\p.2.c\0.i.3
-
FRD C2 P
%I\p.2.c\0.0
%I\p.2.c\0.31
%Q\p.2.c\0.0
%Q\p.2.c\0.31
%KW\p.2.c\0.i.0
%KW\p.2.c\0.i.15
%MW\p.2.c\0.i.0
%MW\p.2.c\0.i.1
%MW\p.2.c\0.i.2
%MW\p.2.c\0.i.3
-
-
%MW\p.2.c\0.i.4
%MW\p.2.c\0.i.35
TLX DS COM PL7 xxE
333
Standard profiles
FSD profile The following table relates to the FSD profiles
Input acquisition
Output command
Configuration words
FSD C/M8
%IW\p.2.c\0.0
%IW\p.2.c\0.7
%QW\p.2.c\0.0
%QW\p.2.c\0.7
-
Status: management of exchanges
Exchange report
Status: channel standard
Validity of inputs
Status: channel specific
Command words
Adjustment words
%MW\p.2.c\0.i.0
-
-
%MW\p.2.c\0.i.1
%MW\p.2.c\0.i.2
%MW\p.2.c\0.i.3
-
FSD C/M8 P
%IW\p.2.c\0.0
%IW\p.2.c\0.7
%QW\p.2.c\0.0
%QW\p.2.c\0.7
%KW\p.2.c\0.i.0
%KW\p.2.c\0.i.15
%MW\p.2.c\0.i.0
%MW\p.2.c\0.i.1
%MW\p.2.c\0.i.2
%MW\p.2.c\0.i.3
-
-
%MW\p.2.c\0.i.4
%MW\p.2.c\0.i.35
334
TLX DS COM PL7 xxE
FED profile The following table relates to the FED profiles
Input acquisition
Output command
Configuration words
FED C/M32
%IW\p.2.c\0.0
%IW\p.2.c\0.31
%QW\p.2.c\0.0
%QW\p.2.c\0.31
-
Status: management of exchanges
Exchange report
Status: channel standard
Validity of inputs
Status: channel specific
Command words
Adjustment words
%MW\p.2.c\0.i.0
%MW\p.2.c\0.i.1
%MW\p.2.c\0.i.2
%MW\p.2.c\0.i.3
%MW\p.2.c\0.i.4
%MW\p.2.c\0.i.11
%MW\p.2.c\0.i.12
%MW\p.2.c\0.i.19
-
Standard profiles
FED C/M32 P
%IW\p.2.c\0.0
%IW\p.2.c\0.31
%QW\p.2.c\0.0
%QW\p.2.c\0.31
%KW\p.2.c\0.i.0
%KW\p.2.c\0.i.29
%MW\p.2.c\0.i.0
%MW\p.2.c\0.i.1
%MW\p.2.c\0.i.2
%MW\p.2.c\0.i.3
%MW\p.2.c\0.i.4
%MW\p.2.c\0.i.11
%MW\p.2.c\0.i.12
%MW\p.2.c\0.i.19
%MW\p.2.c\0.i.20
%MW\p.2.c\0.i.49
TLX DS COM PL7 xxE
335
Standard profiles
Language objects in implicit exchange
Introduction
Bit objects
This page describes all the language objects for implicit exchange associated with the standard profiles for FIPIO communication that can be displayed or modified by the application program. (PL7 Micro/Junior/Pro ; Communication applications ;
Volume 1)
The table below shows the different bit objects for implicit exchange.
Object (1)
%I\p.2.c\0.MOD
.ERR
%I\p.2.c\m.i.ER
R
%I\p.2.c\0.0 to
%I\p.2.c\0.31
%Q\p.2.c\0.0 to
%Q\p.2.c\0.31
Function
Module error bit
Channel error bit
Bit exchange
Bit exchange
Meaning
This bit set to 1, indicates a module error (at least one of the channels is faulty,…)
This bit set at 1 indicates a faulty channel.
Acquiring input bits for FRD profiles
Acquiring output bits for FRD profiles
Key
(1) p.2.c Address l l p: corresponds to the processor’s slot c: corresponds to the connection point number
336
TLX DS COM PL7 xxE
Word objects
Standard profiles
The table below shows the different word objects for implicit exchange.
Object (1)
%IW\p.2.c\0.0.
0 to
%IW\p.2.c\0.0.
7
Function
FSD word exchange
%QW\p.2.c\0.0.
0 to
%QW\p.2.c\0.0.
7
FSD word exchange
%IW\p.2.c\0.0.
0 to
%IW\p.2.c\0.0.
31
%QW\p.2.c\0.0.
0 to
%QW\p.2.c\0.0.
31
FED word exchange
FED word exchange
Meaning
Acquiring input words for FSD profiles
Acquiring output words for FSD profiles
Acquiring input words for FED profiles
Acquiring output words for FED profiles
Key
(1) p.2.c\m.i.r Address l l l l p: corresponds to the processor’s slot c: corresponds to the connection point number m: corresponds to the module position number i: corresponds to the channel number
TLX DS COM PL7 xxE
337
Standard profiles
Language object for explicit exchange
Introduction
Word objects common to all the profiles
This page describes all the language objects for explicit exchange associated with the standard profiles for FIPIO communication that can be displayed or modified by the application program. (PL7 Micro/Junior/Pro ; Communication applications ;
Volume 1)
The table below shows the different word objects for explicit exchange.
Object (1) Function Meaning
%MW\p.2.c\0.MO
D.2
%MW\p.2.c\0.i.2
Module status
Standard module channel status l l l l l l l l
Least significant byte: corresponds to standard.
l l l l l l l l x0 = 1: internal error x1 = 1: functional error x2 = 1: terminal block fault x3 = 1: standard module self-testing x4 = 1: reserved (= 0) x5 = 1: configuration error x6 = 1: missing module x7 = 1: extension module error
Most significant byte: corresponds to extension x8 = 1: internal error x9 = 1: functional error x10 = 1: terminal block fault x11 = 1: extension module self-testing x12 = 1: reserved (= 0) x13 = 1: configuration error x14 = 1: missing module x15 = 1: reserved (= 0)
Least significant byte: corresponding to standard l l l l l l l l x0 = 1: external error 4 x1 = 1: external error 3 x2 = 1: external error 2 x3 = 1: external error 1 x4 = 1: internal error x5 = 1: hardware configuration error x6 = 1: communication error x7 = 1: application error
%MW\p.2.c\0.i.3
Validity of inputs For FRD, FSD and FED profiles the least significant byte is specific to the connected device.
Refer to the documentation for the device.
Key
338
TLX DS COM PL7 xxE
Standard profiles
Object (1)
(1)
Function Meaning p.2.c\m.i.r Address l l l l p: corresponds to the processor’s slot c: corresponds to the connection point number m: corresponds to the module position number i: corresponds to the channel number
Note: For each connected device, refer to the corresponding documentation for details of task status words.
Internal words for FRD and FSD profiles
The following table shows the internal words specific to FRD and FSD profiles:
Object
%MW\p.2.c\0.i.4
to
%MW\p.2.c\0.i.35
Function
Adjustment parameters
Meaning
32 specific adjustment words.
Parameters which can be accessed in read and write format via the WRITE_PARAM , READ_PARAM ,
SAVE_PARAM and RESTORE_PARAM functions.
Key
(1) p.2.c\m.i.r Address l l l l p: corresponds to the processor’s slot c: corresponds to the connection point number m: corresponds to the module position number i: corresponds to the channel number
Internal words for the FED profiles
TLX DS COM PL7 xxE
The following table shows the internal words specific to the FED profiles:
Object
%MW\p.2.c\0.i.4
to
%MW\p.2.c\0.i.11
%MW\p.2.c\0.i.12
to
%MW\p.2.c\0.i.19
%MW\p.2.c\0.i.20
to
%MW\p.2.c\0.i.49
Function Meaning
Specific status 8 specific status words.
Parameters which can be accessed in read format via the READ_STATUS function.
Specific channel level command
8 specific command words.
Parameters which can be accessed in write format by the WRITE_CMD function.
Adjustment parameters
32 specific adjustment words.
Parameters which can be accessed in read and write format via the WRITE_PARAM , READ_PARAM ,
SAVE_PARAM and RESTORE_PARAM functions.
Key
339
Standard profiles
Object
(1)
Function Meaning p.2.c\m.i.r Address l l l l p: corresponds to the processor’s slot c: corresponds to the connection point number m: corresponds to the module position number i: corresponds to the channel number
340
TLX DS COM PL7 xxE
Standard profiles
Language objects associated with configuration
Introduction
Internal constants
This page describes all the configuration language objects associated with the
FIPIO communication agents that can be displayed by the agent application program.
The following table describes the internal constants:
Object
%KW\p.2.c\
0.0.0 to
%KW\p.2.c\
0.15
%KW\p.2.c\
0.0.0 to
%KW\p.2.c\
0.29
Function
Configuration words at channel level
Configuration words at channel level
Meaning
They contain channel parameters set via the configuration editor for FRD and FSD profiles.
They contain channel parameters set via the configuration editor for FED profiles.
TLX DS COM PL7 xxE
341
Standard profiles
342
TLX DS COM PL7 xxE
FIPIO Agent
25
Introduction
Aim of this
Chapter
What's in this
Chapter?
This Chapter introduces the Agent devices on the FIPIO bus and its services.
This Chapter contains the following Sections:
Section
25.1
25.2
25.3
25.4
Topic
Introduction to FIPIO Agents
Configuration of FIPIO Agents
Debugging FIPIO Agents
Language objects associated with the FIPIO Agents
Page
TLX DS COM PL7 xxE
343
FIPIO Agent
25.1
Introduction to FIPIO Agents
Introduction
Aim of this
Section
What's in this
Section?
This section provides a summary description of the agents on the FIPIO bus and their associated services.
This Section contains the following Maps:
Topic
FIPIO Agent: General
Periodic data exchange
Special cases
Communication from an FIPIO Agent
Page
344
TLX DS COM PL7 xxE
FIPIO Agent
FIPIO Agent: General
Introduction The TSX Micro or TSX Premium PLCs, equipped with the PCMCIA TSX FPP 10 card on their built-in communication channel, are agents on the FIPIO bus.
The FIPIO function agent is used to perform two types of data exchange: l l periodic exchanges of information with the manager (shared variables type), aperiodic exchanges of messages with the manager, from CCX 17 devices or with other agents.
Note: This function is available with the TSX FPP 10 card, minimum version V1.8.
TLX DS COM PL7 xxE
345
FIPIO Agent
Periodic data exchange
Introduction Each FIPIO Agent PLC uses 64 consecutive %MW words to exchange the periodic data. l l
The 32 first words are reserved for transmitting the information to the manager.
The 32 remaining words are reserved for receiving the information.
Note: The status %MW words and the command %MW are not significant.
Viewing the exchanges
4
The following chart illustrates the exchanges between an FIPIO Agent and a TSX
Premium manager.
TSX 57 FIPIO bus manager
TSX 57 Agent
Language view of the manager
%IW\0.2.1\0.0.0
%IW\0.2.1\0.0.15
%IW\0.2.1\0.0.16
%IW\0.2.1\0.0.31
%QW\0.2.1\0.0.0
1
%QW\0.2.1\0.0.15
%QW\0.2.1\0.0.16
%QW\0.2.1\0.0.31
2
3
TSX 37 Agent
%IW\0.2.4\0.0.0
%IW\0.2.4\0.0.15
%IW\0.2.4\0.0.16
%IW\0.2.4\0.0.31
%QW\0.2.4\0.0.0
%QW\0.2.4\0.0.15
%QW\0.2.4\0.0.16
%QW\0.2.4\0.0.31
Language view of the agent
%MW...
%MW...+31
%MW...+32
%MW...+63
%MW...
%MW...+31
%MW...+32
%MW...+63
346
TLX DS COM PL7 xxE
FIPIO Agent
Special cases
Introduction A TSX Premium PLC which is registered as an FIPIO Agent can communicate with a TSX 47-107 or APRIL 5000 manager.
For these uses, an FIPIO Agent is registered on the bus by registering a standard profile to the connection point.
l l l
The registered standard profile is as follows:
Device family: STD_P
Standard: FED M32
Communicator: TSX FPP 10
Exchanges with a TSX 47-107
The following chart illustrates the exchanges between an FIPIO Agent and a TSX
47-107 manager.
Language view of the manager Language view of the agent
TSX 47-107 FIPIO bus manager RIWA1,0,0
RIWA1,0,15
RIWB1,0,16
2
3
4
1
TSX 57 Agent
TSX 37 Agent
RIWB1,0,31
ROWA1,0,0
ROWA1,0,15
ROWB1,0,16
ROWB1,0,31
RIWA4,0,0
RIWA4,0,15
RIWB4,0,16
RIWB4,0,31
ROWA4,0,0
ROWA4,0,15
ROWB4,0,16
ROWB4,0,31
%MW...
%MW...+31
%MW...+32
%MW...+63
%MW...
%MW...+31
%MW...+32
%MW...+63
TLX DS COM PL7 xxE
347
FIPIO Agent
Communication from an FIPIO Agent
Introduction
Addressing
A PLC registered as an FIPIO Agent can communicate: l l with the server of the bus manager, with the server of another FIPIO Agent.
The syntax of an address is as follows:
ADR#\0.1.4\SYS
The following table describes the addressing parameters:
Parameter
0.1.4
SYS
Description l l l
0: corresponds to the module sending the request
1: corresponds to the channel sending the request
4: corresponds to the destination connection point corresponds to the server address.
348
TLX DS COM PL7 xxE
Example
FIPIO Agent
Example of access the system of the different PLCs
Manager
ADR#\1.1.0\SYS
Accessing the manager server
0
ADR#\0.1.1\SYS
Accessing the
FIPIO Agent 1 server
1
ADR#\0.1.4\SYS
Accessing the
FIPIO Agent 4 server
ADR#\0.1.4\SYS
Accessing the
FIPIO Agent 4 server 4
63
The FIPIO Agent PLC at address 1 reads 10 words in the FIPIO Agent PLC at address 4.
READ_VAR(ADR#\0.1.4\SYS, ‘%MW’, 0, 10, %MW10:10, %MW100:4)
TLX DS COM PL7 xxE
349
FIPIO Agent
25.2
Configuration of FIPIO Agents
Introduction
Aim of this
Section
What's in this
Section?
This Section introduces the configuration principles for FIPIO Agents.
This Section contains the following Maps:
Topic
How to access the FIPIO Agent parameters via PCMCIA cards
FIPIO Agent configuration screen
Page
350
TLX DS COM PL7 xxE
FIPIO Agent
How to access the FIPIO Agent parameters via PCMCIA cards
Introduction
How to access the link
The creation of an application setting up FIPIO Agents requires the configuration of the communication channel of the PLC registered as an FIPIO Agent.
This operation describes how to access the configuration parameters of the FIPIO
Agent link via the PCMCIA TSX FPP card for TSX Micro/Premium PLCs.
The following table shows the procedure for accessing the FIPIO link:
Step
1
2
Action
Access the communication channel configuration screen.
From the dropdown menu, select the communication channel CHANNEL 1
Example
CHANNEL 1
CHANNEL 1
(Link not configured)
CHANNEL 1
(No PCMCIA submodule)
MAST
3 Select one of the following PCMCIA cards from the dropdown menu: l TSX FPP 10 PCMCIA CARD FIPIO
Example
CHANNEL 1
CHANNEL 1 (No PCMCIA submodule)
(Link not configured)
TSX SCP 114 PCMCIA CARD RS485 MP
TSX FPP 20 PCMCIA FIPWAY CARD
TSX FPP 200 PCMCIA FIPWAY CARD
TSX FPP 10 PCMCIA FIPIO CARD
TSX MBP 100 PCMCIA MODBUS+ CARD
TSX MDM 10 PCMCIA MODEM CARD
TLX DS COM PL7 xxE
351
FIPIO Agent
FIPIO Agent configuration screen
Introduction
Illustration
This screen, split into two areas, is used to register the communication channel and to configure the necessary parameters for a FIPIO Agent link.
The screen dedicated to communication looks like this:
1
2
TSX 3722 [POSITION 00.0..1]
Configuration
Designation: PROCESSOR 37222
CHANNEL 1
CHANNEL 1
FIPIO AGENT
TSX FPP 10 PCMCIA FIPIO CARD
MAST
Connection Point Address
Table Start Address %MW 0
1
Elements and functions
This table describes the different areas that make up the configuration screen:
Address Zone
1 common
2 specific
Function
See (See : PL7 Micro/Junior/Pro ; Communication applications
; Volume 1).
is used to select and complete the following parameters: l l connection point address the beginning address of the table.
the beginning address of the table.
This parameter indicates the address of the table to be reserved for the periodic data exchanges between the bus manager and the FIPIO Agent.
l l
The table has 64 words:
32 words for the inputs (%IW\p.2.c\m.i.r),
32 words for the outputs (%QW\p.2.c\m.i.r).
352
TLX DS COM PL7 xxE
25.3
Debugging FIPIO Agents
FIPIO Agent debugging screen
Introduction
Illustration
This screen, split into two areas, is used to debug a FIPIO Agent.
The screen dedicated to debugging looks like this:
FIPIO Agent
1
2
TSX 3722 [POSITION 00.0..1]
Debugging
Designation: PROCESSOR 37222 Version: 3.4
CHANNEL 1
CHANNEL 1
FIPIO
TSX FPP 10 PCMCIAFIPIO CARD
MAST
FIPIO function status
State of output %MW
Active
Active
Table addresses:
OUTPUT from: %MW300 to %MW331
INPUT from: %MW322 to %MW363
Access values via animation tables
DIAG...
DIAG...
Elements and functions
This table describes the different areas that make up the configuration screen:
Address Zone
1 common
2 specific
Function
See (See : PL7 Micro/Junior/Pro ; Communication applications
; Volume 1).
is used to access the debugging parameters of a FIPIO Agent.
No data can be accessed from this screen.
TLX DS COM PL7 xxE
353
FIPIO Agent
25.4
Language objects associated with the FIPIO
Agents
Introduction
Aim of this
Section
What's in this
Section?
This Section introduces the language objects associated with FIPIO Agents.
This Section contains the following Maps:
Topic
Language objects in implicit exchange
Language object for explicit exchange
Explicit exchange management and reports
Language objects associated with configuration
Page
354
TLX DS COM PL7 xxE
FIPIO Agent
Language objects in implicit exchange
Introduction
Bit objects
This page describes all the language objects for implicit exchange associated with the FIPIO communication agents that can be displayed or modified by the agent’s application program. (PL7 Micro/Junior/Pro ; Communication applications ; Volume
1)
The table below shows the different bit objects for implicit exchange.
Object (1) Function
%Ixy.MOD.ERR Module error bit
%Ixy.i.ERR
Channel error bit
Meaning
This bit set to 1, indicates a module error (at least one of the channels is faulty,…)
This bit set to 1, indicates a line fault.
Key
(1) xy.i Address l l l x: corresponds to the rack number (-) y: corresponds to the module number (0/1) i: corresponds to the channel number (1)
Word objects The table below shows the different word objects for implicit exchange.
Object (1)
%IWxy.i.0
Function Meaning
Agent function status Byte 0: l l l
= 16#01: IDLE function
= 16#02: RUN function
= 16 #03: STOP function
Strategy to be applied to outputs
Byte 1: l l l
= 16#01: safety
= 16#02: %MW value valid
= 16 #03: fallback
Key
(1) xy.i Address l l l x: corresponds to the rack number (-) y: corresponds to the module number (0/1) i: corresponds to the channel number (1)
TLX DS COM PL7 xxE
355
FIPIO Agent
Language object for explicit exchange
Introduction
Word objects
This page describes all the language objects for explicit exchange associated with the FIPIO communication agents that can be displayed or modified by the application program. (PL7 Micro/Junior/Pro ; Communication applications ; Volume
1)
The table below shows the different word objects for explicit exchange.
Object (1) Function
%MWxy.MOD.2
Module status
%MWxy.i.2
Standard channel status
Meaning l l l l l l x0 = 1: defective module x1 = 1: functional error (error between the processor and the module, adjustment or configuration error, …) x2 = 1: terminal block fault (not connected) x3 = 1: self-tests running x4 = 1: reserved x5 = 1: error in hardware or software configuration (the module present is not that declared in the configuration, the sub-modules are not compatible) x6 = 1: missing module x7 = 1: error in one of the sub-modules l l
Byte 0: l x0 = 1: input words are disabled when the manager is in RUN l x1 = 1: output words are disabled when the agent is in RUN l x4 = 1: internal error of TSX FPP 10 card or card not yet started by the manager l x5 = 1: configuration error (the configured data module is different from that present) l l x6 = 1: communication error on FIPIO x7 = 1: application error (%MW table overrun)
Byte 1: reserved
Key
(1) xy.i Address l l l x: corresponds to the rack number (-) y: corresponds to the module number (0/1) i: corresponds to the channel number (1)
356
TLX DS COM PL7 xxE
FIPIO Agent
Explicit exchange management and reports
Introduction
Word objects
This page describes all the language objects that manage explicit exchanges. (See
: PL7 Micro/Junior/Pro ; Communication applications ; Volume 1)
The table below shows the different word objects for the management of explicit exchanges.
Object (1)
%MWxy.MOD.0
%MWxy.MOD.1
%MWxy.i.0
%MWxy.i.1
Function
Module exchanges in progress
Module report
Channel report
Meaning l l l x0 = 1: reading status in progress x1 = 1: sending of command parameters to the communication module x2 = 1: sending of adjustment parameters to the communication module l l x1 = 0: command parameters received and accepted by the module x2 = 0: adjustment parameters received and accepted by the module
Channel exchanges in progress l l l x0 = 1: reading status in progress x1 = 1: sending of command parameters to the communication channel x2 = 1: sending of adjustment parameters to the communication channel l l x1 = 0: command parameters received and accepted by the communication channel x2 = 0: adjustment parameters received and accepted by the communication channel
Key
(1) xy.i address l l l x: corresponds to the rack number (-) y: corresponds to the module number (0/1) i: corresponds to the channel number (1)
TLX DS COM PL7 xxE
357
FIPIO Agent
Language objects associated with configuration
Introduction
Internal constants
This page describes all the configuration language objects associated with the
FIPIO communication agents that can be displayed by the agent application program.
The following table describes the internal constants:
Object Function
%KWxy.i.0
Type
%KWxy.i.1
Reserved
%KWxy.i.2
Connection point address
%KWxy.i.3
Table start address
Meaning
Byte 0 = 16#09: for the FIPIO Agent function
-
Byte 0 = 16#01 to 16#7F: corresponds to addresses
1 to 127
Byte 0: least significant byte of the address
Byte 1: most significant byte of the address
358
TLX DS COM PL7 xxE
Index
A
Accessible Functions
Accessing configuration
Accessing the configuration
Accessing the configuration screen
Accessing the debugging screen
Accessing the diagnostics screen, 297
Addressing
Adjustment mode
Agent
B
Bus properties
C
TLX DS COM PL7 xx
Characteristics
Communication channel test
Communication function
Compatibility
compatibility
Configuration
Standard profiles (FIPIO), 321
Configuration Access
Configuration Parameters
Configuration parameters
Configuration Screen
359
Index
Configuration screen
Confirmation
D
Data exchange
Debug parameters
Debug screen
Debugging
Standard profiles (FIPIO), 327
Debugging Parameters
Debugging parameters
Debugging screen
Diagnostics
Driver
E
Error processing using the program, 284
360
Exchange management
Explicit exchange
Standard profiles (FIPIO), 338
F
G
General
I
Implicit exchange
Standard profiles (FIPIO), 336
implicit exchange
Input/output management
TLX DS COM PL7 xx
Introduction
Standard profiles (FIPIO), 316
L
Language objects
Standard profiles (FIPIO), 332
M
Management of exchanges
Management parameters
O
Operating Mode
Operating mode
P
Performance
TLX DS COM PL7 xx
Programming
R
Read mode
Report
S
Set-up
Standard profiles
system objects
W
Write mode
X
X-WAY
Index
361
Index
362
TLX DS COM PL7 xx
广告