Operation
EL691080 Version: 1.4.1
The Protocol AMS NetID of the PROFINET device can be found under the advanced EtherCAT settings of
the EL6631-0010 under the entry Mailbox AoE.
Fig.106: Protocol AMS NetID of the PROFINET device
4.11.3 Sample program for parameterization
In the following sample program the parameter data are received, stored in the PLC as persistent data,
resent to the EL6910 whenever the device starts up, and stored in CoE object 0x8005.
Note
Saving PROFIsafe parameters persistently
The safety parameters for the slave connection transferred by the PROFIsafe master to the
EL6910 are only transferred once when the PROFIsafe master starts up. On restart of the
EL6910 these parameters would not be transferred again, so that the stored data have to
be transferred again. If this is not done, the master must be restarted when the slave
restarts.
Variable declaration
PROGRAM F_Parameter_EL69x0
VAR
FbWriteInd: ADSWRITEIND;
FbWriteRes: ADSWRITERES;
FbWrite: ADSWRITE;
au8EL69x0NetId AT %I*: ARRAY[0..5] OF BYTE;
u16EL69x0Port AT %I*: WORD;
u16EL69x0State AT %I*: WORD;
u16OldState: WORD;
bWriteFPar: BOOL;
sNetId: STRING(23);
bNetIdInitialized: BOOL;
i: INT;
END_VAR
VAR PERSISTENT
au8FParameter: ARRAY[0..9] OF BYTE;
END_VAR