You are on page 1of 3
Chapter 22 Elementary data types ‘The controller supports the elementary data types defined in IEC 131-3 ippo. ry data typ defined data types. The elementary data types are Data pe esription B00 Fabien SH ope ge Tate Mt Pd 32758 0 DT ow ye iene 2078558 tb ETB eL ye ating pat nant AEE o-LTBME* (regaine abs) ant and TABLA 78 (peste vate MT Byte eg -SESSTIOEESATER a SETIOROEATIRT he: Te UN da ype asia on ConpetLagiS70 Caron 57 rpc urd 557, nd Gus 5570 etal. Theycanbe we ery wth copy COP. CPS) scons the CSTINabick Tie tt. tre sforizsn ad Ad -n i Data tne. sage un Tim OF OF rises oso 3 pein sometine zs sc 2 Snape ths isthe ange over 7 dee and ive. Br ra OS ne rosccns Lorwensi 3-238 TpeInsometine zones sch Snape thst ange Lorito-0-9-0880:00.000.00n-dOaC+0830) to 2-0-5588 SC.) THE Di As i is TOA As ne Os THE Td Oh Sn Bin To Ii Sr. ns. 2s TE ng raton lr BN Saye 14h. Sn hs SR To acne ie. re ss es isi ens integer ds NT ate ied oe Dio 535 lant ‘ye sre eg Tio ARSE UAT Byte nse iene Dio GEA TTBS a “ye oat pa aber SANE o TRE (regaine ras) ant ant PSE SoS ARRIENE (oust vas Publication T56-2HOO3¥-EN- - November 2022 229 Chapter 22 __Common Attributes for General instructions Data ype Description m9 Wh a oat pore rabor TART LOSTESSITIONE: STB (nogave values) and and 222507S8E0T204- 3080 PSANVELTETESS (postive vas) ‘These controllers support the following elementary data types: Controllers Data ype pelo S80, CanpaclagioW8Conrologx | STINT, ONT, UNT RAL SER0, Camps Guar og S30, and GurdLogxS580 UST UNT, UDI, UUNT, LEA rites Corpaetagi 70 Canoga 70 compat ‘ST ONT UNT REAL Suara Sn urd. 50 extoles ‘The controller handles all immediate values as DINT data types. ‘The REAL data type also stores + infinity and + NAN, but the software display differs based on the display format. Data type conversions When data types are mixed for operands within an instruction, some instructions automatically convert data to an optimal data type for that instruction. In some cases, the controller converts data to fit a new data type; in some cases, the controller just fits the data as best it can. Conversion Result age heer analer rege The cate ones the ver porn fhe ger Flyer ad garrates on oeon For eas Decimal Binary ow i W cy ow ww SATO WEA To daapecin isha DIN To REAL Dat recon ul be Bah data ype so data 3 ts hl he REAL pees ane ISDS shore th oone: va. pec isl he cooler takes tom theleast-signicant sorn fhe DNL FEAL REAL to dare iss (REAL Ta raion cl bt, REALRERL a used ger Datars lb ste sore vabe tn Bio desraton ie ale sas wat Coa and may sade an veo. ‘Senedirepalrsonedregerto | ithe roger vale hs mre sipficart bis ican be sored ne desta te ower Ss wi be REALE truncate ‘Snedeertoursiged wager | te sure vaves obi Mo desatin, contr sors wha cn ene may pode a cveron. 830 Publication 1756-RMOD3¥-E November 2022 Chapter 22 Common Attributes f Instructions ‘Conversion Result gn iregara signed nog‘ the sour vaueis ino deatatn te conrler sores what can end may produce an cverfon FEAL wrap The corr rounds th ratorl par and eatesthe upper gota fhe er-acnal pat datas 5 contrasts the versa fg undo isto ees whee num: lestan 05, round down; qual a 05 ound orate ven roger te REAL (source) | DINT (result 16 2 15 2 as 28 z Do not convert data to or from the BOOL data type. TAPORTANT Tre rah ats Tags ar et tased on ihe vue ang ore. trues ta onal do rtafet math satus keywords righ appara do of ype carers ocu's because of mio datatypes fone nsruin paramos Th ype canwarson races este ath sous kewords Safety Data Types ‘The Logix Designer application prevents the modification of a User Defined or Add-On Defined type that would cause an invalid data type for User Defined or Add-On Defined types that are referenced directly or indirectly by a Safety tag. (This includes nested structures) Safety tags can be composed of the following data types: + Allelementary data types. ‘+ Predefined types that are used for safety application instructions. ‘© User-defined data types or arrays that are composed of the previous two types, Online edits of user-defined data type member names in safety tags Online editing is allowed for member names of user-defined data types on CompactLogix $380, Compact GuardLogix $380, CompactLogix 5480, ControlLogix 5580, and GuardLogix ss80 controllers. However, online editing is disabled when a user-defined data type is used ona safety tag and the controller is in the Safety Secured state. See also Math Status Flags on page 82: Publication 1756-RMOOSN-EN-P - November 2022 oa

You might also like