Chapter 3 Counter function of the PI918
6F8C1370
12
Thefollowingcounterscanbespecifiedforeachchannelbyusingthe
pointparametersettingsofthePI918.
However,somefunctionsareaffectedbythemoduleparameters
(commonfunction).
Table 3. PI918 counter function list
Fig. 2-2 Basic operation flow
Whenturningonthepower,thetype1controllerexecutesthesystem
initializationatfirst,andthenoperationmodeprocessingifnoerror
occursduringinitialization.Aftertheoperationmodeprocessing,scan
processingisexecutediftheconditionstorunintheRUNmodeare
established.Scanprocessingistheprocessingtoexecuteuser
programsthatarethefunctionofthetype1controllermainunit.Ifthe
conditionstorunintheRUNmodearenotestablished,thesystem
statusbecomestheHALTmodewhereprogramsaredisabledtorun.
Theperipheralsupportprocessingistoaccepttherequestsfrom
nV-Toolandcomputerlinkandtoprocesstheresponsetothem.This
processisexecutedintheintervalbetweeneachscanprocessing.
Theselfdiagnosisprocessingisexecutedindividuallyineachprocess.
Fig.2-2showstheselfdiagnosisprocessingexecutedintheinterval
betweeneachscanprocessing.
Thischapterdescribesthecontentsofsysteminitializationprocessing,
operationmodeprocessing,scanprocessingandperipheralsupport
processing.TheselfdiagnosisprocessingisdescribedinChapter6RAS
Functions.
Table 3. PI918 counter function list
Point parameter Counter function
EP AL SP SV Counter type Application example
0 0 0 0 Universalcounter Programmableinterruptoccurrencetimer
0 0 0 1 Slavecounter Interruptcyclecounter
0 0 1 0 Speedcounter Selfdiagnosiscounter
0 0 1 1 - -
0 1 0 0 Universalcounter Gateonpulsewidthmeasurementwithalarm
0 1 0 1 Slavecounter Interruptcyclecounterwithalarm
0 1 1 0 Speedcounter Selfdiagnosiscounterwithalarm
0 1 1 1 - -
1 0 0 0 Universalcounter Autoresetuniversalcounter
1 0 0 1 Slavecounter Speedratiomeasurement
1 0 1 0 Speedcounter Speedcounter
1 0 1 1 - -
1 1 0 0 Universalcounter Universalcounterwithalarm
1 1 0 1 Slavecounter Speedratiomeasurementwithalarm
1 1 1 0 Speedcounter Speedcounterwithalarm
1 1 1 1 - -
(Note1)ThecombinationofSP=‘1’andAL=‘1’isinvalid.
(Note2)Inslavesetting,thepreviouschannelisthemaster,soitisinvalidinCH1.
Counterbasicoperationotherthantheslavefunction(SV=’0’)
Parameter
Counter operation
Gate,
command
AL SP
0 0
Thecounterisresetandaninterruptoccurseachtimethecount
reachesthealarmvalue.
Required
0 1
Thecountvalueistransferredtotheholdregisterandresetin
eachspeedcountercycle. Aninterruptoccursatthetimewhen
anyoverflowoccurs.
Not
required
1 0
Aninterruptoccurswhenthecountvaluereachesthealarmvalue.
Thecountiscontinued.
Required
1 1
Thecountvalueistransferredtotheholdregisterandresetin
eachspeedcountercycle. Aninterruptoccursifthealarmvalue
isexceeded. Aninterruptoccursatthetimewhenanyoverflow
occurs.
Not
required