AS Series Programming Manual CPoint : Number of the point for which the calibration has been completed. Done : Single-calibration-completed flag ADone : All-calibration-completed flag Error : Error flag ErrCode : Error code Explanation 1. This instruction is available for PLC with FW V1.08.00 or later. 2. The LCCAL instruction supports AS02LC module only. Before the instruction is used, you should get to know the configuration position of current module from HWCONFIG. 3. Group is the group number of the specified LC module connected to the right of the PLC or the remote module. The number of the PLC is 0, the number of the first remote module is 1 and so on. The maximum group number is 15.
If the specified module is not a LC module, the Error flag will change to ON. 4. Module sets the serial number of modules at the right of the PLC. The first one is number 1, the second one is number 2 and so on. Whatever modules at the right of the PLC must be numbered. The maximum number is 32. If the specified module is not a LC module, the error flag Error will change to ON. 5. ChNo is a channel number of the specified LC module. If the input value is not a channel number of the LC module, the error flag Error will change to ON. 6. Trigger is the command of triggering the single-point calibration. As Trigger changes from Off to ON, the LC module will be notified for calibration.
Done changes to ON when the calibration is done. If all-point calibration has _6 been done, ADone will changes to ON as well. Before the next calibration point is calibrated, you need observe that Done has changed to ON and then set Trigger to Off. Then the instruction will clear the Done flag as Trigger changes from On to Off. 7. TPoint is the number of total points for calibration. After the instruction is started, the value can not be changed again since the TPoint value has been transmitted to the LC module for calibration as the instruction is started initially. 8. Once ADone changes from Off to ON, the entire calibration will be stopped.
The calibration can be performed again if the LCCAL instruction is enabled again after being disabled. 9. CPoint is the number of points which have been calibrated and can not be modified by users. When CPoint value >= TPoint value, the instruction thinks that the calibration has been completed and the ADone flag changes to ON. 10. When the LCCAL instruction is enabled initially, the CPoint value is automatically cleared to 0 and Trigger, Done and ADone change to Off and the calibration is prepared. After Trigger is set from Off to ON and the LC module completes the calibration, the value of CPoint will be automatically added by 1 and the Done flag changes to ON.
You can observe current points for which the calibration has been completed via the value. For example, as the CPoint value is 2, it means that Trigger is triggered twice and the module has completed the 2-point calibration. 11. The error codes that ErrCode shows are listed in the following table. 6-436