Mitsubishi Electronics C64 Home Safety Product User Manual


 
8. Function Commands
BIN, BINP
- 202 -
{ BIN, BINP ... BCD BIN 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
BCD data or No. of device
where BCD data is stored.
S
No. of device to store
BIN data
BIN conversion command
BIN
BINP
BIN
S D
BINP
S D
Function
The BCD data (0 to 9999) of the device designated with S is BIN converted and transmitted to the
device designated with D.
S side BCD 9999
D side BIN 9999
3276816384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
00 00 0000 11111111
Set to 0
8000 4000 2000 1000 800 400 200 100 80 40 20 10 8 4 2 1
00 00 00 0011111111
1000th place 100th place 10th place 1st place
BIN conversion
(Note 1) If the data designated by S is not within 0 to 9999, it will not be converted correctly.
Execution conditions
The execution conditions for BIN, BINP are as follow.
BIN
ON
Executed per scan
Executed per scan
BINP
Conversion command OFF