0% found this document useful (0 votes)
52 views23 pages

Sistem Otomatis Pengisian Teh Kemasan-1 (Hmi) Ok

The document outlines the configuration and programming of a new project using a TM221CE16R controller. It details the hardware configuration, software objects used, program behavior and structure, and the logic within each rung of the main POU.

Uploaded by

Obay Sobari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views23 pages

Sistem Otomatis Pengisian Teh Kemasan-1 (Hmi) Ok

The document outlines the configuration and programming of a new project using a TM221CE16R controller. It details the hardware configuration, software objects used, program behavior and structure, and the logic within each rung of the main POU.

Uploaded by

Obay Sobari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Project Name: New project

Project Name: New project


05/05/2024 - 02:41 PM
1/23
CONTENTS
Bill Of Material ........................................................................................................................................ 4
Controller ................................................................................................................................ 4
Hardware Configuration ......................................................................................................................... 5
MyController - TM221CE16R ................................................................................................. 5
Digital Inputs ........................................................................................................... 5
Digital Outputs ........................................................................................................ 5
Analog Inputs .......................................................................................................... 5
Fast Counters ......................................................................................................... 5
High Speed Counters ............................................................................................. 6
ETH1 ....................................................................................................................... 6
SL1 (Serial line) ...................................................................................................... 6
Software Configuration .......................................................................................................................... 7
Constant Words ...................................................................................................................... 7
KW .......................................................................................................................... 7
KD ........................................................................................................................... 7
KF ........................................................................................................................... 7
Network Objects ..................................................................................................................... 8
Input Assembly (Ethernet/Ip) .................................................................................. 8
Output Assembly (Ethernet/Ip) ............................................................................... 8
Input Registers (Modbus Tcp) ................................................................................ 8
Output Registers (Modbus Tcp) .............................................................................. 8
Digital inputs (IOScanner) ....................................................................................... 8
Digital outputs (IOScanner) .................................................................................... 8
Input registers (IOScanner) .................................................................................... 8
Output registers (IOScanner) .................................................................................. 8
Software Objects .................................................................................................................... 9
Timers ..................................................................................................................... 9
Counters ................................................................................................................. 9
LIFO/FIFO Registers .............................................................................................. 9
Drums ..................................................................................................................... 9
Shift Bit Registers ................................................................................................... 9
Step Counters ......................................................................................................... 9
Schedule Blocks ................................................................................................... 10
RTC ...................................................................................................................... 10
PID ........................................................................................................................ 10
Grafcet Steps ........................................................................................................ 10
Program ............................................................................................................................................... 11

Project Name: New project


05/05/2024 - 02:41 PM
2/23
Behavior ............................................................................................................................... 11
Memory Consumption .......................................................................................................... 12
Application Architecture ........................................................................................................ 13
Master Task .......................................................................................................... 13
Periodic Task ........................................................................................................ 13
POU ...................................................................................................................................... 14
Master Task .......................................................................................................... 14
1 - New POU ........................................................................................ 14
Rung0 .................................................................................... 14
Rung1 .................................................................................... 14
Rung2 .................................................................................... 15
Rung3 .................................................................................... 15
Rung4 .................................................................................... 15
Rung5 .................................................................................... 15
Rung6 .................................................................................... 16
Rung7 .................................................................................... 16
Rung8 .................................................................................... 16
Rung9 .................................................................................... 16
Rung10 .................................................................................. 17
Rung11 .................................................................................. 17
Rung12 .................................................................................. 17
Rung13 .................................................................................. 18
Rung14 .................................................................................. 18
Rung15 .................................................................................. 18
Rung16 .................................................................................. 19
Rung17 .................................................................................. 19
Rung18 .................................................................................. 19
Rung19 .................................................................................. 19
Rung20 .................................................................................. 19
Symbols ............................................................................................................................................... 20
Cross-Reference Table ........................................................................................................................ 21

Project Name: New project


05/05/2024 - 02:41 PM
3/23
BILL OF MATERIAL

Controller
Reference TM221CE16R

Description TM221CE16R (screw)


9 digital inputs, 7 relay
outputs (2 A), 2 analog inputs,
1 serial line port, 1 Ethernet
port, 100-240 Vac power supply
controller with removable
terminal blocks.
Power supplied to the IO bus 5V: 325 mA / 24V: 120 mA

Project Name: New project


05/05/2024 - 02:41 PM
4/23
HARDWARE CONFIGURATION
MyController - TM221CE16R
Digital Inputs
Used Address Filtering Latch Run/Stop Events Priority Subroutine

X %I0.0 3 ms Not Used

X %I0.1 3 ms Not Used

%I0.2 3 ms Not Used

%I0.3 3 ms Not Used

%I0.4 3 ms Not Used

X %I0.5 3 ms Not Used

%I0.6 3 ms Not Used

%I0.7 3 ms Not Used

%I0.8 3 ms Not Used

Digital Outputs
Used Address Status Alarm Fallback value Used by

X %Q0.0 0 User logic

X %Q0.1 0 User logic

X %Q0.2 0 User logic

X %Q0.3 0 User logic

X %Q0.4 0 User logic

X %Q0.5 0 User logic

%Q0.6 0

Analog Inputs
Used Address Type Scope Range Filter Sampling

X %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

Project Name: New project


05/05/2024 - 02:41 PM
5/23
High Speed Counters
Used Address Type

%HSC0 Not Configured

%HSC1 Not Configured

%HSC2 Not Configured

%HSC3 Not Configured

ETH1
Device name: M221

IP Mode: Fixed

IP address: 0.0.0.0

Subnet mask: 0.0.0.0

Gateway address: 0.0.0.0

Transfer Rate: Auto

Security Parameters: Programming protocol disabled

Auto discovery protocol disabled

Modbus server disabled

EtherNet/IP protocol disabled

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

Project Name: New project


05/05/2024 - 02:41 PM
6/23
SOFTWARE CONFIGURATION
Constant Words
KW
Allocation: Automatic

Allocated: 0

Used Equ Used Address Symbol Value Comment

KD
Allocation: Automatic

Allocated: 0

Used Equ Used Address Symbol Value Comment

KF
Allocation: Automatic

Allocated: 0

Used Equ Used Address Symbol Value Comment

Project Name: New project


05/05/2024 - 02:41 PM
7/23
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

Project Name: New project


05/05/2024 - 02:41 PM
8/23
Software Objects
Timers
Allocation: Automatic

Allocated: 7

Co
Dynamic
Used Address Symbol Type Retentive Time Base Preset mm
Preset
ent
TIM
ER
X %TM0 TON 1 s 6 AIR
PUT
IH
X %TM1 TON 1 s 8

X %TM2 TON 1 s 10

X %TM3 TON 1 s 10

X %TM4 TON 1 s 3

X %TM5 TON 1 s 20

X %TM6 TOF 1 s 3

Counters
Allocation: Automatic

Allocated: 1

Used Address Symbol Preset Comment

X %C0 3

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

Project Name: New project


05/05/2024 - 02:41 PM
9/23
Schedule Blocks
Allocation: Automatic

Allocated: 0

RTC
PID
Used PID Symbol Type Comment

Grafcet Steps
Allocation: Automatic

Allocated: 0

Project Name: New project


05/05/2024 - 02:41 PM
10/23
PROGRAM
Behavior
Functional level: Level 12.0

Starting mode: Start In Previous State

Watchdog: 250 ms

Fallback behavior: Fallback value

String end character: CR (Carriage Return)

Project Name: New project


05/05/2024 - 02:41 PM
11/23
Memory consumption
Last compilation: 05/05/2024 14:24:42

Project Name: New project


05/05/2024 - 02:41 PM
12/23
Application Architecture
Master Task
Scan mode: Normal

POU list: 1 - New POU

Periodic Task
Period: 255 ms

Project Name: New project


05/05/2024 - 02:41 PM
13/23
POU

Master Task
1 - New POU

Master Task

Rung0

Variables used:
%I0.0 START
%I0.1 STOP
%M0 SISTEM ON
%M8 SISTEM STOP
%M9 SATRT
%M10 STOP

Rung1

Legend:
1 %MW1 := %MW0 / 10

Variables used:
%IW0.0
%M0 SISTEM ON
%MW0
%MW1

Project Name: New project


05/05/2024 - 02:41 PM
14/23
Rung2

Variables used:
%I0.0 START
%I0.1 STOP
%M1 M TEH
%M8 SISTEM STOP
%MW1

Rung3

Variables used:
%M1 M TEH
%M2 TIMER TEH
%TM0 TIMER AIR PUTIH

Rung4

Variables used:
%M1 M TEH
%M2 TIMER TEH
%M15
%Q0.3 P1 TEH

Rung5

Variables used:
%M2 TIMER TEH
%M3 TIMER GULA
%TM1

Project Name: New project


05/05/2024 - 02:41 PM
15/23
Rung6

Variables used:
%M2 TIMER TEH
%M3 TIMER GULA
%M16
%Q0.2 P2 GULA

Rung7

Variables used:
%M3 TIMER GULA
%M4 TIMER AIR PUTIH
%TM2

Rung8

Variables used:
%M3 TIMER GULA
%M4 TIMER AIR PUTIH
%M14
%Q0.0 P3 AIR PUTIH

Rung9

Variables used:
%M4 TIMER AIR PUTIH
%M5 TIMER MIXER
%TM3

Project Name: New project


05/05/2024 - 02:41 PM
16/23
Rung10

Variables used:
%M4 TIMER AIR PUTIH
%M5 TIMER MIXER
%M12 M1
%Q0.1 M1 MOTOR MIXER

Rung11

Variables used:
%M5 TIMER MIXER
%M6 ON VONVEYOR
%TM4

Rung12

Variables used:
%I0.5 S1 SENSOR
%M5 TIMER MIXER
%M6 ON VONVEYOR
%M11
%M13
%M18 TIMER SELESAI
%Q0.4 V1 VALVE
%Q0.5 M2 MOTOR CONVEYOR

Project Name: New project


05/05/2024 - 02:41 PM
17/23
Rung13

Variables used:
%I0.5 S1 SENSOR
%M7
%TM5

Rung14

Variables used:
%I0.5 S1 SENSOR
%M7
%M17
%Q0.4 V1 VALVE

Rung15

Variables used:
%C0
%I0.5 S1 SENSOR
%M8 SISTEM STOP

Project Name: New project


05/05/2024 - 02:41 PM
18/23
Rung16

Variables used:
%m18 TIMER SELESAI
%M8 SISTEM STOP
%TM6

Rung17

Variables used:
%C0.P
%MW4

Rung18

Legend:
1 %MW6 := %TM0.V

Variables used:
%MW6
%TM0.V TIMER AIR PUTIH

Rung19

Legend:
1 %MW2 := %TM1.V

Variables used:
%MW2
%TM1.V

Rung20

Legend:
1 %MW3 := %TM2.V

Variables used:
%MW3
%TM2.V

Project Name: New project


05/05/2024 - 02:41 PM
19/23
SYMBOLS

No Symbols defined in the project.

Used Address Symbol Comment

Project Name: New project


05/05/2024 - 02:41 PM
20/23
CROSS-REFERENCE TABLE

Address Object Rung Code


%C0...... 1 - New POU Rung15 %C0

%C0.P.... 1 - New POU Rung17 --[...]-- %C0.P := %MW4

%I0.0.... 1 - New POU Rung0 --| |--

Rung2 --| |--

%I0.1.... 1 - New POU Rung0 --|/|--

Rung2 --|/|--

%I0.5.... 1 - New POU Rung12 --| |--

Rung13 --|/|--

Rung14 --|/|--

Rung15 --|/|--

%IW0.0... 1 - New POU Rung1 --[...]-- %MW0 := %IW0.0

%M0...... 1 - New POU Rung0 --( )--

--| |--

Rung1 --| |--

%M1...... 1 - New POU Rung2 --( )--

--| |--

Rung3 --| |--

Rung4 --| |--

%M2...... 1 - New POU Rung3 --( )--

Rung4 --|/|--

Rung5 --| |--

Rung6 --| |--

%M3...... 1 - New POU Rung5 --( )--

Rung6 --|/|--

Rung7 --| |--

Rung8 --| |--

%M4...... 1 - New POU Rung7 --( )--

Rung8 --|/|--

Rung9 --| |--

Rung10 --| |--

%M5...... 1 - New POU Rung9 --( )--

Project Name: New project


05/05/2024 - 02:41 PM
21/23
Address Object Rung Code
Rung10 --|/|--

Rung11 --| |--

Rung12 --| |--

%M6...... 1 - New POU Rung11 --( )--

Rung12 --| |--

%M7...... 1 - New POU Rung13 --( )--

Rung14 --|/|--

%M8...... 1 - New POU Rung0 --|/|--

Rung2 --|/|--

Rung15 --( )--

--| |--

Rung16 --| |--

%M9...... 1 - New POU Rung0 --| |--

%M10..... 1 - New POU Rung0 --|/|--

%M11..... 1 - New POU Rung12 --| |--

%M12..... 1 - New POU Rung10 --( )--

%M13..... 1 - New POU Rung12 --( )--

%M14..... 1 - New POU Rung8 --( )--

%M15..... 1 - New POU Rung4 --( )--

%M16..... 1 - New POU Rung6 --( )--

%M17..... 1 - New POU Rung14 --( )--

%M18..... 1 - New POU Rung12 --| |--

Rung16 --( )--

%MW0..... 1 - New POU Rung1 --[...]-- %MW0 := %IW0.0

--[...]-- %MW1 := %MW0 / 10

%MW1..... 1 - New POU Rung1 --[...]-- %MW1 := %MW0 / 10

Rung2 --[<]-- %MW1 >= 7

%MW2..... 1 - New POU Rung19 --[...]-- %MW2 := %TM1.V

%MW3..... 1 - New POU Rung20 --[...]-- %MW3 := %TM2.V

%MW4..... 1 - New POU Rung17 --[...]-- %C0.P := %MW4

%MW6..... 1 - New POU Rung18 --[...]-- %MW6 := %TM0.V

%Q0.0.... 1 - New POU Rung8 --( )--

%Q0.1.... 1 - New POU Rung10 --( )--

%Q0.2.... 1 - New POU Rung6 --( )--

Project Name: New project


05/05/2024 - 02:41 PM
22/23
Address Object Rung Code
%Q0.3.... 1 - New POU Rung4 --( )--

%Q0.4.... 1 - New POU Rung12 --| |--

Rung14 --(/)--

%Q0.5.... 1 - New POU Rung12 --( )--

%TM0..... 1 - New POU Rung3 %TM0

%TM0.V... 1 - New POU Rung18 --[...]-- %MW6 := %TM0.V

%TM1..... 1 - New POU Rung5 %TM1

%TM1.V... 1 - New POU Rung19 --[...]-- %MW2 := %TM1.V

%TM2..... 1 - New POU Rung7 %TM2

%TM2.V... 1 - New POU Rung20 --[...]-- %MW3 := %TM2.V

%TM3..... 1 - New POU Rung9 %TM3

%TM4..... 1 - New POU Rung11 %TM4

%TM5..... 1 - New POU Rung13 %TM5

%TM6..... 1 - New POU Rung16 %TM6

Project Name: New project


05/05/2024 - 02:41 PM
23/23

You might also like