L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 357

Advertising
background image

L-force | PLC Designer

The Resources



DMS 3.2 EN 02/2011 TD29

355

Input address, Output address, Diagnostic address: Addresses for Input- and Output
respectively for the storage of diagnosis data.

These addresses refer to the module. It depends on the general settings , which
addresses are already predefined, which address mode is valid and whether the

addresses can be still edited here.

Comment: Here additional information text on the module can be entered.

Do not adapt address automatically: This option is only available if defined by the
configuration file. If it is activated, the module will not be regarded in case of a

recalculation of the addresses. (Default: Option is deactivated.)

Load module description: If this option is deactivated, the module will not be regarded
at a download of the project (Deactivation of a module). Per default the option is
activated and it is defined in the configuration file *.cfg whether it is visible and
editable in the configuration dialog.

The diagnosis in the PLC configuration:

The field Diagnostic address serves for specifying a marker address to which the

diagnosis information (bus state) will be written automatically.

For normal I/O modules it depends on the special hardware configuration how the
diagnosis will be handled.

For bus systems like CAN or Profibus DP the diagnosis works like described in the

following: From the given diagnosis address onwards there will be stored various
information concerning the structure GetBusState which is part of a corresponding
library delivered by the manufacturer (e.g. BusDiag.lib by 3S - Smart Software
Solutions). All bus modules get a request to fill the diagnosis structure in a cyclic
sequence each time when an IEC task has written or read process data to/from the

modules.

Diagnosis analysis via function block DiagGetState:

As soon as at least one module in the bus system produces an error, the specific
diagnosis information can be read using the function block DiagGetState which is
also part of the above mentioned library. This function is only available for bus

masters, which have been configured within the PLC Designer PLC configuration !
In order to be able to analyze the diagnosis data given in structure GetBusState, a

variable of type GetBusState must be assigned to the marker address (diagnostic

address), e.g.:

BusState AT %MB12 : GetBusState;

Advertising