Reading The Counter Value And The Load Value, Scanning And Resetting The Status - Siemens SIMATIC FM 450-1 Manual

Counter function module installation and parameter assignment
Table of Contents

Advertisement

Programming in M7 with the Counter Function Library
7.7
Reading the Counter Value and the Load Value, Scanning and Re-
setting the Status
Scanning
Information
M7CntRead
M7CntStop
7
AndRead
M7CntRead
LoadValue
Scanning the
Counter Status
Resetting the
Counter Status
7-10
www.gkbpx.com
The functions listed below are used for scanning information such as
Counter value
Load value and
Counter status
The counter status can be reset if required.
The counter status can be read with M7CntRead. The current status of the
counter channel is read and stored in the pActCntV return parameter.
The M7CntStopAndRead function stops the counter channel and reads the
counter status simultaneously. The current counter status is then stored in
pActCntV.
The load value of a counter channel can be read with M7CntReadLoadValue.
You can scan the status of the counter channel with the M7CntReadStatus
function. The function returns the counter status. See the description of
M7CntReadStatus in Appendix 12 for the meaning of the individual bits in
the counter status. The function can be used, for example, to scan the zero
pass to see if the counter channel is running, if the counter overflow has
taken place, which counter direction is in force, etc.
Bits that have been set in M7CntReadStatus can be reset again via the
M7CntResetStatus, in order, for example, to detect a renewed zero pass or a
renewed counter synchronization (multiple setting via SET digital input).
该文档是极速PDF编辑器生成,
如果想去掉该提示,请访问并下载:
http://www.jisupdfeditor.com/
FM 450-1 Counter Function Module
C79000-G7076-C450-01

Advertisement

Table of Contents
loading

Table of Contents