189
Outline Converts BCD code that expresses 4-digit decimals to 16-bit binary data.
Program example
■ Operands
* The K constant available here is in the range of K0 to K9999.
** The H data specified here should be in the form of BCD code that express 4-digit decimal ranging from H0 (BCD) to H9999 (BCD).
■ Explanation of example
• Converts word external input relay WX0 to 16-bit binary data when trigger X0 turns ON.
The converted data is stored in data register DT0.
6-3. Description of High-level Instructions
F81
(BIN)
4-digit BCD data → 16-bit data
Availability
Step
5 All series
S
D
4-digit BCD equivalent constant or 16-bit area for 4-digit BCD data (source)
16-bit area for storing 16-bit binary data (destination)
Ladder Diagram
Boolean Non-ladder
Address Instruction