欢迎来到天天文库
浏览记录
ID:20686394
大小:493.50 KB
页数:4页
时间:2018-10-14
《欧姆龙plc数据类型》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、欧姆龙PLC数据类型 欧姆龙plc数据类型 BOOLAddressofabinarybit-alogicalBooleanonoroffstate.Thistypeistypicallyusedforcontactsorcoils. CHANNELThisisaspecialdatatype,forbackwardcompatibility.Itisanaddress(non-bit)todataofanytype(unsignedorsigned,oneormorewords),socanbeusedinpla
2、ceofanyoftheabovedata-typesexceptNUMBERandBOOL.Thedatatypeisweak,andsocheckingislimited(e.g.CX-ProgrammercannotcheckiftheaddressisbeingusedforBCDorbinaryvalues). DINTAddressofasigned,doublebinaryword. INTAddressofasigned,singlebinaryword. LINTAddressofasigned,q
3、uadbinaryword. NUMBERAliteralnumericvalue.Notanaddress.Thevaluecanbesigned,orfloatingpoint. NUMBERsareusedforanyliteralvalueorfortimer/counteridentifiers(inthiscase,onlyunsignedintegervaluesareallowed).FloatingpointvaluesareonlysuitablewithinIEEEREALtypeoperands
4、. Note:whenusedasBCDnumberoperands,thevalueistreatedasahexadecimalvalue(e.g.usingaNUMBERE234EisequivalenttotypingE1234Eastheoperand,sothatthedecimalinterpretationismadeofthevalue).ThevalueofaNUMBERdatatypeisassumedtobedecimal,unlessitisprefixedwith‘#’forahexadeci
5、malvalue. REALAddressofadoublewordfloatingpointvalue(IEEEformat-usetheUDINT typefortheBCD,FDIVformat). LREALAddressofalongwordfloatingpointvalue(IEEEformat-usethe ULINTtypefortheBCDformat). UDINTAddressofanunsigned,doublebinaryword. UDINT_BCDAddressofanunsig
6、ned,doubleBCDword. UINTAddressofanunsigned,singlebinaryword. UINT_BCDAddressofanunsigned,singleBCDword ULINTAddressofanunsigned,quadbinaryword. ULINT_BCDAddressofanunsigned,quadBCDword. WORDAddressofabitstringof16bits. DWORDAddressofabitstringof32bits. LWOR
7、DAddressofabitstringof64bits.
此文档下载收益归作者所有