DVP-ES3 Series Programming Manual Additional remarks 1. If the value in S is not the binary-coded decimal value, an operation error occurs, SM0 is ON, and the error code in SR0 is 16#200D. The binary-coded decimal value is represented by the hexadecimal value, but one of digits is not between 0–9. 2. Application of the BCD and BIN instructions: Before the value of the binary-coded decimal type of DIP switch is read into the PLC, use the BIN instruction to convert the data into the binary value and store the conversion result in the PLC.
If you want to display the data stored inside the PLC in a seven-segment display of the binary-coded decimal type, use the BCD instruction to convert the data into the binary-coded decimal value before the data is sent to the seven-segment display. When M0 is ON, move values in X0-X17 to D98. BIN instruction converts the binary-coded decimal value into the binary value, and stores the conversion result in D100. Subsequently, the BCD instruction converts the binary value in D100 into the binary-coded decimal value and stores the value in D102; after that move the conversion result to Y0–Y17. _6 6-82