Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1166

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• The S(P).PIDCONT instructions measure the sampling cycle and perform PID operation.
• Based on the setting value (SV) and process value (PV) in the I/O data area allocated to the device number specified by (s)
and later, these instructions perform PID operation and store the operation result in the automatic manipulated value (MV)
area in the I/O data area.
• The S(P).PIDCONT instructions perform PID operation when it is executed for the first time after a lapse of the specified
sampling cycle.
• During PID control, be sure to turn on the control command to allow the S(P). PIDCONT instruction to be executed every
scan. Failure to execute the instruction every scan disables PID operation in normal sampling cycles. The S(P).PIDCONT
instruction cannot be executed more than once in a single scan. Executing the instruction more than once in a single scan
disables PID operation in normal sampling cycles.
• The S(P).PIDCONT instruction cannot be written and used in interrupt programs. Writing an S(P).PIDCONT instruction in
the interrupt program disables PID operation in normal sampling cycles.
• In (s), specify the head of the device number specified in the I/O data area. ( Page 1155 I/O data)
• If a file register is specified as an I/O data area, do not apply memory protection for the file register. If memory protection is
applied, normal PID operation is disabled although no error results.
• The I/O data are assigned as follows.
Item
Write
Read/write disabled
I/O data area for loop
No.1
(23 words)
I/O data area for loop
No.n
*1
(23 words)
*1 m=(n-1)23+10
• The number of device points used for I/O data setting is calculated by the following formula.
Number of device points = 10 + +23  n (n: number of loops used)
• Specify each data in binary.
• The initial processing flag sets the processing to be performed at the start of PID operation.
• Initial operation processing is performed assuming that the sampling cycle that has been set has been reached.
• If the initial processing flag is 0, PID operations for the number of loops used are performed altogether in a single scan. If it is not 0, PID operations for the
number of loops used are divided and processed in several scans, and sampling is started sequentially from the loop that has completed initial processing.
The number of processing loops per scan is the number of execution loops per scan that has been set.
10 PID CONTROL INSTRUCTIONS
1164
10.2 PID Control Instructions (Inexact Differential)
I/O data
(s)+0
(s)+1
(s)+9
Write
(s)+10
(s)+11
Read
(s)+12
(s)+13
Write
(s)+14
(s)+15
Read/write
(s)+16
Read/write disabled
(s)+17
(s)+32
Write
(s)+(m+0)
(s)+(m+1)
Read
(s)+(m+2)
(s)+(m+3)
Write
(s)+(m+4)
(s)+(m+5)
Read/write
(s)+(m+6)
Read/write disabled
(s)+(m+7)
(s)+(m+22)
Initial processing flag
Work area for PID control
(system use only)
Set value (SV)
Process value (PV)
Automatic manipulated value (MV)
Process value after filtering (PVf)
Manual manipulated value (MV
MAN
Manual/automatic selection (MAN/AUTO)
Alarm (ALARM)
Work area for loop No.1
(system use only)
Set value (SV)
Process value (PV)
Automatic manipulated value (MV)
Process value after filtering (PVf)
Manual manipulated value (MV
MAN
Manual/automatic selection (MAN/AUTO)
Alarm (ALARM)
Work area for loop No.n
(system use only)
)
)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents