TeSys DFB Library V2 for Unity Pro - a SoCollaborative library - User Manual - 01/2020
File info: application/pdf · 124 pages · 1.40MB
TeSys DFB Library V2 for Unity Pro - a SoCollaborative library - User Manual - 01/2020
TeSys DFB Library V2 for Unity Pro - User Manual - 01/2020
2020 Schneider Electric. ... TeSys U Communication Variables User Manual ... TeSys U LULC07 Profibus DP Communication Module User Manual 1672610.
User Manual
Motor Management, TeSys T, motor controller, Modbus, 6 logic inpu | Crescent Electric Supply Company
Full PDF Document
If the inline viewer fails, it will open the original document in compatibility mode automatically. You can also open the file directly.
Extracted Text
TeSys DFB Library V2 for Unity Pro 1672609EN-03 01/2020
TeSys DFB Library V2 for Unity Pro
a SoCollaborative library User Manual
01/2020
www.se.com
1672609EN-03
The information provided in this documentation contains general descriptions and/or technical characteristics of the performance of the products contained herein. This documentation is not intended as a substitute for and is not to be used for determining suitability or reliability of these products for specific user applications. It is the duty of any such user or integrator to perform the appropriate and complete risk analysis, evaluation and testing of the products with respect to the relevant specific application or use thereof. Neither Schneider Electric nor any of its affiliates or subsidiaries shall be responsible or liable for misuse of the information contained herein. If you have any suggestions for improvements or amendments or have found errors in this publication, please notify us.
You agree not to reproduce, other than for your own personal, noncommercial use, all or part of this document on any medium whatsoever without permission of Schneider Electric, given in writing. You also agree not to establish any hypertext links to this document or its content. Schneider Electric does not grant any right or license for the personal and noncommercial use of the document or its content, except for a non-exclusive license to consult it on an "as is" basis, at your own risk. All other rights are reserved.
All pertinent state, regional, and local safety regulations must be observed when installing and using this product. For reasons of safety and to help ensure compliance with documented system data, only the manufacturer should perform repairs to components.
When devices are used for applications with technical safety requirements, the relevant instructions must be followed.
Failure to use Schneider Electric software or approved software with our hardware products may result in injury, harm, or improper operating results.
Failure to observe this information can result in injury or equipment damage.
� 2020 Schneider Electric. All rights reserved.
2
1672609EN-03 01/2020
Table of Contents
Safety Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9
Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12
TeSys DFB Library Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13
TeSys DFB Sequencing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
17
Chapter 2 Modbus SL DFB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21
Ctrl_cmd_mdb_u_����: TeSys U Control/Command for Modbus SL. . . . . . . . . . . . . . . . . . . .
22
Comm_manager_u: TeSys U Communication Management for Modbus SL . . . . . . . . . . . .
26
Ctrl_cmd_mdb_t_����: TeSys T Control/Command for Modbus SL . . . . . . . . . . . . . . . . . . . .
30
Comm_manager_t: TeSys T Communication Management for Modbus SL . . . . . . . . . . . . .
34
Chapter 3 Modbus SL and Modbus/TCP DFB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
39
Special_mdb_u_����: TeSys U DFB for Modbus SL and Modbus/TCP . . . . . . . . . . . . . . . . .
40
Special_mdb_t_����: TeSys T DFB for Modbus SL and Modbus/TCP . . . . . . . . . . . . . . . . . .
46
Custom_mdb_����: Custom Read DFB for Modbus SL and Modbus/TCP . . . . . . . . . . . . . . .
58
Chapter 4 Modbus/TCP DFB for Quantum PLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
61
Special_mdb_u_addq: TeSys U DFB for Modbus/TCP for Quantum PLC . . . . . . . . . . . . . .
62
Special_mdb_t_addq: TeSys T DFB for Modbus/TCP for Quantum PLC . . . . . . . . . . . . . . .
68
Custom_mdb_addq: Custom Read DFB for Modbus/TCP for Quantum PLC . . . . . . . . . . . .
78
Chapter 5 Profibus DFB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
81
Ctrl_pfb_u_ms: TeSys U Control/Command for Profibus DP MS . . . . . . . . . . . . . . . . . . . . .
82
Ctrl_pfb_u_mms: TeSys U Control/Command for Profibus DP MMS . . . . . . . . . . . . . . . . . .
84
Ctrl_pfb_t_mms: TeSys T Control/Command for Profibus DP MMS . . . . . . . . . . . . . . . . . . .
86
Chapter 6 Cyclic Control/Command DFB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
89
Ctrl_cmd_u: TeSys U Cyclic Control/Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
90
Ctrl_cmd_t: TeSys T Cyclic Control/Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
92
Chapter 7 PKW Exchanges DFB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
95
Special_pkw_u: TeSys U DFB for PKW Exchanges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
96
Special_pkw_t: TeSys T DFB for PKW Exchanges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
102
Custom_pkw: Custom Read DFB for PKW Exchanges. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
113
Chapter 8 Treatment DFB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Scale: TeSys U DFB for Measurement Unit Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . .
118
Timestamp_�: TeSys U DFB for Data Time-Stamping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
120
1672609EN-03 01/2020
3
4
1672609EN-03 01/2020
Safety Information
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with the device before trying to install, operate, service, or maintain it. The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure.
PLEASE NOTE
Electrical equipment should be installed, operated, serviced, and maintained only by qualified personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material.
A qualified person is one who has skills and knowledge related to the construction and operation of electrical equipment and its installation, and has received safety training to recognize and avoid the hazards involved.
BEFORE YOU BEGIN
Do not use this product on machinery lacking effective point-of-operation guarding. Lack of effective pointof-operation guarding on a machine can result in serious injury to the operator of that machine.
1672609EN-03 01/2020
5
WARNING
UNGUARDED EQUIPMENT
Do not use this software and related automation equipment on equipment which does not have pointof-operation protection.
Do not reach into machinery during operation.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
This automation equipment and related software is used to control a variety of industrial processes. The type or model of automation equipment suitable for each application will vary depending on factors such as the control function required, degree of protection required, production methods, unusual conditions, government regulations, etc. In some applications, more than one processor may be required, as when backup redundancy is needed.
Only you, the user, machine builder or system integrator can be aware of all the conditions and factors present during setup, operation, and maintenance of the machine and, therefore, can determine the automation equipment and the related safeties and interlocks which can be properly used. When selecting automation and control equipment and related software for a particular application, you should refer to the applicable local and national standards and regulations. The National Safety Council's Accident Prevention Manual (nationally recognized in the United States of America) also provides much useful information.
In some applications, such as packaging machinery, additional operator protection such as point-ofoperation guarding must be provided. This is necessary if the operator's hands and other parts of the body are free to enter the pinch points or other hazardous areas and serious injury can occur. Software products alone cannot protect an operator from injury. For this reason the software cannot be substituted for or take the place of point-of-operation protection.
Ensure that appropriate safeties and mechanical/electrical interlocks related to point-of-operation protection have been installed and are operational before placing the equipment into service. All interlocks and safeties related to point-of-operation protection must be coordinated with the related automation equipment and software programming.
NOTE: Coordination of safeties and mechanical/electrical interlocks for point-of-operation protection is outside the scope of the Function Block Library, System User Guide, or other implementation referenced in this documentation.
START-UP AND TEST Before using electrical control and automation equipment for regular operation after installation, the system should be given a start-up test by qualified personnel to verify correct operation of the equipment. It is important that arrangements for such a check be made and that enough time is allowed to perform complete and satisfactory testing.
WARNING
EQUIPMENT OPERATION HAZARD
Verify that all installation and set up procedures have been completed. Before operational tests are performed, remove all blocks or other temporary holding means used for
shipment from all component devices. Remove tools, meters, and debris from equipment.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Follow all start-up tests recommended in the equipment documentation. Store all equipment documentation for future references.
Software testing must be done in both simulated and real environments.
Verify that the completed system is free from all short circuits and temporary grounds that are not installed according to local regulations (according to the National Electrical Code in the U.S.A, for instance). If highpotential voltage testing is necessary, follow recommendations in equipment documentation to prevent accidental equipment damage.
Before energizing equipment: Remove tools, meters, and debris from equipment. Close the equipment enclosure door.
6
1672609EN-03 01/2020
Remove all temporary grounds from incoming power lines. Perform all start-up tests recommended by the manufacturer.
OPERATION AND ADJUSTMENTS
The following precautions are from the NEMA Standards Publication ICS 7.1-1995 (English version prevails): Regardless of the care exercised in the design and manufacture of equipment or in the selection and
ratings of components, there are hazards that can be encountered if such equipment is improperly operated. It is sometimes possible to misadjust the equipment and thus produce unsatisfactory or unsafe operation. Always use the manufacturer's instructions as a guide for functional adjustments. Personnel who have access to these adjustments should be familiar with the equipment manufacturer's instructions and the machinery used with the electrical equipment. Only those operational adjustments actually required by the operator should be accessible to the operator. Access to other controls should be restricted to prevent unauthorized changes in operating characteristics.
1672609EN-03 01/2020
7
8
1672609EN-03 01/2020
About the Book
At a Glance
Document Scope
This manual describes the DFB (Derived Function Block) library dedicated to TeSys U starter-controllers and TeSys T motor management systems.
It is intended for design engineers and system integrators who have a good knowledge of Unity Pro PLC programming platforms.
The purposes of this manual are to describe the scope of the DFB library and platform compatibility, describe the DFB characteristics and the download procedure from the Schneider Electric website, explain how to implement the DFB in the PLC application.
Validity Note
Library Version V1 V2
This TeSys library is compatible and usable with the following versions of Unity Pro: Unity Pro V2.3 SP2 Unity Pro V3.0 Unity Pro V3.1 Unity Pro V4.0 or later
This manual is valid for all TeSys DFBs. The following table describes the differences between versions 1 and 2 of Unity Pro:
Date 03/2009 09/2009
Evolution
Initial version
Addition of 3 new DFBs for Quantum PLC: Special_mdb_u_addq Special_mdb_t_addq Custom_mdb_addq
Evolution of 2 existing DFBs to be compatible with Quantum PLC: Ctrl_cmd_u Ctrl_cmd_t
Related Documents
Title of Documentation
Reference Number
TeSys U LUCM and LUCMT Multifunction Control Unit User Manual 1743237
TeSys U Communication Variables User Manual
1744082
TeSys U LULC032-033 Modbus Communication Module User M anual
1743234
TeSys U LULC15 Advantys STB Communication Module User Manual
1744083
TeSys U LULC08 CANopen Communication Module User Manual 1744084
TeSys U LULC07 Profibus DP Communication Module User Manual 1672610
TeSys T LTMR Motor Management Controller - User Guide
DOCA0127
TeSys T LTMR Ethernet Communication Guide
DOCA0129
TeSys T LTMR Modbus Communication Guide
DOCA0130
TeSys T LTMR PROFIBUS DP Communication Guide
DOCA0131
TeSys T LTMR CANopen Communication Guide
DOCA0132
LAD9AP3�� Quickfit Instruction Sheet
1568984
LUFC00 Parallel Wiring Module Instruction Sheet
1743239
LU9G02 Splitter Box Instruction Sheet
1638822
LU9G03 Splitter Box Instruction Sheet
AAV90641
1672609EN-03 01/2020
9
You can download these technical publications and other technical information from our website at https://www.se.com/ww/en/download/ .
10
1672609EN-03 01/2020
TeSys DFB Library V2 for Unity Pro Introduction 1672609EN-03 01/2020
Introduction
Chapter 1
Introduction
Introduction
This chapter gives an overview of the TeSys U and TeSys T DFB (Derived Function Block) library, presents the DFB library download procedure from the Schneider Electric website, and describes the sequencing system used to synchronize the treatment between DFBs.
What Is in This Chapter? This chapter contains the following topics:
Presentation TeSys DFB Library Overview TeSys DFB Sequencing
Topic
Page 12 13 17
1672609EN-03 01/2020
11
Introduction
Presentation
Aim of the TeSys DFB Library
The TeSys DFB library has been developed to simplify and optimize the integration of TeSys U startercontrollers and TeSys T motor management systems in PLC applications, for both PLC programmers and end users.
The TeSys DFB library for Unity Pro can be ordered with part number UNYLTSZFUWB.
Advantages for the PLC Programmer
The TeSys DFB library enables the PLC programmer to simplify the program design: the program is split by functions (control, command, data treatment,...), optimize the programming time: the DFB is tested and can be re-used for different applications, increase the program understanding: the applications are coded in the same way using the common
DFB, optimize the program size: the same code is used for each DFB instantiation, simplify the TeSys U and TeSys T integration: the data mapping management is masked.
Advantages for the End User
The TeSys DFB library enables the end user to optimize the communication response time:
the Modbus requests management is optimized, the data exchange management is optimized, the product performance is taken into account,
have a functional view of the motor-starter by providing direct access to common functions (Ready, Alarm, Run, Stop,...),
group data related to a specific application (diagnostic, maintenance, measurement,...) through a program number,
facilitate debugging: variables used by the DFB are identified on its interface.
PLC Platform Compatibility
The TeSys DFB library can be integrated in the Unity Pro programming platform with Quantum, Premium and M340 PLC platforms.
TeSys Compatibility
The TeSys DFB library for Unity Pro is compatible with: TeSys U starter-controllers (up to 38 A/18.5 kW or 25 hp), TeSys T motor management system.
Communication Protocol Compatibility
The following table describes the TeSys DFB library compatibility with communication protocols and the corresponding TeSys U and TeSys T assemblies.
Protocol Modbus SL (Serial Line) Modbus/TCP
Profibus DP
CANopen
Advantys STB with communication module
TeSys U
Starter-controller with LULC033 Modbus communication module
Starter-controller with LULC033 Modbus communication module and Ethernet gateway (TeSysPort, TSXETG100, TSXETG1000,...)
Starter-controller with LULC07 Profibus DP communication module
Starter-controller with LULC08 CANopen communication module
Starter-controller with LULC15 Advantys STB communication module
TeSys T LTMR��M�� Modbus SL controller with or without the LTM E expansion module LTMR��E�� Modbus/TCP controller with or without the LTM E expansion module
LTMR��P�� Profibus DP controller with or without the LTM E expansion module LTMR��C�� CANopen controller with or without the LTM E expansion module �
12
1672609EN-03 01/2020
Introduction
TeSys DFB Library Overview
TeSys DFB Library Organization
The following table lists the TeSys DFB library according to the communication protocol and service and their availability according to the TeSys model:
Communication Protocol / Service
DFB Name
TeSys U up to TeSys U up to TeSys T
32 A
38 A
Modbus SL
Ctrl_cmd_mdb_u_����
�
Comm_manager_u
�
Ctrl_cmd_mdb_t_����
�
�
Comm_manager_t
�
�
Modbus SL and Modbus/TCP Custom_mdb_����
�
Special_mdb_u_����
�
�
Special_mdb_t_����
�
�
Modbus/TCP (for Quantum PLC) Custom_mdb_addq
�
Special_mdb_u_addq
�
�
Special_mdb_t_addq
�
�
Profibus DP
Ctrl_pfb_u_ms
�
Ctrl_pfb_u_mms
�
�
Ctrl_pfb_t_mms
�
�
Cyclic control/command
Ctrl_cmd_u (Modbus/TCP (IO scanning), CANopen, and
�
(Modbus/TCP (IO scanning),
Advantys STB)
CANopen, and Advantys STB) Ctrl_cmd_t (Modbus/TCP (IO scanning) and CANopen) �
�
PKW
Special_pkw_u
�
�
Special_pkw_t
�
�
Custom_pkw
�
Treatment
Timestamp_�
�
�
Scale
�
�
Modbus SL DFB Library The following table describes the Modbus SL (Serial Line) DFB library:
DFB Ctrl_cmd_mdb_u_addr Ctrl_cmd_mdb_u_addm
Comm_manager_u
Description
For More Information
These DFBs are dedicated to the control and command of a single TeSys U starter-controller with any control unit and a LULC033 Modbus communication module. Ctrl_cmd_mdb_u_addr is dedicated to Premium PLC. Ctrl_cmd_mdb_u_addm is dedicated to M340 PLC.
Ctrl_cmd_mdb_u_����: TeSys U Control/Command for Modbus SL, page 22
These DFBs enable the user to read status register 455, write command register 704, reset communication loss (register 703, bit 3).
The program number enables the user to select bit or word control.
This DFB is dedicated to the control and command of up to 31 TeSys U starter-controllers with any control unit and a LULC033 Modbus communication module. It must be associated with the Ctrl_cmd_mdb_u_���� DFBs to manage the Modbus requests sequencing. It enables the user to optimize the response time by taking into account the response time
of the devices, send write requests only when necessary, manage the disconnection and reconnection of a TeSys U Modbus
slave.
Comm_manager_u: TeSys U Communication Management for Modbus SL, page 26
The program number enables the user to select different Modbus request sequences.
1672609EN-03 01/2020
13
Introduction
DFB Ctrl_cmd_mdb_t_addr Ctrl_cmd_mdb_t_addm
Comm_manager_t
Description
For More Information
These DFBs are dedicated to the control and command of a single TeSys T LTMR��M�� Modbus SL controller with or without the LTM E expansion module. Ctrl_cmd_mdb_t_addr is dedicated to Premium PLC. Ctrl_cmd_mdb_t_addm is dedicated to M340 PLC.
Ctrl_cmd_mdb_t_����: TeSys T Control/Command for Modbus SL, page 30
These DFBs enable the user to read status registers 455 and 456, write command register 704.
The program number enables the user to select bit or word control.
This DFB is dedicated to the control and command of several TeSys T LTMR��M�� Modbus SL controllers with or without the LTM E expansion module. It must be associated with the Ctrl_cmd_mdb_t_���� DFBs to manage the Modbus requests sequencing. It enables the user to optimize the response time by taking into account the response time
of the devices, send write requests only when necessary, manage the disconnection and reconnection of a TeSys U Modbus
slave.
Comm_manager_t: TeSys T Communication Management for Modbus SL, page 34
The program number enables the user to select different Modbus requests sequences.
Modbus SL and Modbus/TCP Library The following table describes the Modbus SL and Modbus/TCP library:
DFB Special_mdb_u_addr Special_mdb_u_addm
Special_mdb_t_addr Special_mdb_t_addm
Custom_mdb_addr Custom_mdb_addm
Description
For More Information
These DFBs are dedicated to the reading of up to 16 predefined registers (diagnostic, maintenance, measurement,...) of a TeSys U starter-controller (up to 32 A/15 kW or 20 hp) with a LUCM multifunction control unit and a LULC033 Modbus communication module. The program number enables the user to select the predefined registers. Special_mdb_u_addr is dedicated to Premium PLC and can be used with
a TeSys U starter-controller connected on Modbus Serial Line or through a Modbus/TCP gateway. Special_mdb_u_addm is dedicated to M340 PLC and can be used with
a TeSys U starter-controller connected on Modbus Serial Line or through a Modbus/TCP gateway.
Special_mdb_u_����: TeSys U DFB for Modbus SL and Modbus/TCP, page 40
These DFBs are dedicated to the reading of up to 16 predefined registers (diagnostic, maintenance, measurement,...) of a TeSys T Modbus SL controller or TeSys T Modbus/TCP controller with or without the LTM E expansion module. The program number enables the user to select the predefined registers. Special_mdb_t_addr is dedicated to Premium PLC and can be used with
a TeSys T controller LTMR��M�� connected through Modbus Serial Line or a TeSys T controller LTMR��E�� through a Modbus/TCP network. Special_mdb_t_addm is dedicated to M340 PLC and can be used with a
TeSys T controller LTMR��M�� connected through Modbus Serial Line or a TeSys T controller LTMR��E�� through a Modbus/TCP network.
Special_mdb_t_����: TeSys T DFB for Modbus SL and Modbus/TCP, page 46
These DFBs are dedicated to the reading of up to 5 sets of registers in one single TeSys device. A set of registers is defined by the address of the first register to read and the length of the set (up to 16 registers per set). Custom_mdb_addr is dedicated to Premium PLC and can be used with
a TeSys connected through Modbus Serial Line or through a Modbus/TCP network. Custom_mdb_addm is dedicated to M340 PLC and can be used with a
TeSys connected through Modbus Serial Line or through a Modbus/TCP network.
Custom_mdb_����: Custom Read DFB for Modbus SL and Modbus/TCP, page 58
14
1672609EN-03 01/2020
Introduction
Modbus/TCP Quantum Library The following table describes the Modbus/TCP DFB library dedicated to Quantum PLC:
DFB Special_mdb_u_addq
Special_mdb_t_addq
Custom_mdb_addq
Description
For More Information
This DFB is dedicated to the reading of up to 16 predefined registers (diagnostic, maintenance, measurement,...) in a TeSys U starter-controller (up to 32 A/15 kW or 20 hp) with a LUCM multifunction control unit and a LULC033 Modbus communication module through a Modbus/TCP gateway connected to a Quantum PLC. The program number enables the user to select the predefined registers.
Special_mdb_u_addq: TeSys U DFB for Modbus/TCP for Quantum PLC, page 62
This DFB is dedicated to the reading of up to 16 predefined registers (diagnostic, maintenance, measurement,...) in a TeSys T Modbus/TCP LTMR��E�� controller with or without the LTM E expansion module connected to a Quantum PLC. The program number enables the user to select the predefined registers.
Special_mdb_t_addq: TeSys T DFB for Modbus/TCP for Quantum PLC, page 68
This DFB is dedicated to the reading of up to 5 sets of registers in one single TeSys device connected through Modbus/TCP to a Quantum PLC. A set of registers is defined by the address of the first register to read and the length of the set (up to 16 registers per set).
Custom_mdb_addq: Custom Read DFB for Modbus/TCP for Quantum PLC, page 78
Profibus DP DFB Library The following table describes the Profibus DP DFB library:
DFB Ctrl_pfb_u_ms Ctrl_pfb_u_mms
Ctrl_pfb_t_ms
Description
For More Information
This DFB is dedicated to the control and command of a single TeSys U starter-controller with any control unit and a LULC07 Profibus DP communication module using the Motor Starter profile.
Ctrl_pfb_u_ms: TeSys U Control/Command for Profibus DP MS, page 82
This DFB is dedicated to the control and command of a single TeSys U starter-controller (up to 32 A/15 kW or 20 hp) with a LUCM multifunction control unit and a LULC07 Profibus DP communication module using the Motor Management Starter profile.
Ctrl_pfb_u_mms: TeSys U Control/Command for Profibus DP MMS, page 84
This DFB is dedicated to the control and command of a single TeSys T Ctrl_pfb_t_mms: TeSys T LTMR��P�� Profibus controller with or without the LTM E expansion module. Control/Command for Profibus DP
MMS, page 86
Cyclic Control/Command DFB Library
The following table describes the cyclic control/command (Modbus/TCP (IO scanning), CANopen, and Advantys STB) DFB library:
DFB Ctrl_cmd_u
Ctrl_cmd_t
Description
For More Information
This DFB is dedicated to the control and command of a single TeSys U starter-controller with any control unit and a LULC08 CANopen, a LULC15 STB communication module, or a LULC033 Modbus communication module with an Ethernet gateway.
Ctrl_cmd_u: TeSys U Cyclic Control/Command, page 90
This DFB is dedicated to the control and command of a single TeSys T LTMR��C�� CANopen controller or a TeSys T LTMR��E�� Modbus/TCP controller, with or without the LTM E expansion module.
Ctrl_cmd_t: TeSys T Cyclic Control/Command, page 92
1672609EN-03 01/2020
15
Introduction
PKW DFB Library The following table describes the PKW DFB library:
DFB Special_pkw_u
Special_pkw_t Custom_pkw
Description
For More Information
This DFB is dedicated to the reading of up to 16 predefined registers (diagnostic, maintenance, measurement,...) of a single TeSys U startercontroller (up to 32 A/15 kW or 20 hp) with a LUCM multifunction control unit and one of the following communication modules that support PKW exchanges: LULC07 (Profibus DP) LULC08 (CANopen) LULC15 (Advantys STB)
Special_pkw_u: TeSys U DFB for PKW Exchanges, page 96
The program number enables the user to select the predefined registers.
This DFB is dedicated to the reading of up to 16 predefined registers (diagnostic, maintenance, measurement,...) of a single TeSys T LTMR��P�� Profibus controller or a LTMR��C�� CANopen controller with or without the LTM E expansion module. The program number enables the user to select the predefined registers.
Special_pkw_t: TeSys T DFB for PKW Exchanges, page 102
This DFB is dedicated to the reading of up to 5 sets of registers of a single TeSys device supporting PKW exchanges. A set of registers is defined by the address of the first register to read and the length of the set (up to 16 registers per set).
Custom_pkw: Custom Read DFB for PKW Exchanges, page 113
Treatment DFB Library The following table describes the treatment DFB library:
DFB Scale
Timestamp Timestamp_q
Description
For More Information
This DFB is dedicated to the conversion of current measurement unit from relative value (% FLA) to Amps for a TeSys U starter-controller (up to 32 A/15 kW or 20 hp) with a LUCM multifunction control unit. It also enables the user to select another unit in the A...mA range.
Scale: TeSys U DFB for Measurement Unit Conversion, page 118
These DFBs are dedicated to the time-stamping of up to 8 input registers of a TeSys U starter-controller (up to 32 A/15 kW or 20 hp) with a LUCM multifunction control unit. It provides an output table of the 8 time-stamped registers and 4 date and time registers. Timestamp is dedicated to Premium and M340 PLCs Timestamp_q is dedicated to Quantum PLC.
Timestamp_�: TeSys U DFB for Data Time-Stamping, page 120
16
1672609EN-03 01/2020
Introduction
TeSys DFB Sequencing
Introduction
Some of the TeSys DFBs use a sequencing system using dedicated inputs and outputs that enable the sequencing and the synchronization of the treatment between DFBs.
The following derived function blocks use a sequencing system: Ctrl_cmd_mdb_u_���� Ctrl_cmd_mdb_t_���� Special_mdb_u_���� Special_mdb_t_���� Custom_mdb_���� Special_pkw_u Special_pkw_t Custom_pkw Timestamp_�
Sequencing System Principle The sequencer has 2 boolean inputs and 3 boolean outputs:
Input/Output Rst_cmd Strt_cmd Fault_st
Rst_st
End_st
The _cmd suffix indicates a command dedicated to the DFB sequencer function. The _st suffix indicates a status information concerning the DFB sequencer function.
The following table describes the sequencer inputs and outputs:
Description This command resets the DFB and/or restarts the DFB treatment if Strt_cmd is set to 1. This command starts the DFB treatment. This status bit indicates a parameterization error (value out of range), a communication fault.
If a fault occurs, the applicative boolean outputs are reset to 0, and the output words are forced to �1. This status bit indicates a reset in progress, a treatment in progress.
This status bit indicates the end of the DFB treatment.
Stand-Alone with Manual Restart
In the stand-alone with manual restart configuration, the DFB is not linked to another DFB and it is activated each time %M0 is set to 1:
1672609EN-03 01/2020
17
Introduction
Stand-Alone with Automatic Restart In the stand-alone with automatic restart configuration, the DFB is not linked to another DFB and it is activated continuously when %M0 is set to 1:
DFB Chaining with Manual Restart In the DFB chaining with manual restart configuration, the DFB is linked to other DFBs and it is activated each time %M0 is set to 1:
18
1672609EN-03 01/2020
Introduction
DFB Chaining with Automatic Restart In the DFB chaining with automatic restart configuration, the DFB is linked to other DFBs and it is activated continuously when %M0 is set to 1:
1672609EN-03 01/2020
19
Introduction
20
1672609EN-03 01/2020
TeSys DFB Library V2 for Unity Pro Modbus SL DFB 1672609EN-03 01/2020
Modbus SL DFB
Chapter 2
Modbus SL DFB
Introduction
This chapter describes the TeSys U and TeSys T Modbus SL (Serial Line) DFBs.
What Is in This Chapter? This chapter contains the following topics:
Topic Ctrl_cmd_mdb_u_����: TeSys U Control/Command for Modbus SL Comm_manager_u: TeSys U Communication Management for Modbus SL Ctrl_cmd_mdb_t_����: TeSys T Control/Command for Modbus SL Comm_manager_t: TeSys T Communication Management for Modbus SL
Page 22 26 30 34
1672609EN-03 01/2020
21
Modbus SL DFB
Ctrl_cmd_mdb_u_����: TeSys U Control/Command for Modbus SL
Presentation
The Ctrl_cmd_mdb_u_���� DFBs are dedicated to the control and command of a single TeSys U startercontroller with any control unit and a LULC033 Modbus communication module through the Modbus SL (Serial Line) network.
Ctrl_cmd_mdb_u_addr uses XWAY addressing and is dedicated to Premium PLCs. Ctrl_cmd_mdb_u_addm uses an addressing method dedicated to M340 PLCs.
For more information, see the TeSys U LULC032-033 Modbus Communication Module User Manual.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Ctrl_cmd_mdb_u_addr 1.00 11 13 0 6
Ctrl_cmd_mdb_u_addm 1.00 11 13 0 8
Graphical Representation
TeSys U Compliance The Ctrl_cmd_mdb_u_���� DFBs are compliant with the following TeSys U sub-assemblies:
Power base Control unit
Communication module
LUB�� non-reversing power base LU2B�� reversing power base
LUCA standard control unit LUCB and LUCD advanced control units LUCC advanced control unit (up to 32 A/15 kW or 20 hp) LUCL magnetic control unit LUCM multifunction control unit (up to 32 A/15 kW or 20 hp)
LULC033 Modbus communication module
22
1672609EN-03 01/2020
Modbus SL DFB
Software Implementation
The parameters and the inputs can only be changed if the End_st output variable is set to 1. The output data is only valid if the End_st output variable is set to 1 and if there is no fault detected
(Fault_st = 0).
Input Characteristics The following table describes the DFB inputs and their availability according to the control unit:
Input
Type
Slav_num Prog_num Rst_cmd Strt_cmd Run_fwd Run_rev Rst_flt
INT INT EBOOL EBOOL EBOOL EBOOL EBOOL
Rst_warn
Ther_ov Trip_tst In_word
EBOOL
EBOOL EBOOL INT
Range
1...31 1...30 0...1 0...1 0...1 0...1 0...1
0...1
0...1 0...1 �
Default Value Description
LUCA LUCL
1
Modbus slave number
�
See Program Number, page 23
0
Reset command
0
Start command
0
Motor run forward command
0
Motor run reverse command
0
Reset device (if register 451 = 102 or 104, fault
acknowledgment causes a return to
communication module factory settings)
0
Reset warning (for example, communication
loss)
0
Automatic thermal overload fault test
�
0
Overcurrent trip test via communication bus �
�
This input is only used when program number �
is 10, 20, or 30. See next table and program
number description.
LUCB LUCC LUCD
� � �
LUCM
�
Input In_word
The following table describes the In_word input:
Type
Bit
Description
LUCA LUCL
INT
0
Motor run forward command
1
Motor run reverse command
2
Reserved
�
3
Reset device (if register 451 = 102 or 104, fault
acknowledgment causes a return to communication module
factory settings)
4
Reserved
�
5
Automatic thermal overload fault test
�
6
Overcurrent trip test via communication bus
�
7
Reserved
�
8
Reset warning (for example, communication loss)
9...15
Reserved
�
LUCB LUCC LUCD �
� � � � �
LUCM
�
� � �
Program Number
The program number enables the user to select bit or word control. The following table describes the programs of the DFB:
Program Number 1 2 3 10 20 30
Description Read registers 455 and 456, then write register 704 (systematic) Read registers 455 and 456, then write register 704 (conditional) Write register 704 Same as program 1 but using the In_word input and the Out_word output Same as program 2 but using the In_word input and the Out_word output Same as program 3 but using the In_word input and the Out_word output
1672609EN-03 01/2020
23
Modbus SL DFB
Output Characteristics The following table describes the DFB outputs and their availability according to the control unit:
Output
Type
Fault_st Rst_st End_st Ready
Closed Fault Alarm Tripped
Rst_auth Starting
EBOOL EBOOL EBOOL EBOOL
EBOOL EBOOL EBOOL EBOOL
EBOOL EBOOL
Running
Avg_curr Out_word
EBOOL
INT INT
Range
0...1 0...1 0...1 0...1
0...1 0...1 0...1 0...1
0...1 0...1
0...1
0...200 �
Default Value
0 0 0 0
0 0 0 0
0 0
0
0 �
Description
LUCA LUCL
Fault detected
Reset state
End state
System ready: the rotary handle is turned to On position and there is no fault
Pole status: closed
All faults
All warnings
System tripped: the rotary handle is turned to Trip position
Fault reset authorized
�
Start in progress:
�
0 = descending current is lower than 150% FLA
1 = ascending current is greater than 10% FLA
Motor running with detection of current, if
�
greater than 10% FLA
Average motor current (x 1% FLA)
�
This output is only used when program number � is 10, 20, or 30. See next table and program number description.
LUCB LUCC LUCD
�
LUCM
�
The following table describes the Out_word output:
Output
Type
Out_word INT
Bit
0
1 2 3 4 5 6 7
8...13
14 15
Description
LUCA LUCL
System ready: the rotary handle is turned to On position and there is no fault.
Pole status: closed
All faults
All warnings
System tripped: the rotary handle is turned to Trip position.
Fault reset authorized
�
Reserved
�
Motor running with detection of current, if greater than
�
10% FLA
Average motor current (% FLA)
�
32 = 100% FLA
63 = 200% FLA
Reserved
�
Start in progress:
�
0 = descending current is lower than 150% FLA
1 = ascending current is greater than 10% FLA
LUCB LUCC LUCD
�
�
LUCM
�
�
24
1672609EN-03 01/2020
Modbus SL DFB
Public Variables Characteristics
The following table describes the Ctrl_cmd_mdb_u_addr DFB public variables (using XWAY addressing) and their availability according to the control unit:
Public Variable
Type
Net_num
INT
Stat_num
INT
Rack_num
INT
Slot_num
INT
Chan_num
INT
Sq_princ
INT
Range
0...255 0...255 0...7 0...10 0...1 0...7
Default Value
Description
0
Network address
0
Station address
0
Destination rack address
0
Destination slot address
0
Destination channel address
0
Reserved for support
LUCA LUCL
LUCB LUCC LUCD
LUCM
The following table describes the Ctrl_cmd_mdb_u_addm DFB public variables (using M340 addressing) and their availability according to the control unit:
Public Variable
Type
Rack_num
INT
Slot_num
INT
Chan_num
INT
IP_addr1
INT
IP_addr2
INT
IP_addr3
INT
IP_addr4
INT
Sq_princ
INT
Range
0...7 0...10 0...1 0...255 0...255 0...255 0...255 0...7
Default Value
Description
0
Destination rack address
0
Destination slot address
0
Destination channel address
0
First byte of IP address
0
Second byte of IP address
0
Third byte of IP address
0
Fourth byte of IP address
0
Reserved for support
LUCA LUCL
LUCB LUCC LUCD
LUCM
1672609EN-03 01/2020
25
Modbus SL DFB
Comm_manager_u: TeSys U Communication Management for Modbus SL
Presentation
The Comm_manager_u DFB is dedicated to the control and command of up to 31 TeSys U startercontrollers with any control unit and a LULC033 Modbus communication module though the Modbus SL (Serial Line) network. It must be associated with the Ctrl_cmd_mdb_u_���� DFBs to manage the Modbus requests sequencing.
The number of TeSys U Modbus slaves is defined in the Slav_num variable (Slav_num = 1...31).
For more information, see the TeSys U LULC032-033 Modbus Communication Module User Manual.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Comm_manager_u 1.00 4 4 0 3
Graphical Representation
TeSys U Compliance The Comm_manager_u DFB is compliant with the following TeSys U sub-assemblies:
Power base Control unit
Communication module
LUB�� non-reversing power base LU2B�� reversing power base
LUCA standard control unit LUCB and LUCD advanced control units LUCC advanced control unit (up to 32 A/15 kW or 20 hp) LUCL magnetic control unit LUCM multifunction control unit (up to 32 A/15 kW or 20 hp)
LULC033 Modbus communication module
26
1672609EN-03 01/2020
Modbus SL DFB
Software Implementation The following figure shows a Unity Pro program extract in FBD language showing how to interconnect the Ctrl_cmd_mdb_u_addr and the Comm_manager_u DFBs:
Input Characteristics The following table describes the DFB inputs:
Input Slav_num Flt_cmd Strt_cmd In_word
Type INT EBOOL EBOOL INT
Range 1...31 0...1 0...1 �
Default Value 1 0 0 �
Description Modbus slave number Reset command Start command To connect to the Out_word output of the Ctrl_cmd_mdb_u_���� DFB
Output Characteristics The following table describes the DFB outputs:
Output Slav_st Prog_st End_st Out_word
Type INT INT EBOOL INT
Range 1...31 20 or 30 0...1 �
Default Value 1 � 0 �
Description Modbus slave number Program number of the Ctrl_cmd_mdb_u_���� DFB End state To connect to the In_word input of the Ctrl_cmd_mdb_u_���� DFB
1672609EN-03 01/2020
27
Modbus SL DFB
Public Variables Characteristics The following table describes the DFB public variables:
Public Variable In_cmd[0]...[31]
Type ARRAY [0...31] of INT
Range �
Default Value �
Out_urg
INT
�
�
Out_st[0]...[31]
ARRAY [0...31] of INT
�
�
Description
See In_cmd[0]...[31] Public Variable, page 28
Priority level Bit 0 = Pulling Bit 1 = Writing priority Bit 2 = Reading priority Bit 3 = Fault priority
See Out_st[0]...[31] Public Variable, page 29
In_cmd[0]...[31] Public Variable
The In_cmd[0]...[31] public variable is a table of 32 words corresponding to the TeSys U Modbus slave address. The following table describes the In_cmd[0]...[31] public variable:
Public Variable
In_cmd[0] In_cmd[1]...[31]
Type
INT INT
Bit
� 0 1 2 3
4 5 6 7 8
9...15
Description Corresponding to the TeSys U Slave 1...31
LUCA LUCL
Not significant
�
Motor run forward command
Motor run reverse command
Reserved
�
Reset device
(if register 451 = 102 or 104, fault
acknowledgment causes a return to
communication module factory settings)
Reserved
�
Automatic thermal overload fault test
�
Overcurrent trip test via communication bus
�
Reserved
�
Reset warning (for example, communication loss)
Reserved
�
LUCB LUCC LUCD � �
� � � �
�
LUCM
� �
� �
�
28
1672609EN-03 01/2020
Modbus SL DFB
Out_st[0]...[31] Public Variable
The Out_st[0]...[31] public variable is a table of 32 words corresponding to the TeSys U Modbus slave address.The following table describes the Out_st[0]....[31] public variable:
Public Variable
Out_st[0] Out_st[1]...[31]
Type
INT INT
Bit
� 0
1 2 3 4
5 6 7
8...13
14 15
Description Corresponding to the TeSys U Slave LUCA
1...31
LUCL
Not significant
�
System ready: the rotary handle is turned to On position and there is no fault.
Pole status: closed
All faults
All warnings
System tripped: the rotary handle is turned to Trip position.
Fault reset is authorized
�
Reserved
�
Motor running with detection of current, if greater � than 10% FLA
Average motor current (% FLA)
�
32 = 100% FLA
63 = 200% FLA
Reserved
�
Start in progress:
�
1 = ascending current is greater than 10% FLA
0 = descending current is lower than 150% FLA
LUCB LUCC LUCD �
�
�
LUCM
�
�
�
1672609EN-03 01/2020
29
Modbus SL DFB
Ctrl_cmd_mdb_t_����: TeSys T Control/Command for Modbus SL
Presentation
The Ctrl_cmd_mdb_t_���� DFBs are dedicated to the control and command of a single TeSys T LTMR��M�� Modbus SL controller with or without the LTM E expansion module through the Modbus SL network.
Ctrl_cmd_mdb_t_addr uses XWAY addressing and is dedicated to Premium PLCs Ctrl_cmd_mdb_t_addm uses an addressing method dedicated to M340 PLCs
For more information, see the TeSys T LTMR Modbus Communication Guide.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Ctrl_cmd_mdb_t_addr 1.00 10 24 0 6
Ctrl_cmd_mdb_t_addm 1.00 10 24 0 8
Graphical Representation
30
1672609EN-03 01/2020
Modbus SL DFB
TeSys T Compliance
The Ctrl_cmd_mdb_t_���� DFBs are compliant with all the TeSys T LTM R��M�� controller versions, with or without the LTM E expansion module.
Software Implementation
The parameters and the inputs can only be changed if the End_st output variable is set to 1. The output data is only valid if the End_st output variable is set to 1 and if there is no fault detected
(Fault_st = 0).
Input Characteristics The following table describes the DFB inputs:
Input Slav_num Prog_num Rst_cmd Strt_cmd Run_fwd Run_rev Rst_flt Autotest Lo_speed In_word
Type INT INT EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL INT
Range 1...31 1...30 0...1 0...1 0...1 0...1 0...1 0...1 0...1 �
Default Value 1 � 0 0 0 0 0 0 0 �
Input In_word
The following table describes the In_word input:
Type INT
Bit 0 1 2 3 4 5 6 7...15
Description Motor run forward command Motor run reverse command Reserved Fault reset command Reserved Self test command Motor low speed command Reserved
Description Modbus slave number See Program Number, page 31 Reset command Start command Motor run forward command Motor run reverse command Fault reset command Self test command Motor low speed command This input is only used when program number is 10, 20, or 30. See next table and program number description.
Program Number
The program number enables the user to select bit or word control. The following table describes the programs of the DFB:
Program Number 1 2 3 10 20 30
Description Read registers 455 and 456, then write register 704 (systematic) Read registers 455 and 456, then write register 704 (conditional) Write register 704 Same as program 1 but using the In_word input and the Out_word output Same as program 2 but using the In_word input and the Out_word output Same as program 3 but using the In_word input and the Out_word output
1672609EN-03 01/2020
31
Modbus SL DFB
Output Characteristics The following table describes the DFB outputs:
Output Fault_st Rst_st End_st Ready Syst_on Fault Alarm Tripped Rst_auth Ctrl_pwr Running Avg_curr Starting
Hi_speed Hmi_ctrl Auto_rst Pwr_rqst Rst_Time Rpd_cycl Load_shd Hmi_loss Net_loss Motor_tr Out_word
Type EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL INT EBOOL
Range 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...200 0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
DINT
�
Default Value 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 �
Description Fault detected Reset state End state System ready System On System fault System warning System tripped Fault reset authorized Controller power Motor running (with detection of a current, if greater than 10% FLC) Motor average current ratio (x 1% FLC) Motor starting (start in progress) 0 = descending current is less than 150% FLC 1 = ascending current is greater than 10% FLC Motor high speed Control through HMI Auto-reset active Power cycle requested Motor restart time undefined Rapid cycle lockout Load shedding HMI port communication loss Network port communication loss Motor transition lockout This output is only used when program number is 10, 20, or 30. See next table and program number description.
32
1672609EN-03 01/2020
Modbus SL DFB
Output Out_word
The following table describes the Out_word output:
Type DINT
Bit 0 1 2 3 4 5 6 7 8...13
14 15
16 17 18 19 20 21 22
23 24 25 26...31
Description System ready System On System fault System warning System tripped Fault reset authorized Controller power Motor running (with detection of a current, if greater than 10% FLC) Motor average current ratio 32 = 100% FLC 63 = 200% FLC Control through HMI Motor starting (start in progress) 0 = descending current is less than 150% FLC 1 = ascending current is greater than 10% FLC Auto-reset active Not significant Power cycle requested Motor restart time undefined Rapid cycle lockout Load shedding Motor speed 0 = FLC1 setting is used 1 = FLC2 setting is used HMI port communication loss Network port communication loss Motor transition lockout Not significant
Public Variables Characteristics The following table describes the Ctrl_cmd_mdb_t_addr DFB public variables (using XWAY addressing):
Public Variable Net_num Stat_num Rack_num Slot_num Chan_num Sq_princ
Type INT INT INT INT INT INT
Range 0...255 0...255 0...7 0...10 0...1 0...7
Default Value 0 0 0 0 0 0
Description Network address Station address Destination rack address Destination slot address Destination channel address Reserved for support
The following table describes the Ctrl_cmd_mdb_t_addm DFB public variables (using M340 addressing):
Public Variable Rack_num Slot_num Chan_num IP_addr1 IP_addr2 IP_addr3 IP_addr4 Sq_princ
Type INT INT INT INT INT INT INT INT
Range 0...7 0...10 0...1 0...255 0...255 0...255 0...255 0...7
Default Value 0 0 0 0 0 0 0 0
Description Destination rack address Destination slot address Destination channel address First byte of IP address Second byte of IP address Third byte of IP address Fourth byte of IP address Reserved for support
1672609EN-03 01/2020
33
Modbus SL DFB
Comm_manager_t: TeSys T Communication Management for Modbus SL
Presentation
The Comm_manager_t DFB is dedicated to the control and command of up to 31 TeSys T LTMR��M�� Modbus SL controllers with or without the LTM E expansion module through the Modbus SL network. It must be associated with the Ctrl_cmd_mdb_t_���� DFB to manage the Modbus requests sequencing.
The number of TeSys T Modbus slaves is define din the Slav_num variable (Slav_num = 1...31).
For more information, see the TeSys T LTMR Modbus Communication Guide.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Comm_manager_t 1.0 4 4 0 3
Graphical Representation
TeSys T Compliance
The Comm_manager_t DFB is compliant with all the TeSys T LTM R��M�� controller versions, with or without the LTM E expansion module.
34
1672609EN-03 01/2020
Modbus SL DFB
Software Implementation The following figure shows a Unity Pro program extract in FBD language showing how to interconnect the Ctrl_cmd_mdb_t and the Comm_manager_t DFBs:
The Comm_manager_t DFB can be used in case both TeSys U starter-controllers and TeSys T motor management systems are present on the same Modbus SL network.
Input Characteristics The following table describes the DFB inputs:
Input Slav_num Flt_cmd Strt_cmd In_word
Type INT EBOOL EBOOL DINT
Range 1...31 0...1 0...1 �
Default Value 1 0 0 �
Description Modbus slave number Reset command Start command To connect to the Out_word output of the Ctrl_cmd_mdb_t_���� DFB
1672609EN-03 01/2020
35
Modbus SL DFB
Output Characteristics The following table describes the DFB outputs:
Output Slav_st Prog_st End_st Out_word
Type INT INT EBOOL INT
Range 1...31 20 or 30 0...1 �
Default Value 1 � 0 �
Description Modbus slave number Program number of the Ctrl_cmd_mdb_t_���� DFB End state To connect to the In_word input of the Ctrl_cmd_mdb_t_���� DFB
Public Variables Characteristics The following table describes the DFB public variables:
Public Variable In_cmd[0]...[31] Out_urg
Type ARRAY [0...31] of INT INT
Range � �
Default Value � �
Out_st[0]...[31]
ARRAY [0...31] of DINT
�
�
Description
See In_cmd[0]...[31] Public Variable, page 36
Priority level Bit 0 = Pulling Bit 1 = Writing priority Bit 2 = Reading priority Bit 3 = Fault priority
See Out_st[0]...[31] Public Variable, page 37
In_cmd[0]...[31] Public Variable
The In_cmd[0]...[31] public variable is a table of 32 words corresponding to the TeSys T Modbus slave address. The following table describes the In_cmd[0]...[31] public variable:
Public Variable In_cmd[0] In_cmd[1]...[31]
Type INT INT
Bit � 0 1 2 3 4 5 6 7...31
Description Corresponding to the TeSys T Slave 1...31 Not significant Motor run forward command Motor run reverse command Reserved Fault reset command Reserved Self test command Motor low speed command Reserved
36
1672609EN-03 01/2020
Modbus SL DFB
Out_st[0]...[31] Public Variable
The Out_st[0]...[31] public variable is a table of 32 words corresponding to the TeSys T Modbus slave address.The following table describes the Out_st[0]....[31] public variable:
Public Variable
Out_st[0] Out_st[1]...[31]
Type
DINT DINT
Bit
� 0 1 2 3 4 5 6 7 8...13
14 15
16 17 18 19 20 21 22
23 24 25 26...31
Description Corresponding to the TeSys T Slave 1...31 Not significant System ready System On System fault System warning System tripped Fault reset authorized Controller power Motor running (with detection of a current, if greater than 10% FLC) Motor average current ratio 32 = 100% FLC 63 = 200% FLC Control through HMI Motor starting (start in progress) 0 = descending current is less than 150% FLC 1 = ascending current is greater than 10% FLC Auto-reset active Not significant Power cycle requested Motor restart time undefined Rapid cycle lockout Load shedding Motor speed 0 = FLC1 setting is used 1 = FLC2 setting is used HMI port communication loss Network port communication loss Motor transition lockout Not significant
1672609EN-03 01/2020
37
Modbus SL DFB
Public Variable Out_st[0] Out_st[1]...[31]
The Out_st[0]...[31] public variable is a table of 32 words corresponding to the TeSys T Modbus slave address.The following table describes the Out_st[0]....[31] public variable:
Type
DINT DINT
Bit
� 0 1 2 3 4 5 6 7 8...13
14 15
16 17 18 19 20 21 22
23 24 25 26...31
Description Corresponding to the TeSys T Slave 1...31 Not significant System ready System On System fault System warning System tripped Fault reset authorized Controller power Motor running (with detection of a current, if greater than 10% FLC) Motor average current ratio 32 = 100% FLC 63 = 200% FLC Control through HMI Motor starting (start in progress) 0 = descending current is less than 150% FLC 1 = ascending current is greater than 10% FLC Auto-reset active Not significant Power cycle requested Motor restart time undefined Rapid cycle lockout Load shedding Motor speed 0 = FLC1 setting is used 1 = FLC2 setting is used HMI port communication loss Network port communication loss Motor transition lockout Not significant
38
1672609EN-03 01/2020
TeSys DFB Library V2 for Unity Pro Modbus SL and Modbus/TCP DFB 1672609EN-03 01/2020
Modbus SL and Modbus/TCP DFB
Chapter 3
Modbus SL and Modbus/TCP DFB
Introduction
This chapter describes the TeSys U and TeSys T Modbus SL and Modbus/TCP DFBs dedicated to Premium and M340 PLCs.
What Is in This Chapter? This chapter contains the following topics:
Topic Special_mdb_u_����: TeSys U DFB for Modbus SL and Modbus/TCP Special_mdb_t_����: TeSys T DFB for Modbus SL and Modbus/TCP Custom_mdb_����: Custom Read DFB for Modbus SL and Modbus/TCP
Page 40 46 58
1672609EN-03 01/2020
39
Modbus SL and Modbus/TCP DFB
Special_mdb_u_����: TeSys U DFB for Modbus SL and Modbus/TCP
Presentation Characteristics
The Special_mdb_u_���� DFBs are dedicated to the reading of up to 16 predefined registers of a TeSys U starter-controller (up to 32 A/15 kW or 20 hp) equipped with a LUCM multifunction control unit and a LULC033 Modbus communication module directly through a Modbus SL network or through an Ethernet gateway with a Modbus/TCP network.
Special_mdb_u_addr uses XWAY addressing and is dedicated to Premium PLCs and can be used with a TeSys U starter-controller connected on Modbus Serial Line or through a Modbus/TCP gateway.
Special_mdb_u_addm uses an addressing method dedicated to M340 PLCs and can be used with a TeSys U starter-controller connected on Modbus Serial Line or through a Modbus/TCP gateway.
For more information, see the TeSys U LULC032-033 Modbus Communication Module User Manual.
Characteristic Name Version Input Output Input/Output Public Variable
Value Special_mdb_u_addr 1.00 and 1.10 4 3 0 7
Special_mdb_u_addm 1.00 and 1.10 4 3 0 9
Graphical Representation
TeSys U Compliance The Special_mdb_u_���� DFBs are compliant with the following TeSys U sub-assemblies:
Power base
Control unit Communication module
LUB�� non-reversing power base (up to 32 A/15 kW or 20 hp) LU2B�� reversing power base (up to 32 A/15 kW or 20 hp)
LUCM multifunction control unit
LULC033 Modbus communication module
Software Implementation
The parameters and the inputs can only be changed if the End_st output variable is set to 1. With version 1.00:
The output data is only valid if the End_st output variable is set to 1 and if there is no fault detected (Fault_st = 0). With version 1.10: The output data is only valid if there is no fault detected (Fault_st = 0). Prog_num input can be modified on the fly.
40
1672609EN-03 01/2020
Modbus SL and Modbus/TCP DFB
Input Characteristics The following table describes the DFB inputs:
Input Slav_num Prog_num
Rst_cmd Strt_cmd
Type INT INT
EBOOL EBOOL
Range 1...31 0...6
0...1 0...1
Default Value 1 0
0 0
Description Modbus slave number Program number See Program Number, page 41 Reset command Start command
Output Characteristics The following table describes the DFB outputs:
Output Fault_st Rst_st End_st
Type EBOOL EBOOL EBOOL
Range 0...1 0...1 0...1
Default Value 0 0 0
Description Fault detected Reset state End state
Program Number
The Prog_num input variable enables the user to define the public variables data depending on the application type. Each program uses variables related to one application (diagnostic, maintenance, measurement,...). The following table describes the programs of the DFB:
Program Number 0 1 2 3 4 5 6
Description Bypass: no action Diagnostic: faults monitoring variables, warnings monitoring variables, and communication monitoring variables Maintenance: global statistics variables Measurements: measurements monitoring variables Statistics: last trip statistics and trip N�1 statistics Statistics: trip N�2 statistics and trip N�3 statistics Statistics: trip N�4 statistics
Public Variables Characteristics The following table describes the Special_mdb_u_addr DFBs public variables (using XWAY addressing):
Public Variable Net_num Stat_num Rack_num Slot_num Chan_num Sq_princ Out_data[0]...[15]
Type INT INT INT INT INT INT ARRAY [0...15] of INT
Range 0...255 0...255 0...7 0...10 0...1 0...7 0...65535
Default Value 0 0 0 0 0 0 0
Description
Network address
Station address
Destination rack address
Destination slot address
Destination channel address
Reserved for support
The output data depends on the program number. See Out_data[0]...[15] Public Variable (Program 1), page 42...Out_data[0]...[15] Public Variable (Program 6), page 45
Public Variable Rack_num Slot_num Chan_num IP_addr1 IP_addr2 IP_addr3
The following table describes the Special_mdb_u_addm DFB public variables (using M340 addressing):
Type INT INT INT INT INT INT
Range 0...7 0...10 0...1 0...255 0...255 0...255
Default Value 0 0 0 0 0 0
Description Destination rack address Destination slot address Destination channel address First byte of IP address Second byte of IP address Third byte of IP address
1672609EN-03 01/2020
41
Modbus SL and Modbus/TCP DFB
Public Variable IP_addr4 Sq_princ Out_data[0]...[15]
Type
Range
INT
0...255
INT
0...7
ARRAY [0...15] of INT 0...65535
Default Value 0 0 0
Description
Fourth byte of IP address
Reserved for support
The output data depends on the program number. See Out_data[0]...[15] Public Variable (Program 1), page 42...Out_data[0]...[15] Public Variable (Program 6), page 45
Out_data[0]...[15] Public Variable (Program 1)
The following table describes the Out_data[0]...[15] public variable in the case of the diagnostic program (program number 1):
Public Variable Out_data[0]
Out_data[1]
Out_data[2] Out_data[3] Out_data[4] ...Out_data[15]
Type INT
INT
INT INT �
Register 452
461
457 450 �
Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0...1 2 3 4 5 6 7 8...9 10 11 12 13...14 15 0 1 2 3 4...15 � �
Description Short-circuit fault Magnetic fault Ground fault Thermal fault Long start fault Jam fault Phase imbalance fault Underload fault Shunt trip fault Test trip fault Communication loss fault on LUCM Modbus port Control unit internal fault Module identification or internal communication fault Module internal fault Module trip fault Module drop-out fault Not significant Ground fault warning Thermal warning Long start warning Jam warning Phase imbalance warning Under-current warning Not significant Communication loss fault on LUCM Modbus port Internal temperature warning Module identification or internal communication warning Not significant Module warning Button position On (0 = Off) Button position Trip (0 = Not tripped) Contactor state On 24 Vdc power supply present on outputs Not significant Time to automatic reset on a thermal fault (s) Not significant
42
1672609EN-03 01/2020
Modbus SL and Modbus/TCP DFB
Out_data[0]...[15] Public Variable (Program 2)
The following table describes the Out_data[0]...[15] public variable in the case of the maintenance program (program number 2):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT INT �
Register 100 101 102 103 104 105 106 108 115 116 117 118 119 120 121 �
Description Short-circuit faults count Magnetic faults count Ground faults count Thermal faults count Long start faults count Jam faults count Phase imbalance faults count Shunt trip faults count Auto-resets count Thermal warnings count Starts count (LSB) Starts count (MSB) Operating time (LSB) Operating time (MSB) Maximum internal temperature (�C) Not significant
Out_data[0]...[15] Public Variable (Program 3)
The following table describes the Out_data[0]...[15] public variable in the case of the measurements program (program number 3):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] ...Out_data[13] Out_data[14]
Out_data[15]
Type � INT INT INT INT INT INT INT INT �
INT
INT
Register � 465 466 467 468 469 470 471 472 �
79
652
Description Not significant Thermal capacity level (%) Average motor current (x 0.1 % FLA) L1 current (% FLA) L2 current (% FLA) L3 current (% FLA) Ground current (% FLA min) Current imbalance coefficient Control unit internal temperature (�C) Not significant
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15�0.6 A 14 = adjustment range 0.35�.4 A 50 = adjustment range 1.25�5 A 120 = adjustment range 3�12 A 180 = adjustment range 4.5�18 A 320 = adjustment range 8�32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
1672609EN-03 01/2020
43
Modbus SL and Modbus/TCP DFB
Out_data[0]...[15] Public Variable (Program 4)
The following table describes the Out_data[0]...[15] public variable in the case of the statistics program (program number 4):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14]
Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT INT
INT
Register 150 152 153 154 155 156 157 180 182 183 184 185 186 187 79
652
Description
Last trip fault number
Last trip thermal capacity level (% trip level)
Last trip average current (% FLA)
Last trip L1 current (% FLA)
Last trip L2 current (% FLA)
Last trip L3 current (% FLA)
Last trip ground current (% FLA min)
N1 trip fault number
N�1 trip thermal capacity level (% trip level)
N�1 trip average current (% FLA)
N�1 trip L1 current (% FLA)
N�1 trip L2 current (%FLA)
N�1 trip L3 current (% FLA)
N�1 trip ground current (% FLA min)
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15�0.6 A 14 = adjustment range 0.35�1.4 A 50 = adjustment range 1.25�5 A 120 = adjustment range 3�12 A 180 = adjustment range 4.5�18 A 320 = adjustment range 8�32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
44
1672609EN-03 01/2020
Modbus SL and Modbus/TCP DFB
Out_data[0]...[15] Public Variable (Program 5)
The following table describes the Out_data[0]...[15] public variable in the case of the statistics program (program number 5):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14]
Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT INT
INT
Register 210 212 213 214 215 216 217 240 242 243 244 245 246 247 79
652
Description
N�2 trip fault number
N�2 trip thermal capacity level (% trip level)
N�2 trip average current (% FLA)
N�2 trip L1 current (% FLA)
N�2 trip L2 current (% FLA)
N�2 trip L3 current (% FLA)
N�2 trip ground current (% FLA min)
N�3 trip fault number
N�3 trip thermal capacity level (% trip level)
N�3 trip average current (% FLA)
N�3 trip L1 current (% FLA)
N�3 trip L2 current (%FLA)
N�3 trip L3 current (% FLA)
N�3 trip ground current (% FLA min)
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15�0.6 A 14 = adjustment range 0.35�1.4 A 50 = adjustment range 1.25�5 A 120 = adjustment range 3�12 A 180 = adjustment range 4.5�18 A 320 = adjustment range 8�32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
Out_data[0]...[15] Public Variable (Program 6)
The following table describes the Out_data[0]...[15] public variable in the case of the statistics program (program number 6):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[13] Out_data[14]
Type INT INT INT INT INT INT INT �
INT
Out_data[15]
INT
Register 270 272 273 274 275 276 277 � 79
652
Description N�4 trip fault number N�4 trip thermal capacity level (% trip level) N�4 trip average current (% FLA) N�4 trip L1 current (% FLA) N�4 trip L2 current (% FLA) N�4 trip L3 current (% FLA) N�4 trip ground current (% FLA min) Reserved
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15�0.6 A 14 = adjustment range 0.35�1.4 A 50 = adjustment range 1.25�5 A 120 = adjustment range 3�12 A 180 = adjustment range 4.5�18 A 320 = adjustment range 8�32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
1672609EN-03 01/2020
45
Modbus SL and Modbus/TCP DFB
Special_mdb_t_����: TeSys T DFB for Modbus SL and Modbus/TCP
Presentation
The Special_mdb_t_���� DFBs are dedicated to the reading of up to 16 predefined registers of a TeSys T LTM R��M�� controller through the Modbus SL network or a TeSys T LTM R��E�� controller through the Modbus/TCP network.
Special_mdb_t_addr uses XWAY addressing and is dedicated to Premium PLCs. Special_mdb_t_addm uses an addressing method dedicated to M340 PLCs.
For more information, see: TeSys T LTM R Modbus Communication Guide TeSys T LTM R Ethernet Communication Guide
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Special_mdb_t_addr 1.00 and 1.10 4 3 0 7
Special_mdb_t_addm 1.00 and 1.10 4 3 0 9
Graphical Representation
TeSys T Compliance The Special_mdb_t_���� DFBs are compliant with all the TeSys T LTM R��M�� and LTM R��E�� controller versions, with or without the LTM E expansion module.
Software Implementation The parameters and the inputs can only be changed if the End_st output variable is set to 1. With version 1.00: The output data is only valid if the End_st output variable is set to 1 and if there is no fault detected (Fault_st = 0). With version 1.10: The output data is only valid if there is no fault detected (Fault_st = 0). Prog_num input can be modified on the fly.
Input Characteristics The following table describes the DFB inputs:
Input Slav_num Prog_num
Rst_cmd Strt_cmd
Type INT INT
EBOOL EBOOL
Range 1...31 0...6
0...1 0...1
Default Value 1 0
0 0
Description Modbus slave number Program number See Program Number, page 47 Reset command Start command
46
1672609EN-03 01/2020
Modbus SL and Modbus/TCP DFB
Output Characteristics The following table describes the DFB outputs:
Output Fault_st Rst_st End_st
Type EBOOL EBOOL EBOOL
Range 0...1 0...1 0...1
Default Value 0 0 0
Description Fault detected Reset state End state
Program Number
The Prog_num input variable enables the user to define the public variables data depending on the application type. Each program holds variables related to one application (diagnostic, maintenance, measurement,...). The following table describes the programs of the DFB:
Program Number 0 10 20 30 31 32 40 41 50 51 60 61 70 71 80 81
Description Bypass: no action Diagnostic: faults monitoring variables, warnings monitoring variables, and communication monitoring variables Maintenance: global statistics variables Measurements 1 Measurements 2 Measurements 3 Statistics: last fault statistics (N�0) Statistics: last fault statistics with expansion module (N�0) Statistics: N�1 fault statistics Statistics: N�1 fault statistics (with expansion module) Statistics: N�2 fault statistics Statistics: N�2 fault statistics (with expansion module) Statistics: N�3 fault statistics Statistics: N�3 fault statistics (with expansion module) Statistics: N�4 fault statistics Statistics: N�4 fault statistics (with expansion module)
Public Variables Characteristics The following table describes the Special_mdb_t_addr DFB public variables (using XWAY addressing):
Public Variable Net_num Stat_num Rack_num Slot_num Chan_num Sq_princ Out_data[0]...[15]
Type INT INT INT INT INT INT ARRAY [0...15] of INT
Range 0...255 0...255 0...7 0...10 0...1 0...7 0...65535
Default Value 0 0 0 0 0 0 0
Description
Network address
Station address
Destination rack address
Destination slot address
Destination channel address
Reserved for support
The output data depends on the program number. See Out_data[0]...[15] Public Variable (Program 1), page 42...Out_data[0]...[15] Public Variable (Program 6), page 45
Public Variable Rack_num Slot_num Chan_num IP_addr1 IP_addr2 IP_addr3
The following table describes the Special_mdb_t_addm DFB public variables (using M340 addressing):
Type INT INT INT INT INT INT
Range 0...7 0...10 0...1 0...255 0...255 0...255
Default Value 0 0 0 0 0 0
Description Destination rack address Destination slot address Destination channel address First byte of IP address Second byte of IP address Third byte of IP address
1672609EN-03 01/2020
47
Modbus SL and Modbus/TCP DFB
Public Variable IP_addr4 Sq_princ Out_data[0]...[15]
Type INT INT ARRAY [0...15] of INT
Range 0...255 0...7 0...65535
Default Value 0 0 0
Description
Fourth byte of IP address
Reserved for support
The output data depends on the program number. See Out_data[0]...[15] Public Variable (Program 1), page 42...Out_data[0]...[15] Public Variable (Program 6), page 45
Out_data[0]...[15] Public Variable (Program 10)
The following table describes the Out_data[0]...[15] public variable in the case of the diagnostic program (program number 10):
Public Variable Out_data[0]
Out_data[1]
Type INT
INT
Register 452
453
Bit 0...1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Description Reserved Ground current fault Thermal overload fault Long start fault Jam fault Current phase imbalance fault Undercurrent fault Reserved Test fault HMI port fault Controller internal fault Internal port fault Not significant Network port config fault Network port fault External system fault Diagnostic fault Wiring fault Overcurrent fault Current phase loss fault Current phase reversal fault Motor temperature sensor fault (1) Voltage phase imbalance fault (1) Voltage phase loss fault (1) Voltage phase reversal fault (1) Undervoltage fault (1) Overvoltage fault (1) Underpower fault (1) Overpower fault (1) Under power factor fault (1) Over power factor fault (1)
48
1672609EN-03 01/2020
Public Variable Out_data[2]
Out_data[3]
Out_data[4]
Modbus SL and Modbus/TCP DFB
Type INT
INT
INT
Register 461
462
457
Bit 0...1 2 3 4 5 6 7 8...9 10 11 12...14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Description Not significant Ground current warning Thermal overload warning Not significant Jam warning Current phase imbalance warning Undercurrent warning Not significant HMI port warning Controller internal temperature warning Not significant Network port warning Not significant Diagnostic warning Reserved Overcurrent warning Current phase loss warning Current phase reversal warning Motor temperature sensor warning Voltage phase imbalance warning (1) Voltage phase loss warning (1) Not significant Undervoltage warning (1) Overvoltage warning (1) Underpower warning (1) Overpower warning (1) Under power factor warning (1) Over power factor warning (1) Logic input 1 Logic input 2 Logic input 3 Logic input 4 Logic input 5 Logic input 6 Logic input 7 Logic input 8 (1) Logic input 9 (1) Logic input 10 (1) Logic input 11 (1) Logic input 12 (1) Logic input 13 (1) Logic input 14 (1) Logic input 15 (1) Logic input 16 (1)
1672609EN-03 01/2020
49
Modbus SL and Modbus/TCP DFB
Public Variable
Type
Register Bit
Description
Out_data[5]
INT
458
0
Logic output 1
1
Logic output 2
2
Logic output 3
3
Logic output 4
4
Logic output 5 (1)
5
Logic output 6 (1)
6
Logic output 7 (1)
7
Logic output 8 (1)
8...15 Reserved
Out_data[6]
INT
450
�
Minimum wait time (s)
Out_data[7]
�
�
...Out_data[15]
�
Reserved
(1) The variable is available for the LTM R controller and the LTM EV40 expansion module combination.
Out_data[0]...[15] Public Variable (Program 20)
The following table describes the Out_data[0]...[15] public variable in the case of the maintenance program (program number 20):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT � INT INT INT INT INT INT INT INT �
Register 102 103 104 105 106 107 � 114 115 116 117 118 119 120 121 �
Description Ground current faults count Thermal overload faults count Long start faults count Jam faults count Current phase imbalance faults count Undercurrent faults count Reserved Network port faults count Auto-resets count Thermal overload warnings count Motor starts count (LSB) Motor starts count (MSB) Operating time (s) (LSB) Operating time (MSB) Maximum controller internal temperature (�C) Reserved
50
1672609EN-03 01/2020
Modbus SL and Modbus/TCP DFB
Out_data[0]...[15] Public Variable (Program 30)
The following table describes the Out_data[0]...[15] public variable in the case of the first measurements program (program number 30):
Public Variable
Type
Out_data[0]
�
Out_data[1]
INT
Out_data[2]
INT
Out_data[3]
INT
Out_data[4]
INT
Out_data[5]
INT
Out_data[6]
INT
Out_data[7]
INT
Out_data[8]
INT
Out_data[9]
INT
Out_data[10]
INT
Out_data[11] ...Out_data[13] �
Out_data[14]
INT
Out_data[15]
INT
Register � 465 466 467 468 469 470 471 472 474 475 � 96 652
Description Reserved Thermal capacity level (% trip level) Average current ratio (% FLC) L1 current ratio (% FLC) L2 current ratio (% FLC) L3 current ratio (% FLC) Ground current ratio ( x 0.1 % FLC min) Current phase imbalance (%) Controller internal temperature (�C) Frequency (x 0.01 Hz) Motor temperature sensor (x 0.1 ) Reserved Full load current (FLC) max (x 0.1 A) Motor full load current ratio
Out_data[0]...[15] Public Variable (Program 31)
The following table describes the Out_data[0]...[15] public variable in the case of the second measurements program (program number 31):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] ...Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT �
Register 500 501 502 503 504 505 506 507 508 509 511 512 513 514 �
Description Average current (x 0.01 A) MSB Average current (x 0.01 A) LSB L1 current (x 0.01 A) MSB L1 current (x0.01 A) LSB L2 current (x 0.01 A) MSB L2 current (x0.01 A) LSB L3 current (x 0.01 A) MSB L3 current (x0.01 A) LSB Ground current (x 0.001 A) MSB Ground current (x 0.001 A) LSB Time to trip (x 1 s) Motor last start current ratio (% FLC) Motor last start duration (s) Motor starts per hour count �
Out_data[0]...[15] Public Variable (Program 32)
The following table describes the Out_data[0]...[15] public variable in the case of the third measurements program (program number 32):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6]
Type WORD WORD WORD WORD WORD WORD WORD
Register 476 477 478 479 480 481 482
Description Average voltage (V) L3�L1 voltage (V) L1�L2 voltage (V) L2�L3 voltage (V) Voltage phase imbalance (%) Power factor (x 0.01) Active power (x 0.1 kW)
1672609EN-03 01/2020
51
Modbus SL and Modbus/TCP DFB
Public Variable
Out_data[7]
Out_data[8] ...Out_data[15]
Type WORD �
Register 483 �
Description Reactive power (x 0.1 kVAr) Reserved
Out_data[0]...[15] Public Variable (Program 40)
The following table describes the Out_data[0]...[15] public variable in the case of the last fault statistics program (program number 40):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
Description Detected fault code N�0 Motor full load current ratio N�0 (% FLC max) Thermal capacity level N�0 (% trip level) Average current ratio N�0 (% FLC) L1 current ratio N�0 (% FLC) L2 current ratio N�0 (% FLC) L3 current ratio N�0 (% FLC) Ground current ratio N�0 (x 0.1 % FLC min) Full load current max N�0 (x 0.1 A) Current phase imbalance N�0 (%) Frequency N�0 (x 0.1 Hz) Motor temperature sensor N�0 (x 0.1 ) Date and time N�0 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 41)
The following table describes the Out_data[0]...[15] public variable in the case of the last fault statistics with expansion module program (program number 41):
Public Variable
Type
Out_data[0]
INT
Out_data[1]
INT
Out_data[2]
INT
Out_data[3]
INT
Out_data[4]
INT
Out_data[5]
INT
Out_data[6]
INT
Out_data[7] ...Out_data[15] �
Register 166 167 168 169 170 171 172 �
Description Average voltage N�0 (V) L3�L1 voltage N�0 (V) L1�L2 voltage N�0 (V) L2�L3 voltage N�0 (V) Voltage phase imbalance N�0 (%) Active power N�0 (kW) Power factor N�0 (x 0.01) Reserved
52
1672609EN-03 01/2020
Modbus SL and Modbus/TCP DFB
Out_data[0]...[15] Public Variable (Program 50)
The following table describes the Out_data[0]...[15] public variable in the case of the N�1 fault statistics program (program number 50):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
Description Detected fault code N�1 Motor full load current ratio N�1 (% FLC max) Thermal capacity level N�1 (% trip level) Average current ratio N�1 (% FLC) L1 current ratio N�1 (% FLC) L2 current ratio N�1 (% FLC) L3 current ratio N�1 (% FLC) Ground current ratio N�1 (x 0.1 % FLC min) Full load current max N�1 (x 0.1 A) Current phase imbalance N�1 (%) Frequency N�1 (x 0.1 Hz) Motor temperature sensor N�1 (x 0.1 ) Date and time N�1 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 51)
The following table describes the Out_data[0]...[15] public variable in the case of the N�1 fault statistics with expansion module program (program number 51):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 196 197 198 199 200 201 202 �
Description Average voltage N�1 (V) L3�L1 voltage N�1 (V) L1�L2 voltage N�1 (V) L2�L3 voltage N�1 (V) Voltage phase imbalance N�1 (%) Active power N�1 (kW) Power factor N�1 (x 0.01) Reserved
1672609EN-03 01/2020
53
Modbus SL and Modbus/TCP DFB
Out_data[0]...[15] Public Variable (Program 60)
The following table describes the Out_data[0]...[15] public variable in the case of the N�2 fault statistics program (program number 60):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
Description Detected fault code N�2 Motor full load current ratio N�2 (% FLC max) Thermal capacity level N�2 (% trip level) Average current ratio N�2 (% FLC) L1 current ratio N�2 (% FLC) L2 current ratio N�2 (% FLC) L3 current ratio N�2 (% FLC) Ground current ratio N�2 (x 0.1 % FLC min) Full load current max N�2 (x 0.1 A) Current phase imbalance N�2 (%) Frequency N�2 (x 0.1 Hz) Motor temperature sensor N�2 (x 0.1 ) Date and time N�2 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 61)
The following table describes the Out_data[0]...[15] public variable in the case of the N�2 fault statistics with expansion module program (program number 61):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 226 227 228 229 230 231 232 �
Description Average voltage N�2 (V) L3�L1 voltage N�2 (V) L1�L2 voltage N�2 (V) L2�L3 voltage N�2 (V) Voltage phase imbalance N�2 (%) Active power N�2 (kW) Power factor N�2 (x 0.01) Reserved
54
1672609EN-03 01/2020
Modbus SL and Modbus/TCP DFB
Out_data[0]...[15] Public Variable (Program 70)
The following table describes the Out_data[0]...[15] public variable in the case of the N�3 fault statistics program (program number 70):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Description Detected fault code N�3 Motor full load current ratio N�3 (% FLC max) Thermal capacity level N�3 (% trip level) Average current ratio N�3 (% FLC) L1 current ratio N�3 (% FLC) L2 current ratio N�3 (% FLC) L3 current ratio N�3 (% FLC) Ground current ratio N�3 (x 0.1 % FLC min) Full load current max N�3 (x 0.1 A) Current phase imbalance N�3 (%) Frequency N�3 (x 0.1 Hz) Motor temperature sensor N�3 (x 0.1 ) Date and time N�3 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 71)
The following table describes the Out_data[0]...[15] public variable in the case of the N�3 fault statistics with expansion module program (program number 71):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 256 257 258 259 260 261 262 �
Description Average voltage N�3 (V) L3�L1 voltage N�3 (V) L1�L2 voltage N�3 (V) L2�L3 voltage N�3 (V) Voltage phase imbalance N�3 (%) Active power N�3 (kW) Power factor N�3 (x 0.01) Reserved
1672609EN-03 01/2020
55
Modbus SL and Modbus/TCP DFB
Out_data[0]...[15] Public Variable (Program 80)
The following table describes the Out_data[0]...[15] public variable in the case of the N�4 fault statistics program (program number 80):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
Description Detected fault code N�4 Motor full load current ratio N�4 (% FLC max) Thermal capacity level N�4 (% trip level) Average current ratio N�4 (% FLC) L1 current ratio N�4 (% FLC) L2 current ratio N�4 (% FLC) L3 current ratio N�4 (% FLC) Ground current ratio N�4 (x 0.1 % FLC min) Full load current max N�4 (x 0.1 A) Current phase imbalance N�4 (%) Frequency N�4 (x 0.1 Hz) Motor temperature sensor N�4 (x 0.1 ) Date and time N�4 See DT_DateTime, page 111
56
1672609EN-03 01/2020
Modbus SL and Modbus/TCP DFB
Out_data[0]...[15] Public Variable (Program 81)
The following table describes the Out_data[0]...[15] public variable in the case of the N�4 fault statistics with expansion module program (program number 81):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 286 287 288 289 290 291 292 �
Description Average voltage N�4 (V) L3�L1 voltage N�4 (V) L1�L2 voltage N�4 (V) L2�L3 voltage N�4 (V) Voltage phase imbalance N�4 (%) Active power N�4 (kW) Power factor N�4 (x 0.01) Reserved
1672609EN-03 01/2020
57
Modbus SL and Modbus/TCP DFB
Custom_mdb_����: Custom Read DFB for Modbus SL and Modbus/TCP
Presentation
The Custom_mdb_���� DFBs are dedicated to the reading of up to 5 sets of registers in one single TeSys device through the Modbus SL or Modbus/TCP networks.
Custom_mdb_addr uses XWAY addressing and is dedicated to Premium PLCs. Custom_mdb_addm uses an addressing method dedicated to M340 PLCs.
The Custom_mdb_���� DFBs complete the Special_mdb_u_���� and Special_mdb_t_���� DFBs and enable the user to select the registers to read.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Custom_mdb_addr 1.00 and 1.10 3 3 0 13
Custom_mdb_addm 1.00 and 1.10 3 3 0 15
Graphical Representation
TeSys U and TeSys T Compliance
TeSys U: The Custom_mdb_���� DFBs are compliant with the following TeSys U sub-assemblies: LUB�� non-reversing power base and LU2B�� reversing power base (up to 32 A/15 kW or 20 hp) LUCM multifunction control unit LULC033 Modbus communication module
TeSys T: The Custom_mdb_���� DFBs are compliant with all the LTM R��M�� and LTM R��E�� controller versions, with or without the LTM E expansion module.
Software Implementation
The parameters and the inputs can only be changed if the End_st output variable is set to 1. With version 1.00:
The output data is only valid if the End_st output variable is set to 1 and if there is no fault detected (Fault_st = 0). With version 1.10: The output data is only valid if there is no fault detected (Fault_st = 0). Prog_num input can be modified on the fly. The public variables enable the user to read up to 5 sets of registers of a maximum length of 16 registers for each set: The user defines the starting point of a set of registers with the In_reg public variable. The user defines the length of the set of registers with the corresponding In_len public variable. The registers content is then returned in the corresponding Out_dat public variable.
58
1672609EN-03 01/2020
Modbus SL and Modbus/TCP DFB
Input Characteristics The following table describes the DFB inputs:
Input
Slav_num Rst_cmd Strt_cmd
Type
INT EBOOL EBOOL
Range
1...31 0...1 0...1
Default Value 1 0 0
Description
Modbus slave number Reset command Start command
Output Characteristics The following table describes the DFB outputs:
Output
Fault_st Rst_st End_st
Type
EBOOL EBOOL EBOOL
Range
0...1 0...1 0...1
Default Value 0 0 0
Description
Fault detected Reset state End state
Public Variables Characteristics The following table describes the Custom_mdb_addr DFB public variables (using XWAY addressing):
Public Variable
Net_num Stat_num Rack_num Slot_num Chan_num In_reg
In_len
Out_dat[0]
Out_dat[1]
Out_dat[2]
Out_dat[3]
Out_dat[4]
Sq_princ
Type
Range
INT INT INT INT INT ARRAY[0...4] of INT
0...255 0...255 0...7 0...10 0...1 0...65535
ARRAY[0...4] of INT
0...16
ARRAY[0...15] of INT 0...65535
ARRAY[0...15] of INT 0...65535
ARRAY[0...15] of INT 0...65535
ARRAY[0...15] of INT 0...65535
ARRAY[0...15] of INT 0...65535
INT
0...7
Default Value 0 0 0 0 0 0
0
0
0
0
0
0
0
Description
Network address Station address Destination rack address Destination slot address Destination channel address Array of 5 words for the 5 index registers (In_reg[0]...In_reg[4]) Array of 5 words for the length of each set of registers (In_len[0]...In_len[4]) Array of up to 16 words containing the In_len[0] words starting from In_reg[0] Array of up to 16 words containing the In_len[1] words starting from In_reg[1] Array of up to 16 words containing the In_len[2] words starting from In_reg[2] Array of up to 16 words containing the In_len[3] words starting from In_reg[3] Array of up to 16 words containing the In_len[4] words starting from In_reg[4] Reserved for support
The following table describes the Custom_mdb_addm DFB public variables (using M340 addressing):
Public Variable Rack_num Slot_num Chan_num IP_addr1 IP_addr2 IP_addr3 IP_addr4 In_reg
Type INT INT INT INT INT INT INT ARRAY[0...4] of INT
Range 0...7 0...10 0...1 0...255 0...255 0...255 0...255 0...65535
Default Value Description
0
Destination rack address
0
Destination slot address
0
Destination channel address
0
First byte of IP address
0
Second byte of IP address
0
Third byte of IP address
0
Fourth byte of IP address
0
Array of 5 words for the 5 index registers
(In_reg[0]...In_reg[4])
1672609EN-03 01/2020
59
Modbus SL and Modbus/TCP DFB
Public Variable In_len Out_dat[0] Out_dat[1] Out_dat[2] Out_dat[3] Out_dat[4] Sq_princ
Type ARRAY[0...4] of INT
Range 0...16
ARRAY[0...15] of INT 0...255
ARRAY[0...15] of INT 0...255
ARRAY[0...15] of INT 0...255
ARRAY[0...15] of INT 0...65535
ARRAY[0...15] of INT 0...65535
INT
0...7
Default Value Description
0
Array of 5 words for the length of each set of registers
(In_len[0]...In_len[4])
0
Array of up to 16 words containing the In_len[0] words
starting from In_reg[0]
0
Array of up to 16 words containing the In_len[1] words
starting from In_reg[1]
0
Array of up to 16 words containing the In_len[2] words
starting from In_reg[2]
0
Array of up to 16 words containing the In_len[3] words
starting from In_reg[3]
0
Array of up to 16 words containing the In_len[4] words
starting from In_reg[4]
0
Reserved for support
60
1672609EN-03 01/2020
TeSys DFB Library V2 for Unity Pro Modbus/TCP DFB for Quantum PLC 1672609EN-03 01/2020
Modbus/TCP DFB for Quantum PLC
Chapter 4
Modbus/TCP DFB for Quantum PLC
Introduction
This chapter describes the TeSys U and TeSys T Modbus/TCP DFBs dedicated to Quantum PLC.
What Is in This Chapter? This chapter contains the following topics:
Topic Special_mdb_u_addq: TeSys U DFB for Modbus/TCP for Quantum PLC Special_mdb_t_addq: TeSys T DFB for Modbus/TCP for Quantum PLC Custom_mdb_addq: Custom Read DFB for Modbus/TCP for Quantum PLC
Page 62 68 78
1672609EN-03 01/2020
61
Modbus/TCP DFB for Quantum PLC
Special_mdb_u_addq: TeSys U DFB for Modbus/TCP for Quantum PLC
Presentation Characteristics
The Special_mdb_u_addq DFBs are dedicated to the reading of up to 16 predefined registers of a TeSys U starter-controller (up to 32 A/15 kW or 20 hp) equipped with a LUCM multifunction control unit and a LULC033 Modbus communication module through an Ethernet gateway with a Modbus/TCP network connected to a Quantum PLC.
For more information, see the TeSys U LULC032-033 Modbus Communication Module User Manual.
Characteristic Name Version Input Output Input/Output Public Variable
Value Special_mdb_u_addq 1.00 4 5 0 7
Graphical Representation
TeSys U Compliance The Special_mdb_u_addq DFBs are compliant with the following TeSys U sub-assemblies:
Power base
Control unit Communication module
LUB�� non-reversing power base (up to 32 A/15 kW or 20 hp) LU2B�� reversing power base (up to 32 A/15 kW or 20 hp)
LUCM multifunction control unit
LULC033 Modbus communication module connected through an Ethernet gateway
Software Implementation
The parameters and the inputs can only be changed if the End_st output variable is set to 1. The output data is only valid if there is no fault detected (Fault_st = 0). Prog_num input can be modified on the fly.
Input Characteristics The following table describes the DFB inputs:
Input Slav_num Prog_num
Rst_cmd Strt_cmd
Type INT INT
EBOOL EBOOL
Range 1...31 0...6
0...1 0...1
Default Value 1 0
0 0
Description Modbus address of the slave connected to the gateway Program number See Program Number, page 41 Reset command Start command
62
1672609EN-03 01/2020
Modbus/TCP DFB for Quantum PLC
Output Characteristics The following table describes the DFB outputs:
Output Control
Type ARRAY [1...9] of INT
Range 0...65535
Default Value 0
Databuf
ANY_ARRAY_INT
0...65535
0
Fault_st Rst_st End_st
EBOOL EBOOL EBOOL
0...1
0
0...1
0
0...1
0
Description
For internal use of the DFB. Must be linked to an array of 9 located words (%MW)
For internal use of the DFB. Must be linked to an array of 38 located words minimum (%MW)
Fault detected
Reset state
End state
Program Number
The Prog_num input variable enables the user to define the public variables data depending on the application type. Each program uses variables related to one application (diagnostic, maintenance, measurement,...). The following table describes the programs of the DFB:
Program Number 0 1 2 3 4 5 6
Description Bypass: no action Diagnostic: faults monitoring variables, warnings monitoring variables, and communication monitoring variables Maintenance: global statistics variables Measurements: measurements monitoring variables Statistics: last trip statistics and trip N�1 statistics Statistics: trip N�2 statistics and trip N�3 statistics Statistics: trip N�4 statistics
Public Variables Characteristics The following table describes the Special_mdb_u_addq DFB public variables (using Quantum addressing):
Public Variable Slot_num
IP_addr1 IP_addr2 IP_addr3 IP_addr4 Sq_princ Out_data[0]...[15]
Type INT
Range 0...254
Default Value 0
INT
0...255
0
INT
0...255
0
INT
0...255
0
INT
0...255
0
INT
0...7
0
ARRAY [0...15] of INT 0...65535
0
Description
Slot address of the NOE coupler. Must be equal to 254 if using integrated Ethernet port of the CPU.
First byte of IP address
Second byte of IP address
Third byte of IP address
Fourth byte of IP address
Reserved for support
The output data depends on the program number. See Out_data[0]...[15] Public Variable (Program 1), page 42...Out_data[0]...[15] Public Variable (Program 6), page 45
Out_data[0]...[15] Public Variable (Program 1)
The following table describes the Out_data[0]...[15] public variable in the case of the diagnostic program (program number 1):
1672609EN-03 01/2020
63
Modbus/TCP DFB for Quantum PLC
Public Variable Out_data[0]
Type INT
Register 452
Out_data[1]
INT
461
Out_data[2]
INT
457
Out_data[3]
Out_data[4] ...Out_data[15]
INT
450
�
�
Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0...1 2 3 4 5 6 7 8...9 10 11 12 13...14 15 0 1 2 3 4...15 � �
Description Short-circuit fault Magnetic fault Ground fault Thermal fault Long start fault Jam fault Phase imbalance fault Underload fault Shunt trip fault Test trip fault Communication loss fault on LUCM Modbus port Control unit internal fault Module identification or internal communication fault Module internal fault Module trip fault Module drop-out fault Not significant Ground fault warning Thermal warning Long start warning Jam warning Phase imbalance warning Under-current warning Not significant Communication loss fault on LUCM Modbus port Internal temperature warning Module identification or internal communication warning Not significant Module warning Button position On (0 = Off) Button position Trip (0 = Not tripped) Contactor state On 24 Vdc power supply present on outputs Not significant Time to automatic reset on a thermal fault (s) Not significant
64
1672609EN-03 01/2020
Modbus/TCP DFB for Quantum PLC
Out_data[0]...[15] Public Variable (Program 2)
The following table describes the Out_data[0]...[15] public variable in the case of the maintenance program (program number 2):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT INT �
Register 100 101 102 103 104 105 106 108 115 116 117 118 119 120 121 �
Description Short-circuit faults count Magnetic faults count Ground faults count Thermal faults count Long start faults count Jam faults count Phase imbalance faults count Shunt trip faults count Auto-resets count Thermal warnings count Starts count (LSB) Starts count (MSB) Operating time (LSB) Operating time (MSB) Maximum internal temperature (�C) Not significant
Out_data[0]...[15] Public Variable (Program 3)
The following table describes the Out_data[0]...[15] public variable in the case of the measurements program (program number 3):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] ...Out_data[13] Out_data[14]
Out_data[15]
Type � INT INT INT INT INT INT INT INT �
INT
INT
Register � 465 466 467 468 469 470 471 472 �
79
652
Description Not significant Thermal capacity level (%) Average motor current (x 0.1 % FLA) L1 current (% FLA) L2 current (% FLA) L3 current (% FLA) Ground current (% FLA min) Current imbalance coefficient Control unit internal temperature (�C) Not significant
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15�0.6 A 14 = adjustment range 0.35�.4 A 50 = adjustment range 1.25�5 A 120 = adjustment range 3�12 A 180 = adjustment range 4.5�18 A 320 = adjustment range 8�32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
1672609EN-03 01/2020
65
Modbus/TCP DFB for Quantum PLC
Out_data[0]...[15] Public Variable (Program 4)
The following table describes the Out_data[0]...[15] public variable in the case of the statistics program (program number 4):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14]
Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT INT
INT
Register 150 152 153 154 155 156 157 180 182 183 184 185 186 187 79
652
Description
Last trip fault number
Last trip thermal capacity level (% trip level)
Last trip average current (% FLA)
Last trip L1 current (% FLA)
Last trip L2 current (% FLA)
Last trip L3 current (% FLA)
Last trip ground current (% FLA min)
N1 trip fault number
N�1 trip thermal capacity level (% trip level)
N�1 trip average current (% FLA)
N�1 trip L1 current (% FLA)
N�1 trip L2 current (%FLA)
N�1 trip L3 current (% FLA)
N�1 trip ground current (% FLA min)
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15�0.6 A 14 = adjustment range 0.35�1.4 A 50 = adjustment range 1.25�5 A 120 = adjustment range 3�12 A 180 = adjustment range 4.5�18 A 320 = adjustment range 8�32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
66
1672609EN-03 01/2020
Modbus/TCP DFB for Quantum PLC
Out_data[0]...[15] Public Variable (Program 5)
The following table describes the Out_data[0]...[15] public variable in the case of the statistics program (program number 5):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14]
Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT INT
INT
Register 210 212 213 214 215 216 217 240 242 243 244 245 246 247 79
652
Description
N�2 trip fault number
N�2 trip thermal capacity level (% trip level)
N�2 trip average current (% FLA)
N�2 trip L1 current (% FLA)
N�2 trip L2 current (% FLA)
N�2 trip L3 current (% FLA)
N�2 trip ground current (% FLA min)
N�3 trip fault number
N�3 trip thermal capacity level (% trip level)
N�3 trip average current (% FLA)
N�3 trip L1 current (% FLA)
N�3 trip L2 current (%FLA)
N�3 trip L3 current (% FLA)
N�3 trip ground current (% FLA min)
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15�0.6 A 14 = adjustment range 0.35�1.4 A 50 = adjustment range 1.25�5 A 120 = adjustment range 3�12 A 180 = adjustment range 4.5�18 A 320 = adjustment range 8�32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
Out_data[0]...[15] Public Variable (Program 6)
The following table describes the Out_data[0]...[15] public variable in the case of the statistics program (program number 6):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[13] Out_data[14]
Type INT INT INT INT INT INT INT �
INT
Out_data[15]
INT
Register 270 272 273 274 275 276 277 � 79
652
Description N�4 trip fault number N�4 trip thermal capacity level (% trip level) N�4 trip average current (% FLA) N�4 trip L1 current (% FLA) N�4 trip L2 current (% FLA) N�4 trip L3 current (% FLA) N�4 trip ground current (% FLA min) Reserved
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15�0.6 A 14 = adjustment range 0.35�1.4 A 50 = adjustment range 1.25�5 A 120 = adjustment range 3�12 A 180 = adjustment range 4.5�18 A 320 = adjustment range 8�32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
1672609EN-03 01/2020
67
Modbus/TCP DFB for Quantum PLC
Special_mdb_t_addq: TeSys T DFB for Modbus/TCP for Quantum PLC
Presentation Characteristics
The Special_mdb_t_addq DFBs are dedicated to the reading of up to 16 predefined registers of a TeSys T LTM R��E�� controller through the Modbus/TCP network connected to a Quantum PLC.
For more information, see the TeSys T LTMR Ethernet Communication Guide.
Characteristic Name Version Input Output Input/Output Public Variable
Value Special_mdb_t_addq 1.00 3 5 0 7
Graphical Representation
TeSys T Compliance
The Special_mdb_t_addq DFBs are compliant with all the LTM R��E�� controller versions, with or without the LTM E expansion module.
Software Implementation
The parameters and the inputs can only be changed if the End_st output variable is set to 1. The output data is only valid if there is no fault detected (Fault_st = 0). Prog_num can be modified on the fly.
Input Characteristics The following table describes the DFB inputs:
Input Prog_num
Rst_cmd Strt_cmd
Type INT
EBOOL EBOOL
Range 0...6
0...1 0...1
Default Value 0
0 0
Description Program number See Program Number, page 47 Reset command Start command
68
1672609EN-03 01/2020
Modbus/TCP DFB for Quantum PLC
Output Characteristics The following table describes the DFB outputs:
Output Control
Type ARRAY [1...9] of INT
Range 0...65535
Default Value 0
Databuf
ANY_ARRAY_INT
0...65535
0
Fault_st Rst_st End_st
EBOOL EBOOL EBOOL
0...1
0
0...1
0
0...1
0
Description
For internal use of the DFB. Must be linked to an array of 9 located words (%MW)
For internal use of the DFB. Must be linked to an array of 20 located words minimum (%MW)
Fault detected
Reset state
End state
Program Number
The Prog_num input variable enables the user to define the public variables data depending on the application type. Each program holds variables related to one application (diagnostic, maintenance, measurement,...). The following table describes the programs of the DFB:
Program Number 0 10
20 30 31 32 40 41 50 51 60 61 70 71 80 81
Description Bypass: no action Diagnostic: detected faults monitoring variables, detected warnings monitoring variables, and communication monitoring variables Maintenance: global statistics variables Measurements 1 Measurements 2 Measurements 3 Statistics: last detected fault (N�0) statistics Statistics: last detected fault (N�0) statistics (with expansion module) Statistics: N�1 detected fault statistics Statistics: N�1 detected fault statistics (with expansion module) Statistics: N�2 detected fault statistics Statistics: N�2 detected fault statistics (with expansion module) Statistics: N�3 detected fault statistics Statistics: N�3 detected fault statistics (with expansion module) Statistics: N�4 detected fault statistics Statistics: N�4 detected fault statistics (with expansion module)
Public Variables Characteristics The following table describes the Special_mdb_t_addq DFB public variables (using Quantum addressing):
Public Variable Slot_num
IP_addr1 IP_addr2 IP_addr3 IP_addr4 Sq_princ Out_data[0]...[15]
Type INT
Range 0...254
INT INT INT INT INT ARRAY [0...15] of INT
0...255 0...255 0...255 0...255 0...7 0...65535
Default Value 0
0 0 0 0 0 0
Description
Slot address of the NOE coupler. Must be equal to 254 if using integrated Ethernet port of the CPU.
First byte of IP address
Second byte of IP address
Third byte of IP address
Fourth byte of IP address
Reserved for support
The output data depends on the program number. See Out_data[0]...[15] Public Variable (Program 1), page 42...Out_data[0]...[15] Public Variable (Program 6), page 45
1672609EN-03 01/2020
69
Modbus/TCP DFB for Quantum PLC
Out_data[0]...[15] Public Variable (Program 10)
The following table describes the Out_data[0]...[15] public variable in the case of the diagnostic program (program number 10):
Public Variable Out_data[0]
Out_data[1]
Out_data[2]
Type INT
INT
INT
Register 452
453
461
Bit 0...1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0...1 2 3 4 5 6 7 8...9 10 11 12...14 15
Description Reserved Ground current fault Thermal overload fault Long start fault Jam fault Current phase imbalance fault Undercurrent fault Reserved Test fault (the TeSys T controller has detected a fault during a self test sequence) HMI port fault Controller internal fault Internal port fault Reserved Network port config fault Network port fault External fault (fault detected by external device and connected to I.3) Diagnostic fault Wiring fault Overcurrent fault Current phase loss fault Current phase reversal fault Motor temperature sensor fault (1) Voltage phase imbalance fault (1) Voltage phase loss fault (1) Voltage phase reversal fault (1) Undervoltage fault (1) Overvoltage fault (1) Underpower fault (1) Overpower fault (1) Under power factor fault (1) Over power factor fault (1) Reserved Ground current warning Thermal overload warning Reserved Jam warning Current phase imbalance warning Undercurrent warning Reserved HMI port warning Controller internal temperature warning Reserved Network port warning
70
1672609EN-03 01/2020
Modbus/TCP DFB for Quantum PLC
Public Variable
Type
Register Bit
Description
Out_data[3]
INT
462
0
Reserved
1
Diagnostic warning
2
Reserved
3
Overcurrent warning
4
Current phase loss warning
5
Current phase reversal warning
6
Motor temperature sensor warning
7
Voltage phase imbalance warning (1)
8
Voltage phase loss warning (1)
9
Reserved
10
Undervoltage warning (1)
11
Overvoltage warning (1)
12
Underpower warning (1)
13
Overpower warning (1)
14
Under power factor warning (1)
15
Over power factor warning (1)
Out_data[4]
INT
457
0
Logic input 1
1
Logic input 2
2
Logic input 3
3
Logic input 4
4
Logic input 5
5
Logic input 6
6
Logic input 7
7
Logic input 8 (1)
8
Logic input 9 (1)
9
Logic input 10 (1)
10
Logic input 11 (1)
11
Logic input 12 (1)
12
Logic input 13 (1)
13
Logic input 14 (1)
14
Logic input 15 (1)
15
Logic input 16 (1)
Out_data[5]
INT
458
0
Logic output 1
1
Logic output 2
2
Logic output 3
3
Logic output 4
4
Logic output 5 (1)
5
Logic output 6 (1)
6
Logic output 7 (1)
7
Logic output 8 (1)
8...15 Reserved
Out_data[6]
INT
450
�
Minimum wait time (s)
Out_data[7]
�
�
...Out_data[15]
�
Reserved
(1) The variable is available for the LTM R controller and the LTM EV40 expansion module combination.
1672609EN-03 01/2020
71
Modbus/TCP DFB for Quantum PLC
Out_data[0]...[15] Public Variable (Program 20)
The following table describes the Out_data[0]...[15] public variable in the case of the maintenance program (program number 20):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT � INT INT INT INT INT INT INT INT �
Register 102 103 104 105 106 107 � 114 115 116 117 118 119 120 121 �
Description Ground current faults count Thermal overload faults count Long start faults count Jam faults count Current phase imbalance faults count Undercurrent faults count Reserved Network port faults count Auto-resets count Thermal overload warnings count Motor starts count (LSB) Motor starts count (MSB) Operating time (s) (LSB) Operating time (MSB) Maximum controller internal temperature (�C) Reserved
Out_data[0]...[15] Public Variable (Program 30)
The following table describes the Out_data[0]...[15] public variable in the case of the first measurements program (program number 30):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] ...Out_data[13] Out_data[14] Out_data[15]
Type � INT INT INT INT INT INT INT INT INT INT �
INT INT
Register � 465 466 467 468 469 470 471 472 474 475 �
Description Reserved Thermal capacity level (% trip level) Average current ratio (% FLC) L1 current ratio (% FLC) L2 current ratio (% FLC) L3 current ratio (% FLC) Ground current ratio (x 0.1% FLC min) Current phase imbalance (%) Controller internal temperature (�C) Frequency (x 0.01 Hz) Motor temperature sensor (x 0.1 ) Reserved
96
Full load current (FLC) max (x 0.1 A)
652
Motor full load current ratio
72
1672609EN-03 01/2020
Modbus/TCP DFB for Quantum PLC
Out_data[0]...[15] Public Variable (Program 31)
The following table describes the Out_data[0]...[15] public variable in the case of the second measurements program (program number 31):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] ...Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT �
Register 500 501 502 503 504 505 506 507 508 509 511 512 513 514 �
Description Average current (x 0.01 A) MSB Average current (x 0.01 A) LSB L1 current (x 0.01 A) MSB L1 current (x 0.01 A) LSB L2 current (x 0.01 A) MSB L2 current (x 0.01 A) LSB L3 current (x 0.01 A) MSB L3 current (x 0.01 A) LSB Ground current (x 0.001 A) MSB Ground current (x 0.001 A) LSB Time to trip (x 1 s) Motor last start current ratio (% FLC) Motor last start duration (s) Motor starts per hour count �
Out_data[0]...[15] Public Variable (Program 32)
The following table describes the Out_data[0]...[15] public variable in the case of the third measurements program (program number 32):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] ...Out_data[15]
Type WORD WORD WORD WORD WORD WORD WORD WORD �
Register 476 477 478 479 480 481 482 483 �
Description Average voltage (V) L3�L1 voltage (V) L1�L2 voltage (V) L2�L3 voltage (V) Voltage phase imbalance (%) Power factor (x 0.01) Active power (x 0.1 kW) Reactive power (x 0.1 kVAr) Reserved
Out_data[0]...[15] Public Variable (Program 40)
The following table describes the Out_data[0]...[15] public variable in the case of the last detected fault statistics program (program number 40):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10]
Type INT INT INT INT INT INT INT INT INT INT INT
Register 150 151 152 153 154 155 156 157 158 159 160
Description Detected fault code N�0 Motor full load current ratio N�0 (% FLC max) Thermal capacity level N�0 (% trip level) Average current ratio N�0 (% FLC) L1 current ratio N�0 (% FLC) L2 current ratio N�0 (% FLC) L3 current ratio N�0 (% FLC) Ground current ratio N�0 (x 0.1% FLC min) Full load current max N�0 (x 0.1 A) Current phase imbalance N�0 (%) Frequency N�0 (x 0.1 Hz)
1672609EN-03 01/2020
73
Modbus/TCP DFB for Quantum PLC
Public Variable Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT WORD[4]
Register 161 162 163 164 165
Description
Motor temperature sensor N�0 (x 0.1 )
Date and time N�0 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 41)
The following table describes the Out_data[0]...[15] public variable in the case of the last detected fault statistics with expansion module program (program number 41):
Public Variable
Type
Out_data[0]
INT
Out_data[1]
INT
Out_data[2]
INT
Out_data[3]
INT
Out_data[4]
INT
Out_data[5]
INT
Out_data[6]
INT
Out_data[7] ...Out_data[15] �
Register 166 167 168 169 170 171 172 �
Description Average voltage N�0 (V) L3�L1 voltage N�0 (V) L1�L2 voltage N�0 (V) L2�L3 voltage N�0 (V) Voltage phase imbalance N�0 (%) Active power N�0 (kW) Power factor N�0 (x 0.01) Reserved
Out_data[0]...[15] Public Variable (Program 50)
The following table describes the Out_data[0]...[15] public variable in the case of the N�1 detected fault statistics program (program number 50):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
Description Detected fault code N�1 Motor full load current ratio N�1 (% FLC max) Thermal capacity level N�1 (% trip level) Average current ratio N�1 (% FLC) L1 current ratio N�1 (% FLC) L2 current ratio N�1 (% FLC) L3 current ratio N�1 (% FLC) Ground current ratio N�1 (x 0.1% FLC min) Full load current max N�1 (x 0.1 A) Current phase imbalance N�1 (%) Frequency N�1 (x 0.1 Hz) Motor temperature sensor N�1 (x 0.1 ) Date and time N�1 See DT_DateTime, page 111
74
1672609EN-03 01/2020
Modbus/TCP DFB for Quantum PLC
Out_data[0]...[15] Public Variable (Program 51)
The following table describes the Out_data[0]...[15] public variable in the case of the N�1 detected fault statistics with expansion module program (program number 51):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 196 197 198 199 200 201 202 �
Description Average voltage N�1 (V) L3�L1 voltage N�1 (V) L1�L2 voltage N�1 (V) L2�L3 voltage N�1 (V) Voltage phase imbalance N�1 (%) Active power N�1 (kW) Power factor N�1 (x 0.01) Reserved
Out_data[0]...[15] Public Variable (Program 60)
The following table describes the Out_data[0]...[15] public variable in the case of the N�2 detected fault statistics program (program number 60):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
Description Detected fault code N�2 Motor full load current ratio N�2 (% FLC max) Thermal capacity level N�2 (% trip level) Average current ratio N�2 (% FLC) L1 current ratio N�2 (% FLC) L2 current ratio N�2 (% FLC) L3 current ratio N�2 (% FLC) Ground current ratio N�2 (x 0.1% FLC min) Full load current max N�2 (x 0.1 A) Current phase imbalance N�2 (%) Frequency N�2 (x 0.1 Hz) Motor temperature sensor N�2 (x 0.1 ) Date and time N�2 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 61)
The following table describes the Out_data[0]...[15] public variable in the case of the N�2 detected fault statistics with expansion module program (program number 61):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 226 227 228 229 230 231 232 �
Description Average voltage N�2 (V) L3�L1 voltage N�2 (V) L1�L2 voltage N�2 (V) L2�L3 voltage N�2 (V) Voltage phase imbalance N�2 (%) Active power N�2 (kW) Power factor N�2 (x 0.01) Reserved
1672609EN-03 01/2020
75
Modbus/TCP DFB for Quantum PLC
Out_data[0]...[15] Public Variable (Program 70)
The following table describes the Out_data[0]...[15] public variable in the case of the N�3 detected fault statistics program (program number 70):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Description Detected fault code N�3 Motor full load current ratio N�3 (% FLC max) Thermal capacity level N�3 (% trip level) Average current ratio N�3 (% FLC) L1 current ratio N�3 (% FLC) L2 current ratio N�3 (% FLC) L3 current ratio N�3 (% FLC) Ground current ratio N�3 (x 0.1% FLC min) Full load current max N�3 (x 0.1 A) Current phase imbalance N�3 (%) Frequency N�3 (x 0.1 Hz) Motor temperature sensor N�3 (x 0.1 ) Date and time N�3 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 71)
The following table describes the Out_data[0]...[15] public variable in the case of the N�3 detected fault statistics with expansion module program (program number 71):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 256 257 258 259 260 261 262 �
Description Average voltage N�3 (V) L3�L1 voltage N�3 (V) L1�L2 voltage N�3 (V) L2�L3 voltage N�3 (V) Voltage phase imbalance N�3 (%) Active power N�3 (kW) Power factor N�3 (x 0.01) Reserved
76
1672609EN-03 01/2020
Modbus/TCP DFB for Quantum PLC
Out_data[0]...[15] Public Variable (Program 80)
The following table describes the Out_data[0]...[15] public variable in the case of the N�4 detected fault statistics program (program number 80):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
Description Detected fault code N�4 Motor full load current ratio N�4 (% FLC max) Thermal capacity level N�4 (% trip level) Average current ratio N�4 (% FLC) L1 current ratio N�4 (% FLC) L2 current ratio N�4 (% FLC) L3 current ratio N�4 (% FLC) Ground current ratio N�4 (x 0.1% FLC min) Full load current max N�4 (x 0.1 A) Current phase imbalance N�4 (%) Frequency N�4 (x 0.1 Hz) Motor temperature sensor N�4 (x 0.1 ) Date and time N�4 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 81)
The following table describes the Out_data[0]...[15] public variable in the case of the N�4 detected fault statistics with expansion module program (program number 81):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 286 287 288 289 290 291 292 �
Description Average voltage N�4 (V) L3�L1 voltage N�4 (V) L1�L2 voltage N�4 (V) L2�L3 voltage N�4 (V) Voltage phase imbalance N�4 (%) Active power N�4 (kW) Power factor N�4 (x 0.01) Reserved
1672609EN-03 01/2020
77
Modbus/TCP DFB for Quantum PLC
Custom_mdb_addq: Custom Read DFB for Modbus/TCP for Quantum PLC
Presentation
The Custom_mdb_addq DFB is dedicated to the reading of up to 5 sets of registers in one single TeSys device through the Modbus/TCP network connected to a Quantum PLC.
The Custom_mdb_addq DFB completes the Special_mdb_u_addq and Special_mdb_t_addq DFBs and enable the user to select the registers to read.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Custom_mdb_addq 1.00 3 5 0 13
Graphical Representation
TeSys U and TeSys T Compliance
TeSys U: The Custom_mdb_addq DFB is compliant with the following TeSys U sub-assemblies: LUB�� non-reversing power base and LU2B�� reversing power base (up to 32 A/15 kW or 20 hp) LUCM multifunction control unit LULC033 Modbus communication module connected through an Ethernet gateway.
TeSys T: The Custom_mdb_addq DFB is compliant with all the LTM R��M�� (through an Ethernet gateway) and LTM R��E�� controller versions, with or without the LTM E expansion module.
Software Implementation
The parameters and the inputs can only be changed if the End_st output variable is set to 1. The output data is only valid if there is no fault detected (Fault_st = 0). Prog_num input can be modified on the fly. The public variables enable the user to read up to 5 sets of registers of a maximum length of 16 registers
for each set: The user defines the starting point of a set of registers with the In_reg public variable. The user defines the length of the set of registers with the corresponding In_len public variable. The registers content is then returned in the corresponding Out_dat public variable.
Input Characteristics The following table describes the DFB inputs:
Input
Slav_num Rst_cmd Strt_cmd
Type
INT EBOOL EBOOL
Range
1...31 0...1 0...1
Default Value 1 0 0
Description
Modbus slave number Reset command Start command
78
1672609EN-03 01/2020
Modbus/TCP DFB for Quantum PLC
Output Characteristics The following table describes the DFB outputs:
Output Control
Type ARRAY [1...9] of INT
Range 0...65535
Default Value
0
Databuf
ANY_ARRAY_INT
0...65535
0
Fault_st Rst_st End_st
EBOOL EBOOL EBOOL
0...1
0
0...1
0
0...1
0
Description
For internal use of the DFB. Must be linked to an array of 9 located words (%MW) For internal use of the DFB. Must be linked to an array of 16 located words minimum (%MW) Fault detected Reset state End state
Public Variables Characteristics The following table describes the Custom_mdb_addq DFB public variables (using Quantum addressing):
Public Variable Slot_num
Type INT
Range 0...254
IP_addr1 IP_addr2 IP_addr3 IP_addr4 In_reg
In_len
Out_dat[0]
Out_dat[1]
Out_dat[2]
Out_dat[3]
Out_dat[4]
Sq_princ
INT INT INT INT ARRAY[0...4] of INT
ARRAY[0...4] of INT
ARRAY[0...15] of INT
ARRAY[0...15] of INT
ARRAY[0...15] of INT
ARRAY[0...15] of INT
ARRAY[0...15] of INT
INT
0...255 0...255 0...255 0...255 0...65535
0...16
0...255
0...255
0...255
0...65535
0...65535
0...7
Default Value 0
0 0 0 0 0
0
0
0
0
0
0
0
Description
Slot address of the NOE coupler. Must be equal to 254 if using integrated Ethernet port of the CPU.
First byte of IP address Second byte of IP address Third byte of IP address Fourth byte of IP address
Array of 5 words for the 5 index registers (In_reg[0]...In_reg[4])
Array of 5 words for the length of each set of registers (In_len[0]...In_len[4]) Array of up to 16 words containing the In_len[0] words starting from In_reg[0] Array of up to 16 words containing the In_len[1] words starting from In_reg[1] Array of up to 16 words containing the In_len[2] words starting from In_reg[2] Array of up to 16 words containing the In_len[3] words starting from In_reg[3] Array of up to 16 words containing the In_len[4] words starting from In_reg[4] Reserved for support
1672609EN-03 01/2020
79
Modbus/TCP DFB for Quantum PLC
80
1672609EN-03 01/2020
TeSys DFB Library V2 for Unity Pro Profibus DFB 1672609EN-03 01/2020
Profibus DFB
Chapter 5
Profibus DFB
Introduction
This chapter describes the TeSys U and TeSys T Profibus DP DFBs.
What Is in This Chapter? This chapter contains the following topics:
Topic Ctrl_pfb_u_ms: TeSys U Control/Command for Profibus DP MS Ctrl_pfb_u_mms: TeSys U Control/Command for Profibus DP MMS Ctrl_pfb_t_mms: TeSys T Control/Command for Profibus DP MMS
Page 82 84 86
1672609EN-03 01/2020
81
Profibus DFB
Ctrl_pfb_u_ms: TeSys U Control/Command for Profibus DP MS
Presentation
The Ctrl_pfb_u_ms DFB is dedicated to the control and command of a single TeSys U starter-controller through the Profibus DP MS (Motor Starter) network.
With the MS profile, the TeSys U starter-controller commands are managed on bit level. For more information, see the TeSys U LULC07 Profibus DP Communication Module User Manual.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Ctrl_pfb_u_ms 1.00 7 10 0 0
Graphical Representation
TeSys U Compliance The Ctrl_pfb_u_ms DFB is compliant with the following TeSys U sub-assemblies:
Power base Control unit
Communication module GSD file modules
LUB�� non-reversing power base LU2B�� reversing power base
LUCA standard control unit LUCB and LUCD advanced control units LUCC advanced control unit (up to 32 A/15 kW or 20 hp) LUCL magnetic control unit LUCM multifunction control unit (up to 32 A/15 kW or 20 hp)
LULC07 Profibus DP communication module
Sc St R MS with or without PKW Sc Ad R MS with or without PKW Sc Mu R MS with or without PKW Sc Mu L MS with or without PKW
Software Implementation
Ms_in1 input word must be linked to the first word of the Profibus slave input cyclic data. Ms_out1 output word must be linked to the first word of the Profibus slave output cyclic data.
82
1672609EN-03 01/2020
Profibus DFB
Input Characteristics The following table describes the DFB inputs and their availability according to the control unit:
Input
Ms_in1 Run_fwd Run_rev Rst_flt
Rst_warn Em_strt Trip_tst
Type
INT EBOOL EBOOL EBOOL
Range
� 0...1 0...1 0...1
Default Value
0
0 0 0
EBOOL
0...1
0
EBOOL
0...1
0
EBOOL
0...1
0
Description
LUCA LUCL
Must be linked to the first word of the MS Profibus slave input cyclic data
Motor run forward command
Motor run reverse command
Reset device (if register 451 = 102 or 104, fault acknowledgment causes a return to communication module factory settings)
Reset warning (for example,
communication loss)
Emergency start (reset thermal
�
memory)
Overcurrent trip test via communication � bus
LUCB LUCC LUCD
�
�
LUCM
Output Characteristics The following table describes the DFB outputs and their availability according to the control unit:
Output
Ms_out1 Ready
Closed Tripped Fault Alarm Rst_auth Starting
Running Avg_curr
Type
INT EBOOL
Range
� 0...1
Default Value
0
0
EBOOL
0...1
0
EBOOL
0...1
0
EBOOL
0...1
0
EBOOL
0...1
0
EBOOL
0...1
0
EBOOL
0...1
0
EBOOL INT
0...1
0
0...200
0
Description
LUCA LUCL
Must be linked to the first word of the MS Profibus slave output cyclic data
System ready: the rotary handle is
turned to On position and there is no
fault
Pole status: closed
System tripped: the rotary handle is turned to Trip position
All faults
All warnings
Fault reset authorized
�
Start in progress:
�
1 = ascending current is greater than
10% FLA
0 = descending current is lower than
150% FLA
Motor running with detection of current, � if greater than 10% FLA
Average motor current (x 1% FLA)
�
LUCB LUCC LUCD
LUCM
1672609EN-03 01/2020
83
Profibus DFB
Ctrl_pfb_u_mms: TeSys U Control/Command for Profibus DP MMS
Presentation Characteristics
The Ctrl_pfb_u_mms DFB is dedicated to the control and command of a single TeSys U starter-controller (up to 32 A/15 kW or 20 hp) with a LUCM multifunction control unit and a LULC07 Profibus DP communication module through the Profibus DP MMS (Motor Management Starter) network.
With the MMS profile, the TeSys U starter-controller commands are managed on bit rising edges. For more information, see the TeSys U LULC07 Profibus DP Communication Module User Manual.
Characteristic Name Version Input Output Input/Output Public Variable
Value Ctrl_pfb_u_mms 1.00 10 13 0 0
Graphical Representation
TeSys U Compliance The Ctrl_pfb_u_mms DFB is compliant with the following TeSys U sub-assemblies:
Power base
Control unit Communication module GSD file modules
LUB�� non-reversing power base (up to 32 A/15 kW or 20 hp) LU2B�� reversing power base (up to 32 A/15 kW or 20 hp)
LUCM multifunction control unit
LULC07 Profibus DP communication module
Sc Mu R MMS with or without PKW Sc Mu L MMS with or without PKW
84
1672609EN-03 01/2020
Profibus DFB
Software Implementation
Mms_in1 and Mms_in2 input words must be linked to the first 2 words of the Profibus slave input cyclic data.
Mms_out1 output word must be linked to the first word of the Profibus slave output cyclic data.
Input Characteristics The following table describes the DFB inputs:
Input Mms_in1
Mms_in2
Run_rev Off_cmd Run_fwd Rst_flt Rst_warn Em_strt Ther_ov_test Automode_cmd
Type INT
INT
EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL
Range �
�
0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1
Default Value 0
0
0 0 0 0 0 0 0 0
Description Must be linked to the first word of the MMS Profibus slave input cyclic data Must be linked to the second word of the MMS Profibus slave input cyclic data Motor run reverse command Off command Motor run forward command Reset device Reset warning Emergency start (reset thermal memory) Thermal overload test Auto mode command
Output Characteristics The following table describes the DFB outputs:
Output Ms_out1
Rev_st Off_st Fwd_st Th_ov_st Automode_st Fault Alarm Ready Starting Running Tripped Avg_curr
Type INT
EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL INT
Range �
0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...2000
Default Value 0
0 0 0 0 0 0 0 0 0 0 0 0
Description Must be linked to the first word of the Profibus slave output cyclic data Run reverse System Off Run forward Thermal overload Auto mode TeSys U on fault TeSys U on alarm TeSys U ready to operate Motor starting Motor running Rotary knob on trip position Average motor current (x 0.1% FLA)
1672609EN-03 01/2020
85
Profibus DFB
Ctrl_pfb_t_mms: TeSys T Control/Command for Profibus DP MMS
Presentation
The Ctrl_pfb_t_mms DFB is dedicated to the control and command of a single TeSys T LTM R��P�� controller through the Profibus DP MMS (Motor Management Starter) network.
With the MMS profile, the TeSys T LTM R��P�� controller commands are managed on bit rising edges. For more information, see the TeSys T LTMR Profibus DP Communication Guide.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Ctrl_pfb_t_mms 1.00 11 22 0 0
Graphical Representation
86
1672609EN-03 01/2020
Profibus DFB
TeSys T Compliance
The Ctrl_pfb_t_mms DFB is compliant with all the TeSys T LTM R��P�� controller versions, with or without the LTM E expansion module.
Software Implementation
Mms_in1, Mms_in2 and Mms_in5 input words must be linked respectively to the first, second, and fifth word of the Profibus slave input cyclic data.
Mms_out1 output word must be linked to the first word of the Profibus slave output cyclic data.
Input Characteristics The following table describes the DFB inputs:
Input Mms_in1
Mms_in2
Mms_in5
Run_rev Off_cmd Run_fwd Rst_flt Em_strt Autotest Automode_cmd Lo_speed
Type INT
Range �
INT
�
INT
�
EBOOL 0...1 EBOOL 0...1 EBOOL 0...1 EBOOL 0...1 EBOOL 0...1 EBOOL 0...1 EBOOL 0...1 EBOOL 0...1
Default Value 0
0
0
0 0 0 0 0 0 0 0
Description Must be linked to the first word of the MMS Profibus slave input cyclic data Must be linked to the second word of the MMS Profibus slave input cyclic data Must be linked to the fifth word of the MMS Profibus slave input cyclic data Motor run reverse command Stop command Motor run forward command Fault reset command Emergency start (reset thermal memory) Self test command Auto mode command Motor low speed command
1672609EN-03 01/2020
87
Profibus DFB
Output Characteristics The following table describes the DFB outputs and their availability according to the programming platform:
Output Mms_out1
Rev_st Off_st Fwd_st Th_ov_st Automode_st Fault Alarm Ready Starting Running Tripped Auto_rst Pwr_rqst Rst_time Rpd_cycl Load_shd Hi_speed Hmi_loss Net_loss Motor_tr Avg_curr
Type INT
Range �
EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL INT
0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...2000
Default Value 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Description Must be linked to the first word of the Profibus slave output cyclic data Run reverse System Off Run forward Thermal overload Auto mode System fault System warning System ready Motor starting Motor running (with detection of a current, if greater than 10% FLC) System tripped Auto-reset active Fault power cycle requested Motor restart time undefined Rapid cycle lockout Voltage load shedding Motor high speed HMI port communication loss Network port communication loss Motor transition lockout Average motor current (x 0.1 % FLA)
88
1672609EN-03 01/2020
TeSys DFB Library V2 for Unity Pro Cyclic Control/Command DFB 1672609EN-03 01/2020
Cyclic Control/Command DFB
Chapter 6
Cyclic Control/Command DFB
Introduction
This chapter describes the TeSys U and TeSys T cyclic control/command DFBs.
What Is in This Chapter? This chapter contains the following topics:
Topic Ctrl_cmd_u: TeSys U Cyclic Control/Command Ctrl_cmd_t: TeSys T Cyclic Control/Command
Page 90 92
1672609EN-03 01/2020
89
Cyclic Control/Command DFB
Ctrl_cmd_u: TeSys U Cyclic Control/Command
Presentation
The Ctrl_cmd_u DFB is dedicated to the control and command of a single TeSys U starter-controller through cyclic data exchanges on Modbus/TCP (IO scanning), CANopen, and Advantys STB networks.
For more information, see: TeSys U LULC032-033 Modbus Communication Module User Manual TeSys U LULC08 CANopen Communication Module User Manual TeSys U LULC15 Advantys STB Communication Module User Manual
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Ctrl_cmd_u 1.00 and 1.10 7 11 0 0
NOTE: Version 1.10 is compatible with Quantum, Premium, and M340 PLCs. Version 1.00 is compatible only with Premium and M340 PLCs.
Graphical Representation
90
1672609EN-03 01/2020
Cyclic Control/Command DFB
TeSys U Compliance The Ctrl_cmd_u DFB is compliant with the following TeSys U sub-assemblies:
Power base Control unit
Communication module
LUB�� non-reversing power base LU2B�� reversing power base
LUCA standard control unit LUCB and LUCD advanced control units LUCC advanced control unit (up to 32 A/15 kW or 20 hp) LUCL magnetic control unit LUCM multifunction control unit (up to 32 A/15 kW or 20 hp)
LULC08 CANopen communication module LULC15 Advantys STB communication module LULC033 Modbus communication module with an Ethernet gateway
Input Characteristics The following table describes the DFB inputs and their availability according to the control unit:
Input
Reg_455 Run_fwd Run_rev Rst_flt
Rst_warn Ther_ov Trip_tst
Type
Range
INT
EBOOL EBOOL EBOOL
0...65535
0...1 0...1 0...1
EBOOL
EBOOL EBOOL
0...1
0...1 0...1
Default Value Description
LUCA LUCL
0
To link to register 455 of cyclic data
inputs
0
Motor run forward command
0
Motor run reverse command
0
Reset device (if device 451 = 102 or 104,
fault acknowledgment causes a return to
communication module factory settings)
0
Reset warning (for example,
communication loss)
0
Automatic thermal overload fault test �
0
Overcurrent trip test via communication �
bus
LUCB LUCC LUCD
� �
LUCM
Output Characteristics The following table describes the DFB outputs and their availability according to the control unit:
Output
Reg_704 Reg_703 Ready
Closed Tripped Fault Alarm Rst_auth Starting
Running Avg_curr
Type
INT INT EBOOL
EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL
EBOOL INT
Range
0...65535 0...65535 0...1
0...1 0...1 0...1 0...1 0...1 0...1
0...1 0...200
Default Value Description
LUCA LUCL
0
To link to register 704 of cyclic data
outputs
0
To link to register 703 of cyclic data
outputs
0
System ready: the rotary handle is
turned to On position and there is no
fault.
0
Pole status: closed
0
System tripped: the rotary handle is
turned to Trip position.
0
All faults
0
All warnings
0
Fault reset authorized
�
0
Start in progress:
�
0 = descending current is lower than
150% FLA
1 = ascending current is greater than
10% FLA
0
Motor running with detection of current, if �
greater than 10% FLA
0
Average motor current (x 1% FLA)
�
LUCB LUCC LUCD
LUCM
1672609EN-03 01/2020
91
Cyclic Control/Command DFB
Ctrl_cmd_t: TeSys T Cyclic Control/Command
Presentation
The Ctrl_cmd_t DFB is dedicated to the control and command of a single TeSys T LTM R��C�� CANopen or a TeSys T LTMR��E�� Modbus/TCP controller through cyclic data exchanges on Modbus/TCP (IO scanning) and CANopen networks.
For more information, see: TeSys T LTMR Ethernet Communication Guide TeSys T LTMR CANopen Communication Guide
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Ctrl_cmd_t 1.00 and 1.10 7 21 0 0
NOTE: Version 1.10 is compatible with Quantum, Premium, and M340 PLCs. Version 1.0 is compatible only with Premium and M340 PLCs.
Graphical Representation
92
1672609EN-03 01/2020
Cyclic Control/Command DFB
TeSys T Compliance
The Ctrl_cmd_t DFB is compliant with the TeSys T LTM R��C�� CANopen and with the TeSys T LTM R��E�� Modbus/TCP controller versions, with or without the LTM E expansion module.
Input Characteristics The following table describes the DFB inputs:
Input Reg_455 Reg_456 Run_fwd Run_rev Lo_speed Rst_flt Autotest
Type INT INT EBOOL EBOOL EBOOL EBOOL EBOOL
Range 0...65535 0...65535 0...1 0...1 0...1 0...1 0...1
Default Value Description
0
To link to register 455 of cyclic data inputs
0
To link to register 456 of cyclic data inputs
0
Motor run forward command
0
Motor run reverse command
0
Motor low speed command
0
Fault reset command
0
Self test command
Output Characteristics The following table describes the DFB outputs:
Output Reg_704 Ready Syst_on Fault Alarm Tripped Rst_auth Ctrl_pwr Running Hmi_ctrl Starting
Auto_rst Pwr_rqst Rst_time Rpd_cycl Load_shd Hi_speed
Hmi_loss Net_loss Motor_tr Avg_curr
Type INT EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL EBOOL
Range 0...65535 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1 0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL
0...1
EBOOL EBOOL EBOOL INT
0...1 0...1 0...1 0...200
Default Value Description
0
To link to register 704 of cyclic data outputs
0
System ready
0
System On
0
System fault
0
System warning
0
System tripped
0
Fault reset authorized
0
Controller power
0
Motor running (with detection of a current, if greater than 10% FLC)
0
Control through HMI
0
Motor starting (start in progress)
0 = descending current is less than 150% FLC
1 = ascending current is greater than 10% FLC
0
Auto-reset active
0
Power cycle requested
0
Motor restart time undefined
0
Rapic cycle lockout
0
Load shedding
0
Motor speed
0 = FLC1 setting is used
1 = FLC2 setting is used
0
HMI port communication loss
0
Network port communication loss
0
Motor transition lockout
0
Average motor current (x 1% FLA)
1672609EN-03 01/2020
93
Cyclic Control/Command DFB
94
1672609EN-03 01/2020
TeSys DFB Library V2 for Unity Pro PKW Exchanges DFB 1672609EN-03 01/2020
PKW Exchanges DFB
Chapter 7
PKW Exchanges DFB
Introduction
This chapter describes the TeSys U and TeSys T DFBs for PKW exchanges.
What Is in This Chapter? This chapter contains the following topics:
Topic Special_pkw_u: TeSys U DFB for PKW Exchanges Special_pkw_t: TeSys T DFB for PKW Exchanges Custom_pkw: Custom Read DFB for PKW Exchanges
Page 96 102 113
1672609EN-03 01/2020
95
PKW Exchanges DFB
Special_pkw_u: TeSys U DFB for PKW Exchanges
Presentation
The Special_pkw_u DFB is dedicated to the reading of up to 16 predefined registers of a TeSys U startercontroller (up to 12 A/5.5 kW or 7 hp) with a LUCM multifunction control unit and one of the following communication modules that support PKW (Periodically Kept in Acyclic Words) exchanges:
LULC07 (Profibus) LULC08 (CANopen) LULC15 (Advantys STB)
For more information, see: LULC07 Profibus Communication Module User Manual LULC08 CANopen Communication Module User Manual LULC15 Advantys STB Communication Module User Manual
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Special_pkw_u 1.00 7 3 2 2
Graphical Representation
TeSys U Compliance The Special_pkw_u DFB is compliant with the following TeSys U sub-assemblies:
Power base Control unit Communication module
GSD file modules
LUB�� non-reversing power base (up to 12 A/5.5 kW or 7 hp) LU2B�� reversing power base (up to 12 A/5.5 kW or 7 hp)
LUCM multifunction control unit
LULC07 Profibus DP communication module LULC08 CANopen communication module LULC15 Advantys STB communication module
Profibus: Sc Mu R MS PKW Sc Mu L MS PKW Sc Mu R MMS PKW Sc Mu L MMS PKW
96
1672609EN-03 01/2020
PKW Exchanges DFB
Software Implementation
Pkw_in1, Pkw_in2, Pkw_in3, and Pkw_in4 input words must be linked to the first 4 words of the PKW slave input cyclic data.
Pkw_out1 and Pkw_out2 input/output words must be linked to the first 2 words of the PKW slave output cyclic data.
The output data is only valid if the End_st output variable is set to 1 and if there is no fault detected (Fault_st = 0).
When using TSXPBY100 Premium Profibus coupler it is mandatory to set %QWxy.0.242:X0 to 1 to guarantee the data consistency.
Input Characteristics The following table describes the DFB inputs:
Input Pkw_in1
Type INT
Range �
Default Value 0
Pkw_in2
INT
�
0
Pkw_in3
INT
�
0
Pkw_in4
INT
�
0
Prog_num
INT
0...6
0
Rst_cmd Strt_cmd
EBOOL
0...1
0
EBOOL
0...1
0
Description
Must be linked to the first word of the PKW slave input cyclic data
Must be linked to the second word of the PKW slave input cyclic data
Must be linked to the third word of the PKW slave input cyclic data
Must be linked to the fourth word of the PKW slave input cyclic data
Program number See Program Number, page 97
Reset command
Start command
Output Characteristics The following table describes the DFB outputs:
Output Fault_st Rst_st End_st
Type EBOOL EBOOL EBOOL
Range 0...1 0...1 0...1
Default Value 0 0 0
Description Fault detected Reset state End state
Input/Output Characteristics The following table describes the DFB input/outputs:
Input/Output Pkw_out1
Pkw_out2
Type INT
INT
Range �
�
Default Value 0
0
Description
Must be linked to the first word of the PKW slave output cyclic data
Must be linked to the second word of the PKW slave output cyclic data
Program Number
The Prog_num input variable enables the user to define the public variables data depending on the application type. Each program uses variables related to one application (diagnostic, maintenance, measurement,...). The following table describes the programs of the DFB:
Program Number 0 1 2 3 4 5 6
Description Bypass: no action Diagnostic: faults monitoring variables, warnings monitoring variables, and communication monitoring variables Maintenance: global statistics variables Measurements: measurements monitoring variables Statistics: last trip statistics and trip N�1 statistics Statistics: N�2 and N�3 trip statistics Statistics: N�4 trip statistics
1672609EN-03 01/2020
97
PKW Exchanges DFB
Public Variables Characteristics The following table describes the DFB public variables:
Public Variable Sq_princ Out_data[0]...[15]
Type INT ARRAY[0...15] of INT
Range 0...7 0...65535
Default Value 0 0
Description Reserved for support The output data depends on the program number
Out_data[0]...[15] Public Variable (Program 1)
The following table describes the Out_data[0]...[15] public variable in the case of the diagnostic program (program number 1):
Public Variable Out_data[0]
Out_data[1]
Out_data[2] Out_data[3] Out_data[4] ...Out_data[15]
Type INT
INT
INT INT �
Register 452
461
457 450 �
Bit 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0...1 2 3 4 5 6 7 8...9 10 11 12 13...14 15 0 1 2 3 4...15 � �
Description Short-circuit fault Magnetic fault Ground fault Thermal fault Long start fault Jam fault Phase imbalance fault Underload fault Shunt trip fault Test trip fault Communication loss fault on LUCM Modbus port Control unit internal fault Module identification or internal communication fault Module internal fault Module trip fault Module drop-out fault Not significant Ground fault warning Thermal warning Long start warning Jam warning Phase imbalance warning Under-current warning Not significant Communication loss fault on LUCM Modbus port Internal temperature warning Module identification or internal communication warning Not significant Module warning Button position On (0 = Off) Button position Trip (0 = Not tripped) Contactor state On 24 Vdc power supply present on outputs Not significant Time to automatic reset on a thermal fault (s) Not significant
98
1672609EN-03 01/2020
PKW Exchanges DFB
Out_data[0]...[15] Public Variable (Program 2)
The following table describes the Out_data[0]...[15] public variable in the case of the maintenance program (program number 2):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT INT �
Register 100 101 102 103 104 105 106 108 115 116 117 118 119 120 121 �
Description Short-circuit faults count Magnetic faults count Ground faults count Thermal faults count Long start faults count Jam faults count Phase imbalance faults count Shunt trip faults count Auto-resets count Thermal warnings count Starts count (LSB) Starts count (MSB) Operating time (LSB) Operating time (MSB) Maximum internal temperature (�C) Not significant
Out_data[0]...[15] Public Variable (Program 3)
The following table describes the Out_data[0]...[15] public variable in the case of the measurements program (program number 3):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] ...Out_data[13] Out_data[14]
Out_data[15]
Type � INT INT INT INT INT INT INT INT �
INT
INT
Register � 465 466 467 468 469 470 471 472 �
79
652
Description Not significant Thermal capacity level (%) Average motor current (x 0.1 % FLA) L1 current (% FLA) L2 current (% FLA) L3 current (% FLA) Ground current (% FLA min) Current imbalance coefficient Control unit internal temperature (�C) Not significant
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15 to 0.6 A 14 = adjustment range 0.35 to 1.4 A 50 = adjustment range 1.25 to 5 A 120 = adjustment range 3 to 12 A 180 = adjustment range 4.5 to 18 A 320 = adjustment range 8 to 32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
1672609EN-03 01/2020
99
PKW Exchanges DFB
Out_data[0]...[15] Public Variable (Program 4)
The following table describes the Out_data[0]...[15] public variable in the case of the statistics program (program number 4):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14]
Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT INT
INT
Register 150 152 153 154 155 156 157 180 182 183 184 185 186 187 79
652
Description
Last trip fault number
Last trip thermal capacity level (% trip level)
Last trip average current (% FLA)
Last trip L1 current (% FLA)
Last trip L2 current (% FLA)
Last trip L3 current (% FLA)
Last trip ground current (% FLA min)
N�1 trip fault number
N�1 trip thermal capacity level (% trip level)
N�1 trip average current (% FLA)
N�1 trip L1 current (% FLA)
N�1 trip L2 current (%FLA)
N�1 trip L3 current (% FLA)
N�1 trip ground current (% FLA min)
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15 to 0.6 A 14 = adjustment range 0.35 to 1.4 A 50 = adjustment range 1.25 to 5 A 120 = adjustment range 3 to 12 A 180 = adjustment range 4.5 to 18 A 320 = adjustment range 8 to 32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
Out_data[0]...[15] Public Variable (Program 5)
The following table describes the Out_data[0]...[15] public variable in the case of the statistics program (program number 5):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT INT
Register 210 212 213 214 215 216 217 240 242 243 244 245 246 247 79
Description N�2 trip fault number N�2 trip thermal capacity level (% trip level) N�2 trip average current (% FLA) N�2 trip L1 current (% FLA) N�2 trip L2 current (% FLA) N�2 trip L3 current (% FLA) N�2 trip ground current (% FLA min) N�3 trip fault number N�3 trip thermal capacity level (% trip level) N�3 trip average current (% FLA) N�3 trip L1 current (% FLA) N�3 trip L2 current (%FLA) N�3 trip L3 current (% FLA) N�3 trip ground current (% FLA min) Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15 to 0.6 A 14 = adjustment range 0.35 to 1.4 A 50 = adjustment range 1.25 to 5 A 120 = adjustment range 3 to 12 A 180 = adjustment range 4.5 to 18 A 320 = adjustment range 8 to 32 A
100
1672609EN-03 01/2020
PKW Exchanges DFB
Public Variable Out_data[15]
Type INT
Register 652
Description
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
Out_data[0]...[15] Public Variable (Program 6)
The following table describes the Out_data[0]...[15] public variable in the case of the statistics program (program number 6):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[13] Out_data[14]
Out_data[15]
Type INT INT INT INT INT INT INT � INT
INT
Register 270 272 273 274 275 276 277 � 79
652
Description N�4 trip fault number N�4 trip thermal capacity level (% trip level) N�4 trip average current (% FLA) N�4 trip L1 current (% FLA) N�4 trip L2 current (% FLA) N�4 trip L3 current (% FLA) N�4 trip ground current (% FLA min) Reserved
Control unit sensor maximum current (x 0.1 A): 6 = adjustment range 0.15 to 0.6 A 14 = adjustment range 0.35 to 1.4 A 50 = adjustment range 1.25 to 5 A 120 = adjustment range 3 to 12 A 180 = adjustment range 4.5 to 18 A 320 = adjustment range 8 to 32 A
Full load amps setting (% FLA max): minimum = 25 (default value) maximum = 100
1672609EN-03 01/2020
101
PKW Exchanges DFB
Special_pkw_t: TeSys T DFB for PKW Exchanges
Presentation
The Special_pkw_t DFB is dedicated to the reading of up to 16 predefined registers of a single TeSys T LTM R��P�� Profibus controller through the Profibus (MS and MMS) network, and a TeSys T LTM R��C�� CANopen controller through the CANopen network, and supporting PKW (Periodically Kept in Acyclic Words) exchanges.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Special_pkw_t 1.00 7 3 2 2
Graphical Representation
TeSys T Compliance The Special_pkw_t DFB is compliant with all the TeSys T LTM R��P�� controller versions, with or without the LTM E expansion module.
Software Implementation Pkw_in1, Pkw_in2, Pkw_in3, and Pkw_in4 input words must be linked to the first 4 words of the PKW slave input cyclic data. Pkw_out1 and Pkw_out2 input/output words must be linked to the first 2 words of the PKW slave output cyclic data. The output data is only valid if the End_st output variable is set to 1 and if there is no fault detected (Fault_st = 0). When using TSXPBY100 Premium Profibus coupler it is mandatory to set %QWxy.0.242:X0 to 1 to guarantee the data consistency.
102
1672609EN-03 01/2020
PKW Exchanges DFB
Input Characteristics The following table describes the DFB inputs:
Input Pkw_in1 Pkw_in2 Pkw_in3 Pkw_in4 Prog_num
Rst_cmd Strt_cmd
Type INT INT INT INT INT
EBOOL EBOOL
Range � � � � 0...81
0...1 0...1
Default Value 0 0 0 0 0
0 0
Description Must be linked to the first word of the PKW slave input cyclic data Must be linked to the second word of the PKW slave input cyclic data Must be linked to the third word of the PKW slave input cyclic data Must be linked to the fourth word of the PKW slave input cyclic data Program number See Program Number, page 103 Reset command Start command
Output Characteristics The following table describes the DFB outputs:
Output Fault_st Rst_st End_st
Type EBOOL EBOOL EBOOL
Range 0...1 0...1 0...1
Default Value 0 0 0
Description Fault detected Reset state End state
Input/Output Characteristics The following table describes the DFB input/outputs:
Input/Output Pkw_out1 Pkw_out2
Type INT INT
Range � �
Default Value 0 0
Description Must be linked to the first word of the PKW slave output cyclic data Must be linked to the second word of the PKW slave output cyclic data
Program Number
The Prog_num input variable enables the user to define the public variables data depending on the application type. Each program holds variables related to one application (diagnostic, maintenance, measurement,...). The following table describes the programs of the DFB:
Program Number 0 10 20 30 31 32 40 41 50 51 60 61 70 71 80 81
Description
Bypass: no action Diagnostic: faults monitoring variables, warnings monitoring variables, and communication monitoring variables Maintenance: global statistics variables Measurements 1 Measurements 2 Measurements 3 Statistics: last fault statistics (N�0) Statistics: last fault statistics (with expansion module) (N�0) Statistics: N�1 fault statistics Statistics: N�1 fault statistics (with expansion module) Statistics: N�2 fault statistics Statistics: N�2 fault statistics (with expansion module) Statistics: N�3 fault statistics Statistics: N�3 fault statistics (with expansion module) Statistics: N�4 fault statistics Statistics: N�4 fault statistics (with expansion module)
1672609EN-03 01/2020
103
PKW Exchanges DFB
Public Variables Characteristics The following table describes the DFB public variables:
Public Variable Sq_princ Out_data[0]...[15]
Type INT ARRAY[0...15] of INT
Range 0...7 0...65535
Default Value 0 0
Description
Reserved for support
The output data depends on the program number
Out_data[0]...[15] Public Variable (Program 10)
The following table describes the Out_data[0]...[15] public variable in the case of the diagnostic program (program number 10):
Public Variable Out_data[0]
Out_data[1]
Type INT
INT
Register Bit
452
0...1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
453
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description Reserved Ground current fault Thermal overload fault Long start fault Jam fault Current phase imbalance fault Undercurrent fault Reserved Test fault HMI port fault Controller internal fault Internal port fault Not significant Network port config fault Network port fault External system fault Diagnostic fault Wiring fault Overcurrent fault Current phase loss fault Current phase reversal fault Motor temperature sensor fault (1) Voltage phase imbalance fault (1) Voltage phase loss fault (1) Voltage phase reversal fault (1) Undervoltage fault (1) Overvoltage fault (1) Underpower fault (1) Overpower fault (1) Under power factor fault (1) Over power factor fault (1)
104
1672609EN-03 01/2020
Public Variable Out_data[2]
Out_data[3]
Out_data[4]
Type INT
INT
INT
Register 461
462
457
Bit 0...1 2 3 4 5 6 7 8...9 10 11 12...14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Description Not significant Ground current warning Thermal overload warning Not significant Jam warning Current phase imbalance warning Undercurrent warning Not significant HMI port warning Controller internal temperature warning Not significant Network port warning Not significant Diagnostic warning Reserved Overcurrent warning Current phase loss warning Current phase reversal warning Motor temperature sensor warning Voltage phase imbalance warning (1) Voltage phase loss warning (1) Not significant Undervoltage warning (1) Overvoltage warning (1) Underpower warning (1) Overpower warning (1) Under power factor warning (1) Over power factor warning (1) Logic input 1 Logic input 2 Logic input 3 Logic input 4 Logic input 5 Logic input 6 Logic input 7 Logic input 8 (1) Logic input 9 (1) Logic input 10 (1) Logic input 11 (1) Logic input 12 (1) Logic input 13 (1) Logic input 14 (1) Logic input 15 (1) Logic input 16 (1)
PKW Exchanges DFB
1672609EN-03 01/2020
105
PKW Exchanges DFB
Public Variable
Type
Register Bit
Description
Out_data[5]
INT
458
0
Logic output 1
1
Logic output 2
2
Logic output 3
3
Logic output 4
4
Logic output 5 (1)
5
Logic output 6 (1)
6
Logic output 7 (1)
7
Logic output 8 (1)
8...15
Reserved
Out_data[6]
INT
450
�
Minimum wait time (s)
Out_data[7]
�
�
�
Reserved
...Out_data[15]
(1) The variable is available for the LTM R controller and the LTM EV40 expansion module combination.
Out_data[0]...[15] Public Variable (Program 20)
The following table describes the Out_data[0]...[15] public variable in the case of the maintenance program (program number 20):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT � INT INT INT INT INT INT INT INT �
Register 102 103 104 105 106 107 � 114 115 116 117 118 119 120 121 �
Description Ground current faults count Thermal overload faults count Long start faults count Jam faults count Current phase imbalance faults count Undercurrent faults count Reserved Network port faults count Auto-resets count Thermal overload warnings count Motor starts count (LSB) Motor starts count (MSB) Operating time (s) (LSB) Operating time (MSB) Maximum controller internal temperature (�C) Reserved
Out_data[0]...[15] Public Variable (Program 30)
The following table describes the Out_data[0]...[15] public variable in the case of the first measurements program (program number 30):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10]
Type � INT INT INT INT INT INT INT INT INT INT
Register � 465 466 467 468 469 470 471 472 474 475
Description Reserved Thermal capacity level (% trip level) Average current ratio (% FLC) L1 current ratio (% FLC) L2 current ratio (% FLC) L3 current ratio (% FLC) Ground current ratio ( x 0.1 % FLC min) Current phase imbalance (%) Controller internal temperature (�C) Frequency (x 0.01 Hz) Motor temperature sensor (x 0.1 )
106
1672609EN-03 01/2020
PKW Exchanges DFB
Public Variable Out_data[11] ...Out_data[13] Out_data[14] Out_data[15]
Type �
INT INT
Register Description
�
Reserved
96
Full load current (FLC) max (x 0.1 A)
652
Motor full load current (FLC) ratio
Out_data[0]...[15] Public Variable (Program 31)
The following table describes the Out_data[0]...[15] public variable in the case of the second measurements program (program number 31):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] ...Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT INT INT �
Register 500 501 502 503 504 505 506 507 508 509 511 512 513 514 �
Description Average current (x 0.01 A) MSB Average current (x 0.01 A) LSB L1 current (x 0.01 A) MSB L1 current (x0.01 A) LSB L2 current (x 0.01 A) MSB L2 current (x0.01 A) LSB L3 current (x 0.01 A) MSB L3 current (x0.01 A) LSB Ground current (x 0.001 A) MSB Ground current (x 0.001 A) LSB Time to trip (x 1 s) Motor last start current ratio (% FLC) Motor last start duration (s) Motor starts per hour count �
Out_data[0]...[15] Public Variable (Program 32)
The following table describes the Out_data[0]...[15] public variable in the case of the third measurements program (program number 32):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] ...Out_data[15]
Type INT INT INT INT INT INT INT INT �
Register 476 477 478 479 480 481 482 483 �
Description Average voltage (V) L3�L1 voltage (V) L1�L2 voltage (V) L2�L3 voltage (V) Voltage phase imbalance (%) Power factor (x 0.01) Active power (x 0.1 kW) Reactive power (x 0.1 kVAr) Reserved
Out_data[0]...[15] Public Variable (Program 40)
The following table describes the Out_data[0]...[15] public variable in the case of the last fault statistics program (program number 40):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5]
Type INT INT INT INT INT INT
Register 150 151 152 153 154 155
Description Detected fault code N�0 Motor full load current ratio N�0 (% FLC max) Thermal capacity level N�0 (% trip level) Average current ratio N�0 (% FLC) L1 current ratio N�0 (% FLC) L2 current ratio N�0 (% FLC)
1672609EN-03 01/2020
107
PKW Exchanges DFB
Public Variable Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT WORD[4]
Register 156 157 158 159 160 161 162 163 164 165
Description L3 current ratio N�0 (% FLC) Ground current ratio N�0 (x 0.1 % FLC min) Full load current max N�0 (x 0.1 A) Current phase imbalance N�0 (%) Frequency N�0 (x 0.1 Hz) Motor temperature sensor N�0 (x 0.1 ) Date and time N�0 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 41)
The following table describes the Out_data[0]...[15] public variable in the case of the last fault statistics with expansion module program (program number 41):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 166 167 168 169 170 171 172 �
Description Average voltage N�0 (V) L3�L1 voltage N�0 (V) L1�L2 voltage N�0 (V) L2�L3 voltage N�0 (V) Voltage phase imbalance N�0 (%) Active power N�0 (kW) Power factor N�0 (x 0.01) Reserved
Out_data[0]...[15] Public Variable (Program 50)
The following table describes the Out_data[0]...[15] public variable in the case of the N�1 fault statistics program (program number 50):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type
Register
INT
180
INT
181
INT
182
INT
183
INT
184
INT
185
INT
186
INT
187
INT
188
INT
189
INT
190
INT
191
WORD[4] 192
193
194
195
Description Detected fault code N�1 Motor full load current ratio N�1 (% FLC max) Thermal capacity level N�1 (% trip level) Average current ratio N�1 (% FLC) L1 current ratio N�1 (% FLC) L2 current ratio N�1 (% FLC) L3 current ratio N�1 (% FLC) Ground current ratio N�1 (x 0.1 % FLC min) Full load current max N�1 (x 0.1 A) Current phase imbalance N�1 (%) Frequency N�1 (x 0.1 Hz) Motor temperature sensor N�1 (x 0.1 ) Date and time N�1 See DT_DateTime, page 111
108
1672609EN-03 01/2020
PKW Exchanges DFB
Out_data[0]...[15] Public Variable (Program 51)
The following table describes the Out_data[0]...[15] public variable in the case of the N�1 fault statistics with expansion module program (program number 51):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 196 197 198 199 200 201 202 �
Description Average voltage N�1 (V) L3�L1 voltage N�1 (V) L1�L2 voltage N�1 (V) L2�L3 voltage N�1 (V) Voltage phase imbalance N�1 (%) Active power N�1 (kW) Power factor N�1 (x 0.01) Reserved
Out_data[0]...[15] Public Variable (Program 60)
The following table describes the Out_data[0]...[15] public variable in the case of the N�2 fault statistics program (program number 60):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
Description Detected fault code N�2 Motor full load current ratio N�2 (% FLC max) Thermal capacity level N�2 (% trip level) Average current ratio N�2 (% FLC) L1 current ratio N�2 (% FLC) L2 current ratio N�2 (% FLC) L3 current ratio N�2 (% FLC) Ground current ratio N�2 (x 0.1 % FLC min) Full load current max N�2 (x 0.1 A) Current phase imbalance N�2 (%) Frequency N�2 (x 0.1 Hz) Motor temperature sensor N�2 (x 0.1 ) Date and time N�2 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 61)
The following table describes the Out_data[0]...[15] public variable in the case of the N�2 fault statistics with expansion module program (program number 61):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 226 227 228 229 230 231 232 �
Description Average voltage N�2 (V) L3�L1 voltage N�2 (V) L1�L2 voltage N�2 (V) L2�L3 voltage N�2 (V) Voltage phase imbalance N�2 (%) Active power N�2 (kW) Power factor N�2 (x 0.01) Reserved
1672609EN-03 01/2020
109
PKW Exchanges DFB
Out_data[0]...[15] Public Variable (Program 70)
The following table describes the Out_data[0]...[15] public variable in the case of the N�3 fault statistics program (program number 70):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
Description Detected fault code N�3 Motor full load current ratio N�3 (% FLC max) Thermal capacity level N�3 (% trip level) Average current ratio N�3 (% FLC) L1 current ratio N�3 (% FLC) L2 current ratio N�3 (% FLC) L3 current ratio N�3 (% FLC) Ground current ratio N�3 (x 0.1 % FLC min) Full load current max N�3 (x 0.1 A) Current phase imbalance N�3 (%) Frequency N�3 (x 0.1 Hz) Motor temperature sensor N�3 (x 0.1 ) Date and time N�3 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 71)
The following table describes the Out_data[0]...[15] public variable in the case of the N�3 fault statistics with expansion module program (program number 71):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 256 257 258 259 260 261 262 �
Description Average voltage N�3 (V) L3�L1 voltage N�3 (V) L1�L2 voltage N�3 (V) L2�L3 voltage N�3 (V) Voltage phase imbalance N�3 (%) Active power N�3 (kW) Power factor N�3 (x 0.01) Reserved
110
1672609EN-03 01/2020
PKW Exchanges DFB
Out_data[0]...[15] Public Variable (Program 80)
The following table describes the Out_data[0]...[15] public variable in the case of the N�4 fault statistics program (program number 80):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] Out_data[8] Out_data[9] Out_data[10] Out_data[11] Out_data[12] Out_data[13] Out_data[14] Out_data[15]
Type INT INT INT INT INT INT INT INT INT INT INT INT WORD[4]
Register 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
Description Detected fault code N�4 Motor full load current ratio N�4 (% FLC max) Thermal capacity level N�4 (% trip level) Average current ratio N�4 (% FLC) L1 current ratio N�4 (% FLC) L2 current ratio N�4 (% FLC) L3 current ratio N�4 (% FLC) Ground current ratio N�4 (x 0.1 % FLC min) Full load current max N�4 (x 0.1 A) Current phase imbalance N�4 (%) Frequency N�4 (x 0.1 Hz) Motor temperature sensor N�4 (x 0.1 ) Date and time N�4 See DT_DateTime, page 111
Out_data[0]...[15] Public Variable (Program 81)
The following table describes the Out_data[0]...[15] public variable in the case of the N�4 fault statistics with expansion module program (program number 81):
Public Variable Out_data[0] Out_data[1] Out_data[2] Out_data[3] Out_data[4] Out_data[5] Out_data[6] Out_data[7] ...Out_data[15]
Type INT INT INT INT INT INT INT �
Register 286 287 288 289 290 291 292 �
Description Average voltage N�4 (V) L3�L1 voltage N�4 (V) L1�L2 voltage N�4 (V) L2�L3 voltage N�4 (V) Voltage phase imbalance N�4 (%) Active power N�4 (kW) Power factor N�4 (x 0.01) Reserved
DT_DateTime
Register Register N Register N+1 Register N+2 Register N+3
DT_DateTime is WORD[4] type and indicates date and time:
Bits 15...12 s H M Y
Bits 11...8 s H M Y
Bits 7...4 0 m D Y
Where: 0 = unused s = second
The format is 2 binary coded decimal (BCD) digits. The value range is 00...59 in BCD. m = minute The format is 2 binary coded decimal (BCD) digits. The value range is 00...59 in BCD. H = hour The format is 2 binary coded decimal (BCD) digits.
Bits 3...0 0 m D Y
1672609EN-03 01/2020
111
PKW Exchanges DFB
Data entry format Minimum value Maximum value
The value range is 00...23 in BCD. D = day
The format is 2 binary coded decimal (BCD) digits. The value range is (in BCD): 01...31 for months 01, 03, 05, 07, 08, 10, 12, 01...30 for months 04, 06, 09, 11, 01...29 for month 02 in a leap year, 01...28 for month 02 in a non-leap year.
M = month The format is 2 binary coded decimal (BCD) digits. The value range is 01...12 in BCD.
Y = year The format is 4 binary coded decimal (BCD) digits. The value range is 2006...2099 in BCD.
Data entry format and value range are:
DT#YYYY-MM-DD-HH:mm:ss DT#2006-01-01-00:00:00 DT#2099-12-31-23:59:59
January 1, 2006 December 31, 2099
NOTE: If the user enters values outside the defined range, the system will return an error.
112
1672609EN-03 01/2020
PKW Exchanges DFB
Custom_pkw: Custom Read DFB for PKW Exchanges
Presentation
The Custom_pkw DFB is dedicated to the reading of up to 5 sets of registers of a single TeSys device supporting PKW (Periodically Kept in Acyclic Words) exchanges.
A set of registers is defined by the address of the first register to read and the length of the set (up to 16 registers per set).
The Custom_pkw DFB completes the Special_pkw_u and Special_pkw_t DFBs and enables the user to select the registers to read.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Custom_pkw 1.00 6 3 2 7
Graphical Representation
TeSys U and TeSys T Compliance
TeSys U: The Custom_pkw DFB is compliant with the following TeSys U sub-assemblies: LUB�� non-reversing power base and LU2B�� reversing power base (up to 12 A/5.5 kW or 7 hp) LUCM multifunction control unit PKW compliant communication module
TeSys T: The Custom_pkw DFB is compliant with all the LTM R controller versions, with or without the LTM E expansion module.
When using TSXPBY100 Premium Profibus coupler it is mandatory to set %QWxy.0.242:X0 to 1 to guarantee the data consistency.
Software Implementation
Pkw_in1, Pkw_in2, Pkw_in3 and Pkw_in4 input words must be linked to the first 4 words of the PKW slave input cyclic data.
Pkw_out1 and Pkw_out2 output words must be linked to the first word of the first 2 words of the PKW slave output cyclic data.
The output data is only valid if the End_st output variable is set to 1 and if there is no fault detected (Fault_st = 0).
The public variables enable the user to read up to 5 sets of registers of a maximum length of 16 registers for each set:
1672609EN-03 01/2020
113
PKW Exchanges DFB
The user defines the starting point of a set of registers with the In_reg public variable. The user defines the length of the set of registers with the corresponding In_len public variable. The registers content is then returned in the corresponding Out_dat public variable.
Example with TeSys T
The user wants to read 3 sets of TeSys T registers: Global statistics: registers 102...106 (5 registers) Measurements: registers 465...470 (6 registers) Controller identification: registers 64...74 (11 registers)
The following table describes the values of the corresponding In_reg and In_len public variables:
Public Variable In_reg[0] In_reg[1] In_reg[2] In_len[0] In_len[1] In_len[2]
Value 102 465 64 5 6 11
Public Variable Out_dat0
Out_dat1
Out_dat2
The following table describes the values of the corresponding Out_dat public variables:
Out_dat0[0] Out_dat0[1] Out_dat0[2] Out_dat0[3] Out_dat0[4] Out_dat1[0] Out_dat1[1] Out_dat1[2] Out_dat1[3] Out_dat1[4] Out_dat1[5] Out_dat2[0]
Out_dat2[1]
Out_dat2[2]
Out_dat2[3]
Out_dat2[4]
Out_dat2[5]
Out_dat2[6] Out_dat2[7] Out_dat2[8] Out_dat2[9] Out_dat2[10]
Register 102 103 104 105 106 465 466 467 468 469 470 64
65
66
67
68
69
70 71 72 73 74
Description Ground current faults count Thermal overload faults count Long start faults count Jam faults count Current phase imbalance faults count Thermal capacity level (% trip level) Average current ratio (% FLC) L1 current ratio (% FLC) L2 current ratio (% FLC) L3 current ratio (% FLC) Ground current ratio (x 0.1 % FLC min) Controller commercial reference MSB = ASCII char 1, LSB = ASCII char 2 Controller commercial reference MSB = ASCII char 3, LSB = ASCII char 4 Controller commercial reference MSB = ASCII char 5, LSB = ASCII char 6 Controller commercial reference MSB = ASCII char 7, LSB = ASCII char 8 Controller commercial reference MSB = ASCII char 9, LSB = ASCII char 10 Controller commercial reference MSB = ASCII char 11, LSB = ASCII char 12 Controller serial number, register 1 Controller serial number, register 2 Controller serial number, register 3 Controller serial number, register 4 Controller serial number, register 5
114
1672609EN-03 01/2020
PKW Exchanges DFB
Input Characteristics The following table describes the DFB inputs :
Input Pkw_in1 Pkw_in2 Pkw_in3 Pkw_in4 Rst_cmd Strt_cmd
Type INT INT INT INT EBOOL EBOOL
Range � � � � 0...1 0...1
Default Value 0 0 0 0 0 0
Description Must be linked to the first word of the PKW slave input cyclic data Must be linked to the second word of the PKW slave input cyclic data Must be linked to the third word of the PKW slave input cyclic data Must be linked to the fourth word of the PKW slave input cyclic data Reset command Start command
Output Characteristics The following table describes the DFB outputs :
Output Fault_st Rst_st End_st
Type EBOOL EBOOL EBOOL
Range 0...1 0...1 0...1
Default Value 0 0 0
Description Fault detected Reset state End state
Input/Output Characteristics The following table describes the DFB input/outputs :
Input/Output Pkw_out1 Pkw_out2
Type INT INT
Range � �
Default Value 0 0
Description Must be linked to the first word of the PKW slave output cyclic data Must be linked to the second word of the PKW slave output cyclic data
Public Variables Characteristics The following table describes the DFB public variables:
Public Variable In_reg In_len Out_dat[0] Out_dat[1] Out_dat[2] Out_dat[3] Out_dat[4]
Type
Description
ARRAY [0...4] of INT Array of 5 words for the 5 index registers (In_reg(0]...In_reg[4])
ARRAY [0...4] of INT Array of 5 words for the length of each set of registers (In_len[0]...In_len[4])
ARRAY [0...15] of INT Array of up to 16 words containing the In_len[0] words starting from In_reg[0]
ARRAY [0...15] of INT Array of up to 16 words containing the In_len[1] words starting from In_reg[1]
ARRAY [0...15] of INT Array of up to 16 words containing the In_len[2] words starting from In_reg[2]
ARRAY [0...15] of INT Array of up to 16 words containing the In_len[3] words starting from In_reg[3]
ARRAY [0...15] of INT Array of up to 16 words containing the In_len[4] words starting from In_reg[4]
1672609EN-03 01/2020
115
PKW Exchanges DFB
116
1672609EN-03 01/2020
TeSys DFB Library V2 for Unity Pro Treatment DFB 1672609EN-03 01/2020
Treatment DFB
Chapter 8
Treatment DFB
Introduction
This chapter describes the Scale and Timestamp treatment DFBs.
What Is in This Chapter? This chapter contains the following topics:
Topic Scale: TeSys U DFB for Measurement Unit Conversion Timestamp_�: TeSys U DFB for Data Time-Stamping
Page 118 120
1672609EN-03 01/2020
117
Treatment DFB
Scale: TeSys U DFB for Measurement Unit Conversion
Presentation
The Scale DFB is dedicated to the conversion of current measurement unit from relative value (% FLC) to Amps for a TeSys U starter-controller (up to 12 A/5.5 kW or 7 hp) with a multifunction control unit. It also enables the user to select another unit in the A...mA range.
The Scale DFB is particularly used with the Special_pkw_u or the Special_mdb_u DFBs.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Scale 1.00 1 1 0 22
Graphical Representation
TeSys U Compliance The Scale DFB is compliant with the following TeSys U sub-assemblies:
Power base Control unit
LUB�� non-reversing power base (up to 12 A/5.5 kW or 7 hp) LU2B�� reversing power base (up to 12 A/5.5 kW or 7 hp)
LUCM multifunction control unit
Software Implementation See the Special_mdb_u DFB public variables description in Public Variables Characteristics, page 41.
The Scale DFB converts the measurements unit from % FLA to A and to any unit in the A...mA range:
The Out_ri output variables return the current measurements in A. The Out_ii output variables return the current measurements in the unit chosen by the user in the A...mA
range.
If a fault occurs:
the Special_mdb_u DFB outputs are set to �1, the Scale DFB outputs are set to �1, the Scale DFB Fault_st output is set to 1.
Input Characteristics The following table describes the DFB input:
Input Prog_num
Type INT
Description
The program number enables the user to select the measurement unit of the Scale DFB outputs (A...mA): 0 = the unit is 1/1 A (coeff = 1) 1 = the unit is 1/10 A (coeff = 10) 2 = the unit is 1/100 A (coeff = 100) 3 = the unit is 1/1000 A (coeff = 1000)
118
1672609EN-03 01/2020
Treatment DFB
Output Characteristics The following table describes the DFB output:
Output Fault_st
Type EBOOL
Description Fault detected
Public Variables Characteristics The following table describes the DFB public variables:
Public Variable
Type
Description
In_avg
INT
Average motor current (x 0.1 % FLA)
In_L1
INT
L1 current (% FLA)
In_L2
INT
L2 current (% FLA)
In_L3
INT
L3 current (% FLA)
In_gnd
INT
Ground current (% FLA min)
In_phimb
INT
Current imbalance coefficient
In_range
INT
Control unit sensor maximum current (x 0.1 A):
6 = adjustment range 0.15�0.6 A
14 = adjustment range 0.35�1.4 A
50 = adjustment range 1.25�5 A
120 = adjustment range 3�12 A
180 = adjustment range 4.5�18 A
320 = adjustment range 8�32 A
In_setup
INT
Full load amps setting (% FLA max):
minimum = 25 (default value)
maximum = 100
Out_ravg
REAL
Average motor current in A Scaling formula: IAvg x (adjustment range) x (FLA setting) / 100000
Out_rI1
REAL
L1 current in A Scaling formula: IL1 x (adjustment range) x (FLA setting) / 100000
Out_rI2
REAL
L2 current in A Scaling formula: IL2 x (adjustment range) x (FLA setting) / 100000
Out_rI3
REAL
L3 current in A Scaling formula: IL3 x (adjustment range) x (FLA setting) / 100000
Out_rgnd
REAL
Ground current in A Scaling formula: IGnd x (adjustment range / 4) x (FLA setting) / 100000
Out_rimb
REAL
Current imbalance in A Scaling formula: IImb x IAvg / 100
Out_rstp
REAL
Full load amps (FLA) in A Scaling formula: (adjustment range x FLA setting) / 1000
Out_iavg
INT
Average motor current in unit defined in the Prog_num variable (1)
Scaling formula: Out_ravg x coeff (1)
Out_iI1
INT
L1 current in unit defined in the Prog_num variable (1)
Scaling formula: Out_rI1 x coeff (1)
Out_iI2
INT
L2 current in unit defined in the Prog_num variable (1)
Scaling formula: Out_rI2 x coeff (1)
Out_iI3
INT
L3 current in unit defined in the Prog_num variable (1)
Scaling formula: Out_rI3 x coeff (1)
Out_ignd
INT
Ground current in unit defined in the Prog_num variable (1)
Scaling formula: Out_rgnd x coeff (1)
Out_iimb
INT
Current imbalance in unit defined in the Prog_num variable (1)
Scaling formula: Out_rimb x coeff (1)
Out_istp
INT
Full load amps (FLA) in unit defined in the Prog_num variable (1)
Scaling formula: Out_rstp x coeff (1)
(1) See the Prog_num input description in Input Characteristics, page 118. For example, if Prog_num = 3, then the unit is mA and the coeff = 1000.
1672609EN-03 01/2020
119
Treatment DFB
Timestamp_�: TeSys U DFB for Data Time-Stamping
Presentation
The Timestamp_� DFBs are dedicated to the time-stamping of up to 8 input registers of a TeSys U startercontroller (up to 32 A/15 kW or 20 hp) with a LUCM multifunction control unit. It provides an output table of the 8 time-stamped registers and 4 date and time registers (see DT_DateTime, page 111).
Timestamp is compatible with Premium and M340 PLCs. Timestamp_q is compatible with Quantum PLCs.
Characteristics
Characteristic Name Version Input Output Input/Output Public Variable
Value Timestamp 1.00 3 3 0 3
Timestamp_q 1.00 3 3 0 3
Graphical Representation
TeSys U Compliance The Timestamp_� DFBs are compliant with all the TeSys U sub-assemblies.
Input Characteristics The following table describes the DFB inputs:
Input Rst_cmd Strt_cmd Rstm_cmd
Type EBOOL EBOOL EBOOL
Description Reset time-stamping counter Start time-stamping Reset time-stamping memory
Output Characteristics The following table describes the DFB outputs:
Output Rec_num Rst_st
End_st
Type INT EBOOL
EBOOL
Description
Number of time-stamping operations since last reset
0 = Time-stamping is reset 1 = Time-stamping is not reset
0 = Time-stamping is not over 1 = Time-stamping is over
120
1672609EN-03 01/2020
Public Variables Characteristics The following table describes the DFB public variables:
Public Variable
Type
Description
In_data[0]...[7]
ARRAY[0...7] of INT
8 data registers to be time-stamped
Out_data[0]...[11]
ARRAY[0...11] of INT
Out_data[0]...Out_data[7]: 8 time-stamped data registers Out_data[8]: seconds (1) Out_data[9]: hours and minutes (1) Out_data[10]: month and day (1) Out_data[11]: year (1)
Sq_princ
INT
Reserved for support
(1) For more information regarding the date and time format, see DT_DateTime, page 111.
Treatment DFB
1672609EN-03 01/2020
121
Treatment DFB
122
1672609EN-03 01/2020
1672609EN-03
Schneider Electric Industries SAS
35, rue Joseph Monier CS30323 F - 92506 Rueil Malmaison Cedex
www.se.com
As standards, specifications and designs change from time to time, please ask for confirmation of the information given in this publication.
01/2020
