Application Example - Siemens SIMATIC FM 450-1 Manual

Counter function module installation and parameter assignment
Table of Contents

Advertisement

Programming the FM 450–1
6.3

Application Example

Introduction
STL
L
T
A
S
6
R
CALL
AN
JC
L
T
SET
S
...
JU
CONT: ..
AN
S
END:
6-6
www.gkbpx.com
The example below shows how the FC CNT_CTRL can be used for the func-
tions 'Transfer load value to FM 450-1' and 'Start counter'. These functions
are representative of all functions here.
+1000;
CHANNEL1.LOAD_VAL;
INITIATE;
LOAD_DIRECT;
INITIATE;
CNT_CTRL, (
SW_GATE
:=START,
GATE_STP
:=GATE_STOP,
OT_ERR_A
:=ERR_ACKN,
OT_ERR
:=OPERATOR_ERR,
L_DIRECT
:=LOAD_DIRECT,
L_PREPAR
:=LOAD_INDIRECT,
T_CMP_V1
:=COMP1_LOAD,
T_CMP_V2
:=COMP2_LOAD,
RES_SYNC
:=RES_SYNCHRON,
RES_ZERO
:=RES_ZERO);
OPERATOR_ERR;
CONT;
CHANNEL1.OT_ERR_B;
OUTPUT;
ERR_ACKN
END;
LOAD_DIRECT;
START;
Explanation
// Enter load value in
// the DB.
// DIRECT input parameter
// FC call with the DB
// Channel 1
// Control software gate
// Stop gate
// Acknowledge operator error
// Operator error occurred
// Load new counter value
// Prepare new counter value
// Load new comparison value 1
// Load new comparison value 2
// Delete synchronization status bit
// Delete zero pass status bit
// If no error has occurred,
// CONTinue
// *** Error evaluation START ***
// Read and display additional
// information.
// Generate RLO 1
// Acknowledge error
// Further error response
// ***Error evaluation END ***
// Continue with normal execution
// Load direct function is ready
// Open software gate;
FM 450-1 Counter Function Module
C79000-G7076-C450-01
该文档是极速PDF编辑器生成,
如果想去掉该提示,请访问并下载:
http://www.jisupdfeditor.com/

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIMATIC FM 450-1 and is the answer not in the manual?

Table of Contents