M7Cntpar - Siemens SIMATIC FM 450-1 Manual

Counter function module installation and parameter assignment
Table of Contents

Advertisement

12.10 M7CntPar

Function
Parameterize Counter Channel
Syntax
#include <m7cnt.h>
M7ERR_CODE M7CntPar(
LogChannel
pCntParam
Description
The function is called if the current parameters of the counter channel are to
be changed. Before calling the function, you must enter the desired parame-
terization data in the M7CNT_PARAM structure. After this, the function is
called to parameterize the counter channel specified. The new settings be-
come effective immediately.
Note
When the M7CntPar function is called, the current parameterization data are
always completely overwritten and part parameterizations cannot be made.
Any previously stored enable of the inputs or outputs will also be lost as a
result of reparameterization. This means that the M7CntEnableSet and, for
example, M7CntEnableOut functions may need to be called again after
M7CntPar.
Reparameterization overwrites already set comparison values and the load
value.
In addition, counter pulses may be lost when reparameterizing with the
M7CntPar function.
In the FM 450-1, the other channel remains unaffected by reparameterization.
Errors in parameter assignment result in initiation of a diagnostics interrupt.
Return Value
0
M7CNTE_NO_LOGCHANNEL
FM 450-1 Counter Function Module
C79000-G7076-C450-01
www.gkbpx.com
M7CNT_LOGCHANNEL LogChannel,
M7CNT_PARAM_PTR pCntParam);
Parameter
The function has been executed successfully
0
An error has occurred
Error Code
M7 Reference Counter Function Library
Meaning
Logical channel number, detected by M7CntInit
Pointer to the structure M7CNT_PARAM with
the parameterization data
Meaning
The channel specified when calling (LogChannel
parameter) is not valid.
该文档是极速PDF编辑器生成,
如果想去掉该提示,请访问并下载:
http://www.jisupdfeditor.com/
12
12-13

Advertisement

Table of Contents
loading

Table of Contents