Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
15 Applied Instructions (External Device (optional device))
15.9 PID / PID Control Loop
414
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
15.9 PID / PID Control Loop
Outline
This instruction executes PID control for changing the output values depending on the change value of the
input.
As for the detail, refer to the analog control manual.
1. Format and operation, execution form
2. Set data
*1. Variable depending on the setting content of the parameter.
3. Applicable devices
S: Refer to "Cautions".
Function and operation explanation
1. 16-bit operation(PID)
When the program is executed by setting the target value of the device specified by , the measured
value of the device specified by , and the parameter of the device specified by , at every
sampling time of the device specified by , the calculation result (MV) is stored in the output value of
the device specified by .
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
PID 16 bits Continuous PID(EN, s1, s2, s3, d);
Variable Description Data type
Input
variable
EN Execution condition Bit
Data register for storing the target value (SV) ANY16
Data register for storing the measured value (PV). ANY16
Data register for storing the parameter [29 points occupied]
*1
ANY16
Output
variable
ENO Execution state Bit
Data register for storing the output value (MV) ANY16
Operand
type
Bit Devices Word Devices Others
System User Digit designation System User
Special
Unit
Index
Con
stant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifierK H E
""
P
z
S1 S2
z
S1 S2
z
S1
z
S1 S2
PID
EN
s1
s2
ENO
d
s3
PID
EN
s1
s2
ENO
d
s3
Command input
Target value(SV) Output value(MV)
Measured value(PV)
Parameter