(6) Programming and writing data
1.
Create the following programs with GX Works2 depending on the functions used.
Page 252, Section 9.3.2 (6) (a)
2.
Write the program to the CPU module of the master station and reset the CPU module, or turn off
and on the power supply.
3.
Change the state of the CPU module of the master station to RUN.
(a) Program examples
• Common program
*1
Add the following MCR instruction to the end of the program.
• Operation shift program for CH1
• Program that executes the auto tuning and backs up the PID constants in the non-volatile memory if the
auto tuning is normally completed (program that stops the auto tuning when an alert is detected)
• Program that reads Latest error code, Error occurrence address, and Temperature process value (PV)
252
RESET
or
Turn off and on the power.
RUN
Check the data link status of the station
*1
No.1 (NZ2GF2B-60TCTT4).
CH1 Operation shift
Turn on CH1 Auto tuning instruction.
Turn off CH1 Auto tuning instruction.
Turn on CH1 Auto tuning completion flag.
Turn on Set value backup instruction.
Turn off Set value backup instruction.
Turn off CH1 Auto tuning completion flag.
Turn off CH1 Auto tuning instruction.
Read CH1 Alert definition to D2004.
Transfer Latest error code to D2000.
Transfer Error occurrence address to D2001.
Transfer CH1 Temperature process value
(PV) to D2008.