Chapter 8 Built-in High-speed Counter Function
8-22
8.3 Internal Memory
8.3.1 Special area for High-speed counter
Parameter and operation command area of built-in high-speed counter use a special K device.
If values set in parameter are changed, it works with the changed values. At the moment, makes sure to use
APM_WRT function to save the changed value to flash. If not saved in flash, the changed values with the
power off => on and mode changed may not be maintained.
▪ The following example shows that the internal preset values of CH1 set in parameter are changed by
program and saved in flash.
- Receiving a command (Change Preset), it moves (MOV) the new internal preset value (5000) to the CH0
internal Preset area (%KD152) by using MOVE function.
- To save the changed settings into flash, it uses APM_WRT command. At the moment, slot information is
set to ’0’ in case of built-in function.
Remark
(1) In case of saving in flash memory using APM_WRT instruction, processing time of about 200~300ms is
required.
(2) Turning off the PLC power while writing to the flash memory or repetitively using the APM_WRT command
may damage the flash memory, so be careful when using it.
“0”input
0:Positioning
1:High speed counter
2:PID
“0”input
“0”input