下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
_NCF204_ReadActualPosition_REAL(
1/3)
FBInstanceArea
StartAddress
EndAddress
Size
NoRetain
H512
H1407
896
Retain
H1408
H1535
128
Timers
T3072
T4095
1024
Counters
C3072
C4095
1024
Specifyunu
sedarea.
Therequire
dsizevariesd
FBInstancerea
StartAddress
EndAddress
Si
NoRetain
D32020
D32767
748
Retain
H1408
H1535
128
Timers
T3072
T4095
1024
Counters
C3072
C4095
1024
NCF204
ReadPresentPosition(REAL)_NCF204_ReadActualPosition_REAL
Basicfunction
Readsthepresentpositionofanaxis.
Symbol
_NCF204_ReadActualPosition_REAL
AlwaysON(P_On) (BOOL) (BOOL)
EN ENO
UnitNo. (INT) (BOOL) NormalendUnitNo Done
AxisNo. (INT) (BOOL) ErrorflagAxis Error
Outputenablebit (BOOL) (WORD) Errorcode
Enable ErrorID
(REAL) PresentpositionPosition
Filename
Lib\FBL\omronlib\PositionController\NCF\NCF204ReadActualPositionREAL12.cxf
Applicablemodels
PositionControlUnit
CJ1W-NCF71,CS1W-NCF71
CPUUnit
CS1*-CPU**HUnitVersion3.0orlaterCJ1*-CPU**HUnitVersion3.0orlaterCJ1M-CPU**UnitVersion3.0orlater
CP1H
CX-Programmer
Version5.0orlater
Languagesinfunctionblock
definitions
Ladderprogramming
Conditionsforusage
ThefollowingconditionsforusageshouldbethePositionControlUnitversion1.2orearlier.(ItwillnotberequiredinthePositionControlUnitversion1.3orlater)
CX-ProgrammerSetting
ThefunctionblocksrelatedtothePositionControlUnitswillnotoperateiftheareaH512orhigher(defaultsetting)isspecifiedastheNonRetainAreathroughtheFunctionblockmemoryallocation.Makesuretochangethememoryareatounusedarea(DMorEM,forexample)fromtheCX-Programmer.Tochangethisvalue,clickPLC/FunctionBlockMemory/FunctionBlockMemoryAllocationfromthe Bar.
FunctionBlockMemoryAllocation[NewPLC1]
OK
CancelEditDefault
ependingontheusedFBandthenumberofFBs.Ifanareabeingusedintheladderprogramisspecifiedorsufficientspacecannotbefound,theCX-Programmerwilldisyacompileerror.
FunctionBlocMemoryAllocation[NewPLC1]
OK
CancelEdit
Default Forexample,tousethememoryareafromD32020toD32767
Advanced (748words),specifythe
addressesasshownintheleft.
Functiondescription
ThepresentpositionoftheaxisofthespecifiedUnitNo.(UnitNo)andAxisNo.(Axis)iscontinuouslyupdatedinthe“Presentposition(Position)”whiletheOutputenablebit(Enable)isON.WhentheOutputenablebit(Enable)turnsOFF,the“Presentposition(Position)”isclearedtoallzeros.
TheNormalend(Done)turnsONwhenthepresentpositiondataisvalid.
TheErrorflag(error)willbeturnedONandtheErrorcode(ErrorID)willbeoutputifanerroroccursfortheFB.(TheywillnotbeturnedONwhenaxiserrorsoccurs.)
ThisstatuswillberesetthentheOutputenablebit(Enable)turnsOFF.
Thesestatus(Done/Error/ErrorID)willberesetthentheOutputenablebit(Enable)turnsOFF.
ENONOFF
ENOONOFF
EnableON
OFF
DoneONOFF
ErrorONOFF
ReadPresentONPositionOFF
KindofFBdefinition
Alwayecutiontype.
ConnecttheENinputtotheAlwaysONFlag(P_On).
Thesameinstancecannotbeusedintwoormoreces.
ENinput
condition
?ConnecttheENinputtotheAlwaysONFlag(P_On).
IfanotherbitisconnectedtoEN,theFBoutputswillbeheldwhentheconnectedbitturnsOFF.
RestrictionsOther
?TheErrorflag(Error)andErrorcode(ErrorID)forthisFBreflectthestatusoftheMemoryAreainthePositionControlUnitwithoutaltion.
?ThisFBusesUnitErrorReset,WriteData,ReadDataandSaveDataBitsofthePositionControlUnit(seeNote).Therefore,donotturnthesebitsONorOFFbetweentheperiodfromtherisingedgeofENtotherisingedgeofENO.Forthesamereason,donotusethesebitsforcoiloutputs(OUTcommands).
?TheoutputvariableofFBmaynotchangeevenifENisturnedON.Inthatcase,checkifanyofUnitErrorReset,WriteData,ReadDataandSaveDataBitisleftON.
Note:
Forcalculationofbitaddresses,thesebitsarereferencedinthisFBinthefirstexecutionofeachinstance,andwhenchanging"UnitNo.(UnitNo)","AxisNo.(Axis)"oftheinputvariableandset“Outputenablebit(Enable)".
Applicationexample
WhenturningtheBitAONfromOFF,thepresentpositionofaxis1oftheServomotorconnectedtothePositionControlUnitwithunitnumber0isreadandstoredinD0.
UnitNo.:0
CPU NCF
Servomotor
Axis1
Sample
_NCF204_ReadActualPosition_REAL
AlwaysON(P_On) (BOOL) (BOOL)
EN ENO
UnitNo. (INT) (BOOL) Normalend
&0 UnitNo Done BitB
AxisNo. (INT) (BOOL) Errorflag
&1 Axis Error BitC
Outputenablebit (BOOL) (WORD) Errorcode
BitA Enable ErrorID D100
(REAL) Presentposition
Position D0
Related
manuals
PositionControlUnitsOPERATIONMANUAL(W426-E1)12-4ErrorCodes
VariableTablesInputVariables
Name
Variablename
Datatype
Default
Range
Description
EN
EN
BOOL
1(ON):FBstarted
0(OFF):FBnotstarted
UnitNo.
UnitNo
INT
&0
&0to&15
Specifytheunitnumber.
AxisNo.
Axis
INT
&1
&1to&16
Specifytheaxisnumber.
Outputenablebit
Enable
BOOL
0(OFF)
TurnONtoenableoutput.TurnOFFtoresettheoutput.
OutputVariables
Name
Variablename
Datatype
Range
Description
ENO
ENO
BOOL
1(ON):FBoperatingnormally
0(OFF):FBnotoperatingnormally
?FBnotstarted
?Inputvariableoutoftherange
?FBendedwitherror
?CommonParameterscouldnotberead
Normalend
Done
BOOL
TurnsONforanormalend.
Errorflag
Error
BOOL
TurnsONforanerrorend.
Errorcode
ErrorID
WORD
ReturnstheerrorcodewhenanerrorhasoccurredintheFB.RefertotheRelatedManualsfordetailsonerrors.
Acodeof#0000willbereturnedifanyofthefollowingconditionsissatisfied.
?Inputvariableisoutofrange.
?ThecommonparametersofthePositionControlUnitsareoutofrange.
?Notestablishedcommunicationswithaspecifiedaxis.
Presentposition
Position
REAL
ThepresentpositionoftheaxiscontrolledbythePositionControlUnit.
VersionHistory
Version
Date
Contents
1.00
2004.06.
Originalproduction
1.10
2005.01.
Limitationaboutthesettingtimingwith"UnitNo."and"AxisNo."wasremoved.
1.20
2007.11.
Limitationonreading“Presentposition(Position)"wasremoved.
UpgradeDetails
Version
DetailedContents
1.10
Inversion1.0x,"UnitNo.(UnitNo)"and"AxisNo.(Axis)"mustbesetwhenENwasONand"Outputenablebit(Enable)"wasOFF.Thismeans
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 冬季施工暖棚搭設(shè)方案
- 人教版九年級(jí)化學(xué)上冊(cè)自制第六單元課題4實(shí)驗(yàn)活動(dòng)2-二氧化碳實(shí)驗(yàn)室制取與性質(zhì)(34張)
- 2019-2020學(xué)年高中數(shù)學(xué)第2章解析幾何初步2-3空間直角坐標(biāo)系課件北師大版必修2
- 接待禮儀-素材-培訓(xùn)講學(xué)
- 教育學(xué)原理04-近現(xiàn)代高等教育發(fā)展、教師
- 2024年泰州職業(yè)技術(shù)學(xué)院高職單招數(shù)學(xué)歷年參考題庫(kù)含答案解析
- 2024年陽(yáng)江市衛(wèi)校附屬醫(yī)院高層次衛(wèi)技人才招聘筆試歷年參考題庫(kù)頻考點(diǎn)附帶答案
- 二零二五年離婚房產(chǎn)分割與贍養(yǎng)義務(wù)協(xié)議3篇
- 二零二五版“汽車零部件銷售協(xié)議”英文翻譯
- 2024年江西醫(yī)學(xué)高等??茖W(xué)校高職單招職業(yè)技能測(cè)驗(yàn)歷年參考題庫(kù)(頻考版)含答案解析
- 山東省濰坊市2024-2025學(xué)年高三上學(xué)期期末 地理試題(無(wú)答案)
- 勞動(dòng)法培訓(xùn)課件
- 金蝶云星辰初級(jí)考試題庫(kù)
- 常見(jiàn)老年慢性病防治與護(hù)理課件整理
- 履約情況證明(共6篇)
- 云南省迪慶藏族自治州各縣區(qū)鄉(xiāng)鎮(zhèn)行政村村莊村名居民村民委員會(huì)明細(xì)
- 設(shè)備機(jī)房出入登記表
- 六年級(jí)語(yǔ)文-文言文閱讀訓(xùn)練題50篇-含答案
- 醫(yī)用冰箱溫度登記表
- 口袋妖怪白金光圖文攻略2周目
- 日有所誦(二年級(jí))
評(píng)論
0/150
提交評(píng)論