You are on page 1of 20

Project Name: PLC2 at JIFCO Plant

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
1/20
CONTENTS
Description ............................................................................................................................................. 4
Bill Of Material ........................................................................................................................................ 5
Controller ................................................................................................................................ 5
Module .................................................................................................................................... 5
Hardware Configuration ......................................................................................................................... 6
MyController - TM221CE16R ................................................................................................. 6
Digital Inputs ........................................................................................................... 6
Digital Outputs ........................................................................................................ 6
Analog Inputs .......................................................................................................... 6
Fast Counters ......................................................................................................... 6
High Speed Counters ............................................................................................. 7
ETH1 ....................................................................................................................... 7
Modbus TCP ........................................................................................... 7
SL1 (Serial line) ...................................................................................................... 8
IO Bus ..................................................................................................................... 9
TM3AQ4/G .............................................................................................. 9
Analog Outputs ........................................................................ 9
Software Configuration ........................................................................................................................ 10
Constant Words .................................................................................................................... 10
KW ........................................................................................................................ 10
KD ......................................................................................................................... 10
KF ......................................................................................................................... 10
Network Objects ................................................................................................................... 11
Input Assembly (Ethernet/Ip) ................................................................................ 11
Output Assembly (Ethernet/Ip) ............................................................................. 11
Input Registers (Modbus Tcp) .............................................................................. 11
Output Registers (Modbus Tcp) ............................................................................ 11
Digital inputs (IOScanner) ..................................................................................... 11
Digital outputs (IOScanner) .................................................................................. 11
Input registers (IOScanner) .................................................................................. 11
Output registers (IOScanner) ................................................................................ 11
Software Objects .................................................................................................................. 12
Timers ................................................................................................................... 12
Counters ............................................................................................................... 12
LIFO/FIFO Registers ............................................................................................ 12
Drums ................................................................................................................... 12
Shift Bit Registers ................................................................................................. 12

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
2/20
Step Counters ....................................................................................................... 12
Schedule Blocks ................................................................................................... 13
RTC ...................................................................................................................... 13
PID ........................................................................................................................ 13
Grafcet Steps ........................................................................................................ 13
Communication Objects ....................................................................................................... 14
Read Var ............................................................................................................... 14
Program ............................................................................................................................................... 15
Behavior ............................................................................................................................... 15
Memory Consumption .......................................................................................................... 15
Application Architecture ........................................................................................................ 15
Master Task .......................................................................................................... 15
Periodic Task ........................................................................................................ 15
POU ...................................................................................................................................... 16
Master Task .......................................................................................................... 16
Symbols ............................................................................................................................................... 17
Cross-Reference Table ........................................................................................................................ 18
Animation table .................................................................................................................................... 20
Animation table_0 ................................................................................................................. 20

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
3/20
DESCRIPTION

Reading data at JIFCO Plant from JIFCO Pump House

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
4/20
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

Module
Reference TM3AQ4/G

Description TM3AQ4 (screw), TM3AQ4G (spring)


Expansion module with 4 analog
outputs (+- 10 V, 0-10V, 0-20
mA, 4-20mA), 12 bits, removable
terminal blocks.

Consumption on the IO bus 5V: 60 mA / 24V: 0 mA

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
5/20
HARDWARE CONFIGURATION
MyController - TM221CE16R
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

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

X %Q0.6 0 User logic

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

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
6/20
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: 192.168.3.72

Subnet mask: 255.255.255.0

Gateway address: 192.168.3.1

Transfer Rate: Auto

Security Parameters: Programming protocol enabled

Auto discovery protocol enabled

Modbus server enabled

EtherNet/IP protocol enabled

Modbus TCP

Unit ID: 2

Output registers (%IWM): 10

Input registers (%QWM): 10

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 .71

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
7/20
SL1 (Serial line)
Physical Settings

Device: Generic Modem

Init command: ATE0Q1

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: Master

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
8/20
IO Bus

TM3AQ4/G

Analog Outputs

Used Address Type Scope Range Fallback value Units

X %QW1.0 4 - 20 mA Normal 4000-20000 4000

X %QW1.1 4 - 20 mA Normal 4000-20000 4000

X %QW1.2 4 - 20 mA Normal 4000-20000 4000

X %QW1.3 4 - 20 mA Normal 4000-20000 4000

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
9/20
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: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
10/20
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: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
11/20
Software Objects
Timers
Allocation: Automatic

Allocated: 2

Co
Dynamic
Used Address Symbol Type Retentive Time Base Preset mm
Preset
ent
Per
iod
X %TM0 PULSES0_TMR TON 100 ms 100 ic
Pul
ses
Tim
er
for
dis
con
nec
tio
X %TM1 READ_TIMEOUT TON 1 s 60
n
fil
ter
ing
(de
lay
)

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

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
12/20
Schedule Blocks
Allocation: Automatic

Allocated: 0

RTC
PID
Used PID Symbol Type Comment

Grafcet Steps
Allocation: Automatic

Allocated: 0

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
13/20
Communication Objects
Read Var
Used Address Symbol Comment

X %READ_VAR0 READ_DATA

%READ_VAR0

Link Id Timeout ObjType FirstObj Quantity IndexData


0 - Read multiple words - Modbus
3 - ETH1 1 90 0 5 10
0x03

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
14/20
PROGRAM
Behavior
Functional level: Level 4.1

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: Normal

POU list: 1 - Read Data

2 - Data Output

Periodic Task
Period: 255 ms

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
15/20
POU

Master Task

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
16/20
SYMBOLS

Used Address Symbol Comment


X %M0 PULSES0 Train of pulses

X %M1 READ0_DONE

X %M2 READ0_ERROR This bit is used to reset the data


values to 0 in case of comm error in
READ_VAR0
X %M3 READ0_BUSY

X %M4 READ0_FAULT

X %Q0.0 OUT0

X %Q0.1 OUT1

X %Q0.2 OUT2

X %Q0.3 OUT3

X %Q0.4 OUT4

X %Q0.5 OUT5

X %Q0.6 OUT6

X %QW1.0 ANO0

X %QW1.1 ANO1

X %QW1.2 ANO2

X %QW1.3 ANO3

X %READ_VAR0 READ_DATA

X %TM0 PULSES0_TMR Periodic Pulses

X %TM1 READ_TIMEOUT Timer for disconnection filtering


(delay)

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
17/20
CROSS-REFERENCE TABLE

Address Object Rung Code


%M0........ 1 - Read Data Rung0 --|/|--

--( )--

Rung1 --| |--

%M1........ 1 - Read Data Rung1 --( )--

Rung2 --| |--

%M2........ 1 - Read Data Rung1 --(S)--

Rung2 --(R)--

Rung3 --| |--

%M3........ 1 - Read Data Rung1 --|/|--

--( )--

%M4........ 1 - Read Data Rung3 --( )--

2 - Data Output Rung0 --|/|--

Rung1 --|/|--

Rung2 --|/|--

Rung3 --|/|--

Rung4 --|/|--

Rung5 --|/|--

Rung6 --|/|--

Rung7 --|/|--

--| |--

Rung8 --|/|--

--| |--

Rung9 --|/|--

--| |--

Rung10 --|/|--

--| |--

%MW10...... 2 - Data Output Rung0 --| |-- %MW10:X0

Rung1 --| |-- %MW10:X1

Rung2 --| |-- %MW10:X2

Rung3 --| |-- %MW10:X3

Rung4 --| |-- %MW10:X4

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
18/20
Address Object Rung Code
Rung5 --| |-- %MW10:X5

Rung6 --| |-- %MW10:X6

%READ_VAR0 {IndexData, Quantity}

%MW11...... 2 - Data Output Rung7 --[...]-- %QW1.0 := %MW11

%READ_VAR0 {IndexData, Quantity}

%MW12...... 2 - Data Output Rung8 --[...]-- %QW1.1 := %MW12

%READ_VAR0 {IndexData, Quantity}

%MW13...... 2 - Data Output Rung9 --[...]-- %QW1.2 := %MW13

%READ_VAR0 {IndexData, Quantity}

%MW14...... 2 - Data Output Rung10 --[...]-- %QW1.3 := %MW14

%READ_VAR0 {IndexData, Quantity}

%Q0.0...... 2 - Data Output Rung0 --( )--

%Q0.1...... 2 - Data Output Rung1 --( )--

%Q0.2...... 2 - Data Output Rung2 --( )--

%Q0.3...... 2 - Data Output Rung3 --( )--

%Q0.4...... 2 - Data Output Rung4 --( )--

%Q0.5...... 2 - Data Output Rung5 --( )--

%Q0.6...... 2 - Data Output Rung6 --( )--

%QW1.0..... 2 - Data Output Rung7 --[...]-- %QW1.0 := %MW11

--[...]-- %QW1.0 := 4000

%QW1.1..... 2 - Data Output Rung8 --[...]-- %QW1.1 := %MW12

--[...]-- %QW1.1 := 4000

%QW1.2..... 2 - Data Output Rung9 --[...]-- %QW1.2 := %MW13

--[...]-- %QW1.2 := 4000

%QW1.3..... 2 - Data Output Rung10 --[...]-- %QW1.3 := %MW14

--[...]-- %QW1.3 := 4000

%READ_VAR0. 1 - Read Data Rung1 %READ_VAR0

%TM0....... 1 - Read Data Rung0 %TM0

%TM1....... 1 - Read Data Rung3 %TM1

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
19/20
ANIMATION TABLE
Animation table_0
Used Trace Address Symbol Comment

X %MW10

%IWM0

%IWM1

%QWM0

%QWM1

Project Name: PLC2 at JIFCO Plant


04/15/2022 - 10:24 AM
20/20

You might also like