Mitsubishi Electronics C64 Home Safety Product User Manual


 
8. Function Commands
BCD, BCDP
- 198 -
{ BCD, BCDP ... BIN BCD conversion (16-bit)
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
S
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
3
Setting data
D
BIN data or No. of device
where BIN data is stored.
S
No. of device to store
BCD data.
BCD conversion command
BCD
BCDP
BCD
S D
BCDP
S D
Function
The BIN data (0 to 9999) of the device designated with S is BCD converted and transmitted to the
device designated with D.
S side BIN 9999
D side BCD 9999
3276816384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
8000 4000 2000 1000 800 400 200 100 80 40 20 10 8 4 2 1
00 00 0000 11111111
00 0 0 00 0011111111
1000th place 100th place 10th place 1st place
BCD conversion
Always set to 0
(Note 1) If the BIN data designated by S is not within 0 to 9999, it will not be converted correctly.
Execution conditions
The execution conditions for BCD, BCDP are as follow.
BCD
ON
Executed per scan
Executed per scan
BCDP
Conversion command OFF