M7Cntstart - Siemens SIMATIC FM 450-1 Manual

Counter function module installation and parameter assignment
Table of Contents

Advertisement

12.17 M7CntStart

Function
Start Counter Channel - for Operating Modes with Software Gate
Control
Syntax
#include <m7cnt.h>
M7ERR_CODE M7CntStart(M7CNT_LOGCHANNEL LogChannel);
LogChannel
Description
The counter channel is started via the software gate with this function. The
function only works error-free in the counter modes with software gate con-
trol. In the case of the operating modes with hardware gate control, an opera-
tor error is signaled.
Return Value
0
M7CNTE_NO_LOGCHANNEL
M7CNTE_FS_NO_START
See Also
Function: M7CntInit, M7CntLoadAndStart
Example
#include "M7CNT.H"
M7CNT_LOGCHANNEL
if ((Err = M7CntStart (Ch5)) != M7CNT_DONE)
FM 450-1 Counter Function Module
C79000-G7076-C450-01
www.gkbpx.com
Parameter
The function has been executed successfully
0
An error has occurred
Error Code
{...error handling...}
M7 Reference Counter Function Library
Meaning
Logical channel number, detected by
M7CntInit
Meaning
The channel specified when calling (LogChannel
parameter) is not valid.
Operator error: the counter channel cannot be
started in this operating mode
Ch5;
该文档是极速PDF编辑器生成,
如果想去掉该提示,请访问并下载:
http://www.jisupdfeditor.com/
12
12-21

Advertisement

Table of Contents
loading

Table of Contents