Professional Documents
Culture Documents
Z=1
ming System Kx
+
+
Based on Block
Diagrams Download
Parameter tuning
Monitoring
Trend graphs
Takayuki Nihei*
QnA
System Configuration
Ethernet
Fig. 3 shows the system configuration. The
system runs on a personal computer linked to a Download/upload/
monitoring/etc.
PLC via a network or serial cable, and can be
used to create programs, download them to the BP
PLC, upload them from the PLC and monitor
PLC program execution. The completed pro- RS232C (RS-422)
grams are stored in PLCs in the same way as Fig. 3 A system configuration.
*Tsutomu Yoshikawa is with the Industrial Electronics & Systems Laboratory and Takayuki Nihei with the Nagoya
Works.
Programming Method
The programming language consists of blocks Fig. 5 The development process.
September 1996 · 17
R&D PROGRESS REPORT
Table 1 Standard Blocks
Table 1 Standard Blocks
Type Block name Function Param0 Param1 Param2 Param3
I/O INPUT External input (AD) Unit no. Buffer address Channel Scale
OUTPUT External output (DA) Unit no. Buffer address Switch device Scale
External input
COUNT Unit no. Buffer address
(high-speed counter)
ADD Addition
SUB Subtraction
GAIN Gain K
Linear
AVERAGE Moving average n
DIFFERENTIAL Differential Kd
INTEGRAL Integral Ti
MUL Multiply
DIV Divide
PI PI control Kp Ti
Control
PID CONTROL PID control Kp Ti Td
MODULE Subblock
Note: PI, programming interface; PID, programming interface diagram
Project
Task n
devices are allocated. Finally, links to library
Task 1 Task 2 Task 3
routines are processed to create executable
code.
The executable code is uploaded to the PLC
B1 B2 B3 as a single program that is executed periodi-
Block cally. Block programs executed on a MELSEC
B4 B5 Q4A PLC can be used in up to eight loops (one
Program 1
PID/loop) with periods of 100~200ms, which is
Program 2
sufficient for simple measurement applica-
tions.
Program n
Block programs can be executed alongside
Fig. 6 Program structure. ladder programs developed for discrete event
control. Block programs can also be executed
Code Generation and Execution in sync with ladder programs, or asynchro-
A translator converts the control program into nously in open CPU time slices. Data can be
executable, discrete-event control code in three passed between ladder and block programs
steps. First, scheduling generated from the during synchronous execution using load and
block link and association data is used to store blocks, and ladder programs can be used
determine the execution order. Next, memory to specify block parameters. This allows pa-
September 1996 · 19