IP244
C79000–B8576–C866–01
7–24
3.3 Programming Example
Comments on the test program
The selected example shows how the parameter assignments of a module
could look like.
The example with indirect parameter assignment covers all possible modes
(i.e. the entire instruction set). The example of direct parameter assignment,
however, is limited to the following modes:
Command Message frame
number
B#(0,2) Parameter setting –
B#(3,1) Read actual value 17
B#(2,1) Read controller parameters 0
B#(1,2) Modify controller parameters 0
B#(1,1) Modify setpoints 0
B#(2,2) Changeover to automatic mode 0
B#(2,3) Changeover to manual mode 0
B#(0,4) Changeover to setpoint 1 0
B#(0,5) Changeover to setpoint 2 0
All data blocks that are necessary for accommodating the data exist and have
been established.
The example employs data blocks of the following names:
DB-A
DB 162
DB-B DB 163
DB-C DB 164
DB-A’ DB 172
DB-C’ DB 173
The FC 62 function in the test program uses direct parameter setting; FC 63 uses
indirect parameter setting. In indirect parameter setting, flag words or flag bytes
are specified at the input parameters of the FC 162.
The B#(0,1) (cold restart) resets the parameters upon a restart. A warm restart
is not permitted. The CPU branches to STOP mode in this case.
Introduction
Modes
Data blocks
FC162