42
7. RAM write commands cannot be used to read data.
4-2
Data Flow
3-2 Data Flow for the data flow in the PID Control Unit.
Data Settings
Before setting data with a user program or the Programming Console, turn ON
SW2-2 of the Unit to enable data setting from the C200H PC. However, the
executed bank number can be set with a user program or from the Programming
Console regardless of the ON/OFF setting of SW2-2.
SW2-1 (switching memory contents) may be set in either the OFF (Fixed) or ON
(Normal) position, but care is required as the setting of this switch changes the
stored data contents.
4-3
Programming
4-3-1 Example with SW2-1 in the Fixed Position
Description and Conditions
Example:
The user program makes the following settings:
Loop 1 SP = 80.0
Loop 2 SP = 90.0
Loop 1 executed bank number = 1
Loop 2 executed bank number = 3
Conditions: C200H-PID01
Unit number set to 0 (allocated memory: IR100 to IR109).
SW2-1 set OFF (Fixed) and SW2-2 set ON (C200H PC).
Sample Program
MOV (21)
#0800
100
MOV (21)
#0900
101
MOV (21)
#1350
102
END (01)
10700
25315
10701
(C200H)
#1350
1 cycle ON
Fixed
Set #0800 for word 100 (Loop 1 SP).
Set #0900 for word 101 (Loop 2 SP).
Set #1350 for word 102 (executed bank number).
Loop 2 executed bank number
Loop 1 executed bank number
Run bit ON
Be sure to set the correct values for the Loop 1 and Loop 2 SP.
The SV value is #0000 (0%) if no data is set. If the executed bank number is set to
a value out of the range from 1 to 8 the bank number reverts to the previous value
(default value = 1).
Reading Monitored Data
Read monitored data into the program using Wd (n+3) to (n+9).
Programming