3、NT/STRING/TIME/,D/DATE/DT等:,_BOOL:轉(zhuǎn)型成布爾值::BYTE/INT/TIME/STRING等:INT_,_SINT/REAL:整數(shù)類型轉(zhuǎn)換:REAL_,/LREAL_,:實數(shù)型/長實數(shù)型轉(zhuǎn)型::INT等:TIME_,/TIME_OF_DAY:時間轉(zhuǎn)型::STRING/DWORD/SINT等:DATE_,/DT_,:日期轉(zhuǎn)型::BOOL/INT/BYTE/STRING等:STRING_,:字符串轉(zhuǎn)型::BOOL/WORD/TIME等:TRUNC:取整:9、NumericFunctions:數(shù)據(jù)計算
4、功能::ABS:取絕對值:SQRT:開方:LN:取自然對數(shù):LOG:取對數(shù):EXP:e求冪:SIN:正弦:COS:余弦:TAN:正切:ASIN:反弦:ACOS:反余弦:ATAN:反正切:EXPT:求冪:二、庫文件Library1、Standard.lib標(biāo)準(zhǔn)庫1.1,Stringfunction:字符串運算::LEN:長度計算:LEFT:左取位:RIGHT:右取位:MID:中間取位:CONCAT:字符串疊加:INSERT:插入:DELETE:刪除:REPLACE:代替:FIND:查找:1.2,Trigger:觸發(fā)保持::R_TR
5、IG:上升沿保持:F_TRIG:下降沿保持:1.3,Counter:計數(shù)器::CTU:上升沿計數(shù):CTD:下降沿計數(shù):CTUD:上升沿、下降沿計數(shù):1.4,Timer:計時器::TP:觸發(fā)計時器:TON:高電平計時器:TOF:低電平計時器:RTC:運行時鐘計時器:一、操作塊Operator1、IECOperators:運算符::ADD:加法:MUL:乘:SUB:減:DIV:除:MOD:求余:2、BitstringOperators:邏輯操作::AND:與:OR:或:XOR:異或:NOT:非:3、Bit-shiftOperator
6、s:移位操作::SHL:左移:SHR:右移:ROL:循環(huán)左移:ROR:循環(huán)右移:4、SelectionOperators:選擇操作:::GG:=FALSE選擇IN0OUTOUT:=IN0IN1G:=TRUEOUT:=IN1MAX:最大值:MIN:最小值:LIMIT:比較選擇::IN>MAX:OUT:=MAX;IN7、于等于:EQ:等于:NE:不等于:6、AddressOperators:地址::ADR7、CallingOperators:調(diào)用操作::CAL8、TypeConversionFunctions:轉(zhuǎn)型功能::BOOL_,:布爾值轉(zhuǎn)型::INT/STRING/TIME/,D/DATE/DT等:,_BOOL:轉(zhuǎn)型成布爾值::BYTE/INT/TIME/STRING等:INT_,_SINT/REAL:整數(shù)類型轉(zhuǎn)換:REAL_,/LREAL_,:實數(shù)型/長實數(shù)型轉(zhuǎn)型::INT等:TIME_,/TIME_OF_DAY:時間轉(zhuǎn)型::STRIN
8、G/DWORD/SINT等:DATE_,/DT_,:日期轉(zhuǎn)型::BOOL/INT/BYTE/STRING等:STRING_,:字符串轉(zhuǎn)型::BOOL/WORD/TIME等:TRUNC:取整:9、NumericFunctions:數(shù)據(jù)計算功能::ABS:取絕對值: