2 Instruction Descriptions
2-412
NJ-series Instructions Reference Manual (W502)
*1 ManCtl is TRUE, Run is FALSE, Error is TRUE, or MVTrackSw is TRUE.
*2 MacCtl is FALSE, Run is TRUE, Error is FALSE, MVTrackSw is FALSE, and ATB us y is FALSE.
*3 MacCtl is FALSE, Run is TRUE, Error is FALSE, MVTrackSw is FALSE, and ATB us y is TRUE.
• SampTime is truncated below 100 nanoseconds.
• If the value of StartAT changes to TRUE while the value of ManCtl is TRUE, autotuning starts the next
time the value of ManCtl changes to FALSE.
• If the value of ErrorMV is not within the valid range (−320 to 320), the value of MV will be 0 when an
error occurs.
• Autotuning is canceled if the value of ManCtl changes to TRUE during autotuning.
• The value of Error does not change to TRUE even if an error occurs during autotuning.
• An error occurs in the following case. Error will change to TRUE, and an error code is assigned to
ErrorID. ATDone and AT B u s y change to FALSE. MV is set to the value of ErrorMV if the values of
ManCtl and Run are FALSE. If the value of ErrorMV is outside of the valid range, the value of MV is 0.
• If an error stop is required for conditions other than the above, program the system so that the value
of Run changes to FALSE when the error occurs.
• If an error occurs because the value of PV or SP exceeds the valid range, the error status is main-
tained for five seconds even if the value returns to within the valid range sooner. That is, the value of
Error will remain FALSE for five seconds.
• PID control is restarted automatically if the value of Run is TRUE after the error is reset. Autotuning is
restarted automatically if the values of Run and StartAT are TRUE.
• A check is made for errors each sampling period.
In this sample, the PIDAT instruction is used to perform temperature control.
MVTrackVal Possible Possible Not possible
StopMV Possible Possible Possible
ErrorMV Possible Possible Possible
Alpha Possible Possible Not possible
ATCalcGain Possible Possible Not possible
ATHystrs Possible Possible Not possible
SampTime Possible Not possible Not possible
RngLowLmt Possible Not possible Not possible
RngUpLmt Possible Not possible Not possible
DirOpr Possible Not possible Not possible
ProportinalBand Possible Possible Not possible
IntegrationTime Possible Possible Not possible
DerivativeTime Possible Possible Not possible
ManMV Possible Possible Possible
Error Value of ErrorID
The value of an input variable is outside of the valid range. 16#0400
RngLowLmt is greater than or equal to RngUpLmt. 16#0401
MVLowLmt is greater than or equal to MVUpLmt.
Sample Programming
Variables
Control status
Instruction execution
stopped
*1
Automatic operation
when autotuning is not
being executed
*2
Automatic operation
when autotuning is being
executed
*3