Communication Protocols
Copyright IXXAT Automation GmbH
91
IEM Manual, 1.5
5.1.6 States and events
State changes of the PROFINET protocol are forwarded to the host. The cur-
rent PROFINET specific state (see COMpnio.h) is available by masking the
lowest 16 bits of the MSM state.
COM_k_PNIO_STATUS_UNDEFINED
: analog of the common state
COM_k_STATE_UNDEFINED
(no PROFINET specific meaning);
COM_k_PNIO_STATUS_NOT_INITIALIZED
: analog of the common state
COM_k_NOT_INITIALIZED
(no PROFINET specific meaning);
COM_k_PNIO_STATUS_INITIALIZED
: analog of the common state
COM_k_INITIALIZED
(no PROFINET specific meaning);
COM_k_PNIO_STATUS_IDLE
: no active connections at the moment;
COM_k_PNIO_STATUS_CONNECTED
: at least one active connection run-ning;
COM_k_PNIO_STATUS_PARAM
: extension status that can be combined with
“Idle” and “Connected” to show, that some of the submodules are being
parameterized at the moment. It is strongly recommended not to make any
changes in the device internal structure by pulling/pushing sub-/modules
while the “Param” bit is set in the status word.
In order to get known by the host about changes made with the DeviceName
and
IP
Parameters
from
the
network
side,
the
event
COM_k_EVT_VARIABLE_ACCESS
has to be registered. This event has one ex-
tended parameter in case of the PROFINET, namely, a value from the
COM_k_PNIO_DEVICE_XXX
set (see COMpnio.h).
5.1.7 Managing persistent data
Initialization structure, mapping data and the set of the plugged APIs, slots,
and subslots can be stored by means of the
COM_k_STORE_DYN_OBJECTS
command into the non-volatile memory of the IEM. If there is no valid initializa-
tion structure available in the SHM at startup (at
configuration data are restored from the non-volatile memory of the IEM. The
host CPU in its case is responsible only for storing the default configuration.
The device name and the IP settings are stored in the non-volatile memory of
the IEM, too, but it is not allowed to modify or delete these settings from the
Host. This is only allowed on request of the IO Controller/Supervisor from the
network side. The Host receives an event about changes made with these ob-
jects and may update its internal databank.
In the factory settings a PROFINET IO Device has a “zero-string” device name
and all IP settings set to 0.0.0.0.