Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Project Name: Packaging / Tempctrl / HW / M221: 0 Schneider Electric

Download as pdf or txt
Download as pdf or txt
You are on page 1of 26

Schneider Electric

0
www.schneider-electric.com

Project Name: Packaging / TempCtrl /


HW / M221

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
1/26
Schneider Electric
0
www.schneider-electric.com

CONTENTS
Description ............................................................................................................................................. 4
Bill Of Material ........................................................................................................................................ 5
Controller ................................................................................................................................ 5
Cartridge ................................................................................................................................. 5
Hardware Configuration ......................................................................................................................... 6
TM221CE24T ......................................................................................................................... 6
Digital Inputs ........................................................................................................... 6
Digital Outputs ........................................................................................................ 6
Analog Inputs .......................................................................................................... 7
Fast Counters ......................................................................................................... 7
High Speed Counters ............................................................................................. 7
Pulse Generators .................................................................................................... 7
ETH1 ....................................................................................................................... 7
Modbus TCP ........................................................................................... 8
SL1 (Serial line) ...................................................................................................... 8
IO Bus ..................................................................................................................... 9
Cartridges ............................................................................................................. 10
TMC2PACK01 ....................................................................................... 10
Analog Inputs ......................................................................... 10
Software Configuration ........................................................................................................................ 11
Constant Words .................................................................................................................... 11
KW ........................................................................................................................ 11
KD ......................................................................................................................... 11
KF ......................................................................................................................... 11
Network Objects ................................................................................................................... 12
Input Assembly (Ethernet/Ip) ................................................................................ 12
Output Assembly (Ethernet/Ip) ............................................................................. 12
Input Registers (Modbus Tcp) .............................................................................. 12
Output Registers (Modbus Tcp) ............................................................................ 12
Digital inputs (IOScanner) ..................................................................................... 12
Digital outputs (IOScanner) .................................................................................. 12
Input registers (IOScanner) .................................................................................. 12
Output registers (IOScanner) ................................................................................ 12
Software Objects .................................................................................................................. 13
Timers ................................................................................................................... 13

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
2/26
Schneider Electric
0
www.schneider-electric.com

Counters ............................................................................................................... 13
LIFO/FIFO Registers ............................................................................................ 13
Drums ................................................................................................................... 13
Shift Bit Registers ................................................................................................. 13
Step Counters ....................................................................................................... 13
Schedule Blocks ................................................................................................... 13
RTC ...................................................................................................................... 13
PID ........................................................................................................................ 13
Grafcet Steps ........................................................................................................ 15
Program ............................................................................................................................................... 16
Behavior ............................................................................................................................... 16
Memory Consumption .......................................................................................................... 16
Application Architecture ........................................................................................................ 16
Master Task .......................................................................................................... 16
Periodic Task ........................................................................................................ 16
POU ...................................................................................................................................... 17
Master Task .......................................................................................................... 17
1 - Application_Temperature ................................................................ 17
Rung0 - Rung_0 .................................................................... 17
Rung1 - Rung_1 .................................................................... 17
Rung2 - Rung_2 .................................................................... 18
Rung3 - Rung_3 .................................................................... 18
Rung4 - Rung_4 .................................................................... 18
Rung5 - Rung_5 .................................................................... 19
Rung6 - Rung_6 .................................................................... 19
Rung7 - Rung_7 .................................................................... 19
Rung8 - Rung_8 .................................................................... 20
Symbols ............................................................................................................................................... 21
Cross-Reference Table ........................................................................................................................ 23
Animation table .................................................................................................................................... 26
Animation table_PID0 ........................................................................................................... 26

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
3/26
Schneider Electric
0
www.schneider-electric.com

DESCRIPTION

In addition to this example-project a Vijeo Designer application and a System User Guide are
provided.
********Disclaimer Of Warranty********
THE INFORMATION CONTAINED HEREIN IS PROVIDED "AS IS" WITHOUT WARRANTIES OF
ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ALL IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-
INFRINGEMENT OR OTHER VIOLATION OF RIGHTS. SCHNEIDER ELECTRIC DOES NOT
WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE, VALIDITY, ACCURACY,
OR RELIABILITY OF, OR THE RESULTS OF THE USE OF, OR OTHERWISE, RESPECTING THE
MATERIALS, SPECIFICATIONS, CHARACTERISTICS OR OTHER INFORMATION SPECIFIED
HEREIN. FURTHERMORE, ALL WARRANTIES, CONDITIONS, REPRESENTATIONS,
INDEMNITIES AND GUARANTEES WITH RESPECT TO THE ACCURACY, OPERATION,
CAPACITY, SPEED, FUNCTIONALITY, QUALIFICATIONS, OR CAPABILITIES OF THE SOFTWARE,
SYSTEMS AND SERVICES COMPRISING OR UTILIZED IN THE COURSE OF APPLYING THIS
INFORMATION, SPECIFICATIONS, OR MATERIALS, WHETHER EXPRESS OR IMPLIED, ARISING
BY LAW, CUSTOM, PRIOR ORAL OR WRITTEN STATEMENTS BY SCHNEIDER ELECTRIC, OR
OTHERWISE (INCLUDING, BUT NOT LIMITED TO ANY WARRANTY OF SATISFACTORY
QUALITY, MERCHANTABILITY, FITNESS FOR PARTICULAR PURPOSE, TITLE AND NON-
INFRINGEMENT) ARE HEREBY EXPRESSLY EXCLUDED AND DISCLAIMED:
********Disclaimer Of Liability*********
UNDER NO CIRCUMSTANCES (INCLUDING NEGLIGENCE OR FORESEEABLE MISUSE) WILL
SCHNEIDER ELECTRIC BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL,
PUNITIVE OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION, BUSINESS
INTERRUPTION, DELAYS, LOSS OF DATA OR PROFIT) ARISING OUT OF THE APPLICATION OF
THE INFORMATION, SPECIFICATIONS, CHARACTERISTICS OR MATERIALS CONTAINED
HEREIN EVEN IF SCHNEIDER ELECTRIC HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
************************************
The information, program and configuration contained herein are provided as general training on the
products concerned, in part, by way of theoretical and/or hypothetical examples. Only you, the user,
can be aware of all the conditions and factors present during setup, operation, and maintenance of
your machine and its application; therefore, only you, the user, 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 must refer to
the applicable local and national standards and regulations.
************************************
Copyright © 2014 Schneider Electric. All rights reserved.

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
4/26
Schneider Electric
0
www.schneider-electric.com

BILL OF MATERIAL

Controller
Reference TM221CE24T
Description TM221CE24T (screw)
14 digital inputs, 10 source
transistor outputs (0,5 A), 2
analog inputs, 1 serial line
port, 1 Ethernet port, 24 Vdc
power supply controller with
removable terminal blocks.
Power supplied to the IO bus 5V: 520 mA / 24V: 200 mA

Cartridge
Reference TMC2PACK01
Description TMC2PACK01
TMC2 cartridge with 2 analog
voltage or current inputs for
packaging.

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
5/26
Schneider Electric
0
www.schneider-electric.com

HARDWARE CONFIGURATION
TM221CE24T
Digital Inputs
Used Address Filtering Latch Run/Stop Events Priority Subroutine

%I0.0 3 ms Not Used

%I0.1 3 ms Not Used

%I0.2 3 ms Not Used

%I0.3 3 ms Not Used

%I0.4 3 ms Not Used

%I0.5 3 ms Not Used

%I0.6 3 ms Not Used

%I0.7 3 ms Not Used

%I0.8 3 ms Not Used

%I0.9 3 ms Not Used

%I0.10 3 ms Not Used

%I0.11 3 ms Not Used

%I0.12 3 ms Not Used

%I0.13 3 ms Not Used

Digital Outputs
Used Address Status Alarm Fallback value Used by

X %Q0.0 0 User logic

%Q0.1 0

%Q0.2 0

%Q0.3 0

%Q0.4 0

%Q0.5 0

%Q0.6 0

%Q0.7 0

%Q0.8 0

%Q0.9 0

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
6/26
Schneider Electric
0
www.schneider-electric.com

Analog Inputs
Used Address Type Scope Range Filter Sampling

%IW0.0 0 - 10 V Normal 0-1000 0

%IW0.1 0 - 10 V Normal 0-1000 0

Fast Counters
Used Address Input Configured Preset Double Word

%FC0 %I0.2 NotUsed 0

%FC1 %I0.3 NotUsed 0

%FC2 %I0.4 NotUsed 0

%FC3 %I0.5 NotUsed 0

High Speed Counters


Used Address Type

%HSC0 Not Configured

%HSC1 Not Configured

Pulse Generators
Configured Address Type

%PLS0/%PWM0 Not Configured

%PLS1/%PWM1 Not Configured

ETH1
Device name: M221

IP Mode: Fixed

IP address: 192.168.100.20

Subnet mask: 255.255.255.0

Gateway address: 0.0.0.0

Transfer Rate: Auto

Security Parameters: Programming protocol enabled

Auto discovery protocol enabled

Modbus server enabled

EtherNet/IP protocol enabled

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
7/26
Schneider Electric
0
www.schneider-electric.com

Modbus TCP

Remote device table


Response
Channels
Id Name Type Index IP address timeout (×
Unit ID
100 ms)
Generic 192.168.1
0 Device 0 1 100 1
Device 00.10

SL1 (Serial line)


Physical Settings

Device: None

Baud rate: 19200

Parity: Even

Data bits: 8

Stop bits: 1

Physical medium: RS-485

Polarization: No

Protocol Settings

Protocol: Modbus

Response timeout (× 100 ms): 10

Time between frames (ms): 10

Transmission mode: RTU

Addressing: Slave

Address: 1

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
8/26
Schneider Electric
0
www.schneider-electric.com

IO Bus

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
9/26
Schneider Electric
0
www.schneider-electric.com

Cartridges
TMC2PACK01

Analog Inputs

Used Address Type Scope Range Filter Sampling

X %IW0.100 4 - 20 mA Normal 0-2500 0

%IW0.101 0 - 10 V Normal 0-10000 0

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
10/26
Schneider Electric
0
www.schneider-electric.com

SOFTWARE CONFIGURATION
Constant Words
KW
Allocation: Automatic

Allocated: 6

Used Equ Used Address Symbol Value Comment

KD
Allocation: Automatic

Allocated: 6

Used Equ Used Address Symbol Value Comment

KF
Allocation: Automatic

Allocated: 6

Used Equ Used Address Symbol Value Comment

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
11/26
Schneider Electric
0
www.schneider-electric.com

Network Objects
Input Assembly (Ethernet/Ip)
Used Address Symbol Fallback value Comment

Output Assembly (Ethernet/Ip)


Used Address Symbol Comment

Input Registers (Modbus Tcp)


Used Address Symbol Fallback value Comment

Output Registers (Modbus Tcp)


Used Address Symbol Comment

Digital inputs (IOScanner)


Used Address Channel Symbol Comment

Digital outputs (IOScanner)


Used Address Channel Fallback value Symbol Comment

Input registers (IOScanner)


Used Address Channel Symbol Comment

Output registers (IOScanner)


Used Address Channel Fallback value Symbol Comment

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
12/26
Schneider Electric
0
www.schneider-electric.com

Software Objects
Timers
Allocation: Automatic

Allocated: 2

Used Address Symbol Type Retentive Time Base Preset Comment

X %TM0 TAUTOTUNETRIGGER TON 100 ms 5


This timer is
to delay
X %TM1 TON_DELAYPID TON 100 ms 3
enabling of
pID

Counters
Allocation: Automatic

Allocated: 0

LIFO/FIFO Registers
Allocation: Automatic

Allocated: 0

Drums
Allocation: Automatic

Allocated: 0

Shift Bit Registers


Allocation: Automatic

Allocated: 0

Step Counters
Allocation: Automatic

Allocated: 0

Schedule Blocks
Allocation: Automatic

Allocated: 0

RTC
PID
Used PID Symbol Type Comment

X PID 0 FBPID_0 WordAddress PID function block

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
13/26
Schneider Electric
0
www.schneider-electric.com

PID 0

General

Type: Word Address

Word Address: %MW10

PID States: %MW0

Input

Measure Conversion Filter Alarms

%MW1 Min.: 0 No Low: %MW8

Max: 1000 Output: %M5

High: %MW9

Output: %M6

PID

Setpoint Corrector type Parameters Sampling period

%MW2 PID Kp (x0.01): %MW3 Ts (x10 ms): 2

Ti (x0.1s): %MW4

Td (x0.1s): %MW5

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
14/26
Schneider Electric
0
www.schneider-electric.com

AT

Measurement range Dynamic AT corrector AT Trigger

No Slow: %M0

Output

Action Limits Manual mode Analog Output Output PWM


Bit Address: % Period (x0.1 s):
Enable Bit Address %MW6
M1 50
Min.: 1 Bit: %M2 Output: %M3

Max: 10000 Output: %MW7

Grafcet Steps
Allocation: Automatic

Allocated: 0

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
15/26
Schneider Electric
0
www.schneider-electric.com

PROGRAM
Behavior
Functional level: Level 1.0

Starting mode: Start In Previous State

Watchdog: 250 ms

Fallback behavior: Fallback value

String end character: CR (Carriage Return)

Memory consumption
A successful compilation is required to obtain memory information.

Application Architecture
Master Task
Scan mode: Periodic

Period: 20 ms

POU list: 1 - Application_Temperature

Periodic Task
Period: 255 ms

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
16/26
Schneider Electric
0
www.schneider-electric.com

POU

Master Task
1 - Application_Temperature

Master Task

Rung0 - Rung_0

Comment: This rung transfer the value of Temperature to variable wActValue

Variables used:
Temperature sensor value, read
%IW0.100 IW_TC1PT100
through the Packaging Cartridge
Actual Value / Temperature for PID
%MW1 WTC1_ACTVALUE
controller in degree * 0.1

Rung1 - Rung_1

Comment: This rung controls the final Heater Output

Variables used:
This bit is assigned to PWM Otput of
%M3 XTC1_PWMOUTPUT
PID.
%M4 XTC1_ENPID This bit Enables the PID controller
This bit indicates Temperature High
%M6 XTC1_TEMPHIGHALARM
Alarm
This bit is set High incase Heater
%M7 XTC1_HEATERAREASAFETY Area safety Alarm. Normally False in
case there is no Alarm.
This bit is set High incase Machine
%M8 X_MACHINEALARMOK Related Alarm. Normally False in case
there is no Alarm.
This bit is set by User to Start
%M9 XTC1_AUTOTUNEUSECMD
Autotune
%M11 XTC1_HEATEROUTPUTHMI Bit to Display Heater Status On HMI
%Q0.0 QXTC1_HEATER Digital Output to control the Heater

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
17/26
Schneider Electric
0
www.schneider-electric.com

Rung2 - Rung_2
This rung change the PID type to PID after completion of Autotunning And also
Comment: resets the command bits.

Variables used:
%M4 XTC1_ENPID This bit Enables the PID controller
This bit is set by User to Start
%M9 XTC1_AUTOTUNEUSECMD
Autotune
%MW0 WTC1_PIDSTATUS This is Status word from PID block
To Set PID type. 0:PID disabled
%MW10 WTC1_PIDTYPE 1:PID only 2:AT+PID 3:AT only 4:PI
only

Rung3 - Rung_3

Comment: This rung change the PID to AT+PID mode when user select Autotune.

Variables used:
This bit is set by User to Start
%M9 XTC1_AUTOTUNEUSECMD
Autotune
To Set PID type. 0:PID disabled
%MW10 WTC1_PIDTYPE 1:PID only 2:AT+PID 3:AT only 4:PI
only

Rung4 - Rung_4

Comment: The final command to start Autotune is set after 500ms after user command.

Variables used:
%M0 XTC1_ATTRIGGER This bit triggers the Autotunning
This bit is set by User to Start
%M9 XTC1_AUTOTUNEUSECMD
Autotune
To Set PID type. 0:PID disabled
%MW10 WTC1_PIDTYPE 1:PID only 2:AT+PID 3:AT only 4:PI
only
%TM0 TAUTOTUNETRIGGER

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
18/26
Schneider Electric
0
www.schneider-electric.com

Rung5 - Rung_5
This Rung Loads default values to Kp,Ti,Td. If Kp =0 then default values are
Comment: loaded. User must change this default values based on his application and Auto
tune parameters.

Variables used:
Specify the PID proportional gain,
%MW3 WTC1_KP
multiplied by 10
Specify the integral time for a
%MW4 WTC1_TI
timebase of 0.1 seconds.
Specify the derivative time for a
%MW5 WTC1_TD
timebase of 0.1 seconds.

Rung6 - Rung_6
This rung called PID 0. %M4 is used to enable the PID and timer is used to
Comment: delay the enabling operation by 300ms

Variables used:
%M4 XTC1_ENPID This bit Enables the PID controller
This timer is to delay enabling of
%TM1 TON_DELAYPID
pID
PID 0 FBPID_0 PID function block

Rung7 - Rung_7
This rung loads default value of High Temperature alarm setpoint as 150 in case
Comment: it is 0.

Variables used:
High Temperature Alarm setpoint
%MW9 WTC1_SETTEMPHIGHALARM
Trigger

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
19/26
Schneider Electric
0
www.schneider-electric.com

Rung8 - Rung_8
This rung converts PID analog output value to scale 0-100% for HMI display
Comment: purpose and also scale Act temp for HMI.

Legend:
1 %MF20 := INT_TO_REAL(%MW6)
2 %MF22 := %MF20 * 100.0
3 %MF24 := %MF22 / 10000.0
4 %MF26 := INT_TO_REAL(%MW1)
5 %MF28 := %MF26 / 10.0

Variables used:
%MF20 R_INTVAR1 This variable is used for calculation
%MF22 R_INTVAR2 This variable is used for calculation
This variable stores PID analog value
%MF24 R_PIDANALOGOPPERHMI
in % for HMI display purpose.
%MF26 R_INTVAR3
This variable stores Actaul
%MF28 R_ACTTEMPVALUEHMI Temperature value in deg for HMI
display purpose.
Actual Value / Temperature for PID
%MW1 WTC1_ACTVALUE
controller in degree * 0.1
Register for Analog Value output from
%MW6 WTC1_ANALOGOP
PID

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
20/26
Schneider Electric
0
www.schneider-electric.com

SYMBOLS

Used Address Symbol Comment


X %IW0.100 IW_TC1PT100 Temperature sensor value, read
through the Packaging Cartridge
X %M0 XTC1_ATTRIGGER This bit triggers the Autotunning

X %M1 XTC1_ACTIONTYPE This bit defines the Direct or


Reverse Action for control. Default
value is False = Reverse
X %M2 XTC1_MANUALMODE This bit enables the Manual Mode of
PID
X %M3 XTC1_PWMOUTPUT This bit is assigned to PWM Otput of
PID.
X %M4 XTC1_ENPID This bit Enables the PID controller

X %M5 XTC1_TEMPLOWALARM This bit indicates Temperature Low


Alarm
X %M6 XTC1_TEMPHIGHALARM This bit indicates Temperature High
Alarm
X %M7 XTC1_HEATERAREASAFETY This bit is set High incase Heater
Area safety Alarm. Normally False in
case there is no Alarm.
X %M8 X_MACHINEALARMOK This bit is set High incase Machine
Related Alarm. Normally False in
case there is no Alarm.
X %M9 XTC1_AUTOTUNEUSECMD This bit is set by User to Start
Autotune
X %M11 XTC1_HEATEROUTPUTHMI Bit to Display Heater Status On HMI

X %MF20 R_INTVAR1 This variable is used for


calculation
X %MF22 R_INTVAR2 This variable is used for
calculation
X %MF24 R_PIDANALOGOPPERHMI This variable stores PID analog
value in % for HMI display purpose.
X %MF26 R_INTVAR3

X %MF28 R_ACTTEMPVALUEHMI This variable stores Actaul


Temperature value in deg for HMI
display purpose.
X %MW0 WTC1_PIDSTATUS This is Status word from PID block

X %MW1 WTC1_ACTVALUE Actual Value / Temperature for PID


controller in degree * 0.1
X %MW2 WTC1_SETPOINT Setpoint for Temperature in degree
* 0.1 for PID
X %MW3 WTC1_KP Specify the PID proportional gain,
multiplied by 10
X %MW4 WTC1_TI Specify the integral time for a
timebase of 0.1 seconds.
X %MW5 WTC1_TD Specify the derivative time for a
timebase of 0.1 seconds.

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
21/26
Schneider Electric
0
www.schneider-electric.com

Used Address Symbol Comment


X %MW6 WTC1_ANALOGOP Register for Analog Value output
from PID
X %MW7 WTC1_MANUALOPVAL Register for Manual Value output
from PID
X %MW8 WTC1_SETTEMPLOWALARM Low Temperature Alarm setpoint
Trigger
X %MW9 WTC1_SETTEMPHIGHALARM High Temperature Alarm setpoint
Trigger
X %MW10 WTC1_PIDTYPE To Set PID type. 0:PID disabled
1:PID only 2:AT+PID 3:AT only 4:PI
only
X %Q0.0 QXTC1_HEATER Digital Output to control the Heater

X %TM0 TAUTOTUNETRIGGER

X %TM1 TON_DELAYPID This timer is to delay enabling of


pID
X PID 0 FBPID_0 PID function block

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
22/26
Schneider Electric
0
www.schneider-electric.com

CROSS-REFERENCE TABLE

Address Object Rung Code


%IW0.100... 1 - Rung0 - Rung_0 --[...]-- %MW1 := %IW0.100
Application_Temperature
%M0........ 1 - Rung4 - Rung_4 --( )--
Application_Temperature
PID 0 AT / AT Trigger

%M1........ PID 0 Output / Action

%M2........ PID 0 Output / Manual mode Bit

%M3........ 1 - Rung1 - Rung_1 --| |--


Application_Temperature
PID 0 Output / Output PWM Output

%M4........ 1 - Rung1 - Rung_1 --| |--


Application_Temperature
Rung2 - Rung_2 --|P|--

Rung6 - Rung_6 --| |--

%M5........ PID 0 Input / Authorize Low Output

%M6........ 1 - Rung1 - Rung_1 --|/|--


Application_Temperature
PID 0 Input / Authorize High Output

%M7........ 1 - Rung1 - Rung_1 --|/|--


Application_Temperature
%M8........ 1 - Rung1 - Rung_1 --|/|--
Application_Temperature
%M9........ 1 - Rung1 - Rung_1 --| |--
Application_Temperature
Rung2 - Rung_2 --|N|--

--(R)--

Rung3 - Rung_3 --| |--

Rung4 - Rung_4 --| |--

%M11....... 1 - Rung1 - Rung_1 --( )--


Application_Temperature
%MF20...... 1 - Rung8 - Rung_8 --[...]-- %MF20 := INT_TO_REAL(
Application_Temperature %MW6)
--[...]-- %MF22 := %MF20 *
100.0
%MF22...... 1 - Rung8 - Rung_8 --[...]-- %MF22 := %MF20 *
Application_Temperature 100.0
--[...]-- %MF24 := %MF22 /
10000.0
%MF24...... 1 - Rung8 - Rung_8 --[...]-- %MF24 := %MF22 /
Application_Temperature 10000.0

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
23/26
Schneider Electric
0
www.schneider-electric.com

Address Object Rung Code


%MF26...... 1 - Rung8 - Rung_8 --[...]-- %MF26 := INT_TO_REAL(
Application_Temperature %MW1)
--[...]-- %MF28 := %MF26 / 10.0

%MF28...... 1 - Rung8 - Rung_8 --[...]-- %MF28 := %MF26 / 10.0


Application_Temperature
%MW0....... 1 - Rung2 - Rung_2 --[<]-- %MW0 = 4096
Application_Temperature
PID 0 General / PID States

%MW1....... 1 - Rung0 - Rung_0 --[...]-- %MW1 := %IW0.100


Application_Temperature
Rung8 - Rung_8 --[...]-- %MF26 := INT_TO_REAL(
%MW1)
PID 0 Input / Measure

%MW2....... PID 0 PID / Setpoint

%MW3....... 1 - Rung5 - Rung_5 --[<]-- %MW3 = 0


Application_Temperature
--[...]-- %MW3 := 527

PID 0 PID / Kp (x0.01)

%MW4....... 1 - Rung5 - Rung_5 --[...]-- %MW4 := 3447


Application_Temperature
PID 0 PID / Ti (x0.1s)

%MW5....... 1 - Rung5 - Rung_5 --[...]-- %MW5 := 0


Application_Temperature
PID 0 PID / Td (x0.1s)

%MW6....... 1 - Rung8 - Rung_8 --[...]-- %MF20 := INT_TO_REAL(


Application_Temperature %MW6)
PID 0 Output / Analog Output

%MW7....... PID 0 Output / Manual mode Output

%MW8....... PID 0 Input / Authorize Low

%MW9....... 1 - Rung7 - Rung_7 --[<]-- %MW9 = 0


Application_Temperature
--[...]-- %MW9 := 150

PID 0 Input / Authorize High

%MW10...... 1 - Rung2 - Rung_2 --[...]-- %MW10 := 4


Application_Temperature
Rung3 - Rung_3 --[...]-- %MW10 := 2

Rung4 - Rung_4 --[<]-- %MW10 = 2

PID 0 General / Word Address

%Q0.0...... 1 - Rung1 - Rung_1 --( )--


Application_Temperature
%TM0....... 1 - Rung4 - Rung_4 %TM0
Application_Temperature

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
24/26
Schneider Electric
0
www.schneider-electric.com

Address Object Rung Code


%TM1....... 1 - Rung6 - Rung_6 %TM1
Application_Temperature

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
25/26
Schneider Electric
0
www.schneider-electric.com

ANIMATION TABLE
Animation table_PID0
Used Trace Address Symbol Comment

X %M0 XTC1_ATTRIGGER This bit triggers the Autotunning


XTC1_ACTIONTYP This bit defines the Direct or Reverse Action for
X %M1
E control. Default value is False = Reverse
XTC1_MANUALMOD
X %M2 This bit enables the Manual Mode of PID
E
X %M4 XTC1_ENPID This bit Enables the PID controller

X %MW0 WTC1_PIDSTATUS This is Status word from PID block


Actual Value / Temperature for PID controller in
X %MW1 WTC1_ACTVALUE
degree * 0.1
X %MW2 WTC1_SETPOINT Setpoint for Temperature in degree * 0.1 for PID
Specify the PID proportional gain, multiplied by
X %MW3 WTC1_KP
10
Specify the integral time for a timebase of 0.1
X %MW4 WTC1_TI
seconds.
Specify the derivative time for a timebase of 0.1
X %MW5 WTC1_TD
seconds.
X %MW6 WTC1_ANALOGOP Register for Analog Value output from PID
WTC1_MANUALOPV
X %MW7 Register for Manual Value output from PID
AL
X %Q0.0 QXTC1_HEATER Digital Output to control the Heater
WTC1_SETTEMPLO
X %MW8 Low Temperature Alarm setpoint Trigger
WALARM
XTC1_TEMPLOWAL
X %M5 This bit indicates Temperature Low Alarm
ARM
XTC1_TEMPHIGHA
X %M6 This bit indicates Temperature High Alarm
LARM
X %M3 XTC1_PWMOUTPUT This bit is assigned to PWM Otput of PID.
XTC1_HEATERARE This bit is set High incase Heater Area safety
X %M7
ASAFETY Alarm. Normally False in case there is no Alarm.
X_MACHINEALARM This bit is set High incase Machine Related Alarm.
X %M8
OK Normally False in case there is no Alarm.
WTC1_SETTEMPHI
X %MW9 High Temperature Alarm setpoint Trigger
GHALARM
To Set PID type. 0:PID disabled 1:PID only
X %MW10 WTC1_PIDTYPE
2:AT+PID 3:AT only 4:PI only

Machine Solutions Project Name: Packaging / TempCtrl /


0, Germany HW / M221
03/03/2021 - 09:34 AM
26/26

You might also like