beautypg.com

11 set_offline_mode – Siemens CP 243-2 User Manual

Page 91

background image

Command Interface

5-23

SIMATIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02

5.2.11

Set_Offline_Mode

Purpose

This call switches between the online and offline mode.

The online mode is the normal situation for the CP 243-2. Here, the following
jobs are processed cyclically:

S

During the data exchange phase, the fields of the output data are transferred to
the slave outputs for all slaves in the LAS. The addressed slaves transfer the
values of the slave inputs to the master when the transfer was free of errors.

S

This is followed by the inclusion phase in which there is a search for the existing
AS-i slaves and newly added AS-i slaves are entered in the LDS or LAS.

S

In the management phase, jobs from the user such as writing parameters are
executed.

In the offline mode, the CP 243-2 only processes jobs from the user. (Jobs that
involve the immediate addressing of an AS-i slave are rejected with an error.)
There is no cyclic data exchange with the AS-i slaves.

The OFFLINE=TRUE bit is not permanently stored; in other words, following a
warm/hot restart, the CP 243-2 is once again in the online mode.

Structure of the Job Data in the Send Buffer

Bank

Byte

Meaning

Bit 7

Bit 1

Bit 0

2

0

Command number: 0A

H

2

1

reserved

Mode

(0=online
1=offline)

Structure of the Job Data in the Receive Buffer

Bank

Byte

Meaning

2

0

Echo of the command number: 0A

H

2

1

Command status