Mitsubishi — 3.14.3.4 Data Conversion

Chapter 3 Creating and Editing Screens 3.14.3.4 Data Conversion There are various kinds of commands for data conversion. For more details, please refer to the following sections.  BCD (Convert BIN Data into BCD Value) Equation Var1 = BCD (Var2) Explanation The binary data in Var2 is converted into a BCD value and stored in Var1. Remark  The calculation result can be stored as unsigned WORD or DWORD.  Var1 and Var2 can be internal memory only. Example After executing BCD command, the binary data in $0 is converted to a BCD value and stored in $1 (this is an operation of unsigned 16-bit data). Revision May, 2010 3-333