beautypg.com

West Control Solutions KS 800 CANopen Interface Manual User Manual

Page 41

background image

KS 800 CAN-Interface

10.3

Adjusting a H/C controller and activating the self-tuning

Adjusting a standard controller (H) as a H/C controller via SDOs, starting the self-tuning and
reading the actual process values (via SDOs) are done as described below.

As only channel 1 is required, the subindex for the channel number must be set to "1".

-

Set configuration to offline

Index 0x2008 (OPMod=0)
Reference: process data, individual code 31

-

Set main controller configuration C100=0x0300 (H/C controller)

Index 0x200A
Reference:
C100 - controller description

-

Set main configuration C200=0x2010 (PT100, unit: C)

Index 0x2114
Reference:
C200 - controller description

-

Set configuration to online

Index 0x2008 (OPMod=1)
Reference: process data, individual code 31

-

Set set-point Weff

Index 0x2313 (Weff=250)

-

Start self-tuning

Index 0x2206 (OStart=1)
Reference: controller, individual code 34

-

Read optimization status

Index 0x2250 (State_Tune_1)
Reference: controller, individual code 1

-

for( State_Tune_1[ Orun] == 1)
{

-

still active, read optimization status

Index 0x2250 (State_Tune_1)
Reference: controller, individual code 1

}

-

if( State_Tune1[ Oerr == 0])
{

-

continue controlling, because optimization successful

-

loop for process values:
for(;;)
{

-

read effective process value channel 1

Index 0x2202

-

wait( 1sec)

}

}

9499 040 49511

41