Siemens SIMATIC ET 200S Manual de funciones - Página 24

Navegue en línea o descargue pdf Manual de funciones para Equipamiento industrial Siemens SIMATIC ET 200S. Siemens SIMATIC ET 200S 40 páginas. Distributed i/o digital electronic module 4do dc24v/2a hf
También para Siemens SIMATIC ET 200S: Manual del usuario (18 páginas), Manual (16 páginas), Manual del usuario (16 páginas), Manual del usuario (26 páginas), Manual (37 páginas), Manual (24 páginas), Instrucciones de uso (4 páginas), Instrucciones de uso originales (19 páginas), Instrucciones de uso originales (20 páginas), Manual (34 páginas), Manual (14 páginas), Manual (24 páginas), Instrucciones de uso originales (17 páginas), Instrucciones de uso originales (19 páginas), Manual (16 páginas), Manual (28 páginas), Manual (12 páginas), Manual (32 páginas), Manual (18 páginas), Manual (12 páginas), Manual (28 páginas), Manual (22 páginas), Manual (22 páginas), Manual (36 páginas), Manual (16 páginas)

Siemens SIMATIC ET 200S Manual de funciones
Parameterization
4.2 Calling the function block
myFC_control
: _ET200S_FC_control;
myFC_control_In
: Struct_FC_control_In;
myFC_control_Out : Struct_FC_control_Out;
myRetValSetSafe
: enumSetAndGetSafeValue; // return value from system function _setsafevalue
...
END_VAR
PROGRAM ExampleET200S_FC;
END_INTERFACE
IMPLEMENTATION
PROGRAM ExampleET200S_FC
// Program in BackgroundTask
// call _getSafeValue -> Test I/O-variables after powerOn Reset
myRetValGetSafe := _getSafeValue (
variable
:= myPeriIn,
accessMode := DEFAULT_VALUE,
getValue
:= myTmpPeriIn
);
IF (myRetValGetSafe = OK)
THEN
// CALL FB INSTANCE
myFC_control (
periIn
:= myTmpPeriIn,
execute
:= myFC_control_In.execute,
mode
:= myFC_control_In.mode,
paraNumber
:= myFC_control_In.paraNumber,
subIndex
:= myFC_control_In.subIndex,
paraValueWr := myFC_control_In.paraValueWr, // value of the parameter to write
setpoint
:= myFC_control_In.setpoint,
ctrlDword
:= myFC_control_In.ctrlDword
);
// get output parameter of the FB _ET200S_FC_control
24
// create instance of FB _ET200S_FC_control
// input parameter of FB _ET200S_FC_control
// output parameter of the FB _ET200S_FC_control
// see example
// Program in BackgroundTask
// powerOn ready
// I/O peripheral input
// execute / start the data transfer
// select the mode
// parameter number to read or write
// index of the parameter
// set the setpoint
// set the control word
Supplement for the ET 200S frequency converter
Function Manual, 01/2015
(1
)
(2
)
(3
)
(4
)