Testing A Sample; Adapting A Sample - Siemens SIMATIC FM 351 Manual

Positioning module
Hide thumbs Also See for SIMATIC FM 351:
Table of Contents

Advertisement

Samples
12.5

Testing a Sample

When you have made all the necessary entries for the sample, download the
complete block folder to the CPU.
The sample programs include variable tables (VATs) with which you can view and
modify the data blocks online (in other words in the RUN-P mode on the CPU). In
the variable table, select the views "Symbol" and "Symbol Comment". Open a
variable table, link it with the configured CPU and monitor the variables cyclically.
The displayed variables are then continuously updated. By transferring the control
values, you can modify the values in the online data blocks.
All the samples require that the machine data were entered and saved in the
parameter dialogs. This allows you to execute the samples one after the other.
If "continuous reading" from the FM 351 is programmed in your application (for
example, position values), this may impede the updating of the parameter dialogs
when using an S7-300 CPU.
12.6

Adapting a Sample

You can use the code of the samples directly as user program.
The code of the samples in neither optimized nor designed for all eventualities.
Error evaluation is not programmed in detail in the sample programs to avoid the
programs becoming unwieldy.
The "AllFunctions" sample program can be used as a template to form the basis of
your user program, which you tailor to your needs by modifying and deleting
functions.
The samples are prepared for channel 1 ("MultiChannels" for channels 1 and 2). If
necessary, adapt the channel number with the LAD/STL/FBD editor.
12-4
FM 351 Positioning Module
C79000-G7076-C351-02

Advertisement

Table of Contents
loading

Table of Contents