Printed in the Federal Republic of Germany
TR-Electronic GmbH 2008, All Rights Reserved
03/20/2020
TR - EMO - TI - DGB - 0067 - 02
Page 23 of 23
3.4.2 "Write" parameter
In the following example, the parameter P200 (target position) must be written to the
drive with the value 1000. The following steps are necessary:
1. First FB invocation: Preconfigure all FB inputs
Write, Read, Save
and
Factory_default
with
FALSE
2. Next FB invocation: Query FB output
Done
to
FALSE
, then at FB input write
Number=200
,
Index=0
and
value=1000
and execute instruction via FB
input
Write
to value
TRUE
.
3. While instruction processing is running, call module cyclically and query FB
output
Done
until value is
TRUE
. The instruction is then complete. To ensure
that the value has been correctly written to the drive, it must be checked that
the FB output
Error
is at the value
FALSE
. Thereupon it is ensured that the
writing process was successfully completed.
3.4.3 "Save" parameter
In the following example, the parameter values currently active in the drive are to be
remanently stored.
1. First FB invocation: Preconfigure all FB inputs
Write, Read, Save
and
Factory_default
with
FALSE
2. Next FB invocation: Query FB output
Done
to
FALSE
, then at FB input
execute instruction via FB input
Save
to value
TRUE
.
3. While instruction processing is running, call module cyclically and query FB
output
Done
until value is
TRUE
. The instruction is then complete. To ensure
that the instruction has been correctly executed, it must also be checked that
the FB output
Error
has the value
FALSE
.
3.4.4 Load factory setting
In the following example the factory default parameter values are to be loaded in the
drive.
1. First FB invocation: Preconfigure all FB inputs
Write, Read, Save
and
Factory_default
with
FALSE
2. Next FB invocation: Query FB output
Done
at
FALSE
, then at FB input
execute instruction via FB input
Write
at value
TRUE
.
3. While instruction processing is running, call module cyclically and query FB
output
Done
until value is
TRUE
. The instruction is then complete. To ensure
that the instruction has been correctly executed, it must also be checked that
the FB output
Error
has the value
FALSE
.