Question:
Why are the temporary codes necessary?
Answer:
Temporary codes are flags connected to fixed code numbers (C2500/1...255; C2501/1....255). These flags are chiefly used for communication with HMIs and can be written both externally (e.g. by the HMI) and the PLC program. Like all codes (expection the temporary codes C2500/1...255 and C2501/1...255), the value is saved off mains with C0003.
Access to the code in the program can be gained via the variable declaration at address, e.g. %MW1.4 (here bit by bit). The sequence of the logic operation between flags and codes is defined as follows:
- Code 2500/1 = %MW0
- Code 2500/2 = %MW1
- Code 2500/3 = %MW2
- etc.