Command Interface

5.2.11Set_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:

SDuring 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.

SThis 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.

SIn 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

20

21

 

 

Meaning

 

 

 

 

 

 

Bit 7

 

Bit 1

 

Bit 0

 

 

 

 

 

 

 

Command number: 0A H

 

 

reserved

 

Mode

 

 

 

 

(0=online

 

 

 

 

1=offline)

 

 

 

 

 

Structure of the Job Data in the Receive Buffer

Bank Byte

20

21

Meaning

Echo of the command number: 0A H

Command status

SIMATIC NET CP 243-2 AS-i Master

5-23

C79000-G8976-C142/02

Page 91
Image 91
Siemens CP 243-2 installation instructions SetOfflineMode, Reserved Mode