Publication 1746-PM001A-US-P
BASIC Macro Library
A-9
1771-DB/B Backplane
Functions
The file INCLUDBB.BDL comes as part of the BASIC Development software
package. It contains all of the BASIC programming macros listed in this library,
along with the information necessary to translate them. Review the contents of the
macro as listed in this file so you fully understand its functions and interaction with
its application. The statement {$I INCLUDBB.BDL} should appear at the
beginning of any program in which you intend to use these programming macros.
This library only includes the backplane and number conversion macros for the
1771-DB/B. If you wish to use any of the general purpose BASIC macros, the
statement {$I INCLUDE.BDL} must also appear at the beginning of your
program.
Table A.11 1771-DB/B Backplane Macros
Number Conversion
CALLs
Macro
Inputs
Outputs
db_to_plc_16(%1,%2)
Converts the number from BASIC Floating-Point to PLC
16-Bit Unsigned Binary (4 digit hex)
%1=Value to be converted
%2=BTR word to store
value
None
db_to_plc_bcd_3(%1,%2)
Converts the number from BASIC Floating-Point to PLC
3-Digit, Signed, Fixed Decimal BCD +/- XXX.
%1=Value to be converted
%2=BTR word to store
value
None
db_to_plc_bcd_3_3(%1,%
2)
Converts the number from BASIC Floating-Point to PLC
3.3-Digit, Signed, Fixed Decimal BCD +/- XXX.XXX
%1=Value to be converted
%2=BTR word to store
value
None
db_to_plc_bcd_4(%1,%2)
Converts the number from BASIC Floating-Point to PLC
4-Digit, BCD XXXX
%1=Value to be converted
%2=BTR word to store
value
None
db_to_plc_bcd_6(%1,%2)
Converts the number from BASIC Floating-Point to PLC
6-Digit, Signed, Fixed Decimal BCD +/- XXXXXX
%1=Value to be converted
%2=BTR word to store
value
None
db_to_plc_oct(%1,%2)
Converts the number from BASIC Floating-Point to PLC
4-Digit, Signed, Octal +/-XXXX
%1=Value to be converted
%2=BTR word to store
value
None
db_to_plc5_float(%1,%2)
Converts the number from BASIC Floating-Point to PLC 5
Floating-Point
%2=BTR word to store
value
None
plc_16_to_db(%1,%2)
Converts the number from PLC 16-Bit Unsigned Binary (4
digit hex) to BASIC Floating-Point
%1=BTW word that holds
value to convert
2=Converted value
plc_bcd_3_to_db(%1,%2)
Converts the number from PLC 3-Digit, Signed, Fixed
Decimal BCD +/- XXX to BASIC Floating-Point
%1=BTW word that holds
value to convert
%2=Converted
value
plc_bcd_3_3_to_db(%1,%
2)
Converts the number from PLC 3.3-Digit, Signed, Fixed
Decimal BCD +/- XXX.XXX to BASIC Floating-Point
%1=BTW word that holds
value to convert
%2=Converted
value
plc_bcd_4_to_db(%1,%2)
Converts the number from PLC 4-Digit BCD XXXX to
BASIC Floating-Point
%1=BTW word that holds
value to convert
%2=Converted
value
Summary of Contents for 1747-PBASE
Page 1: ...BASIC Development Software Catalog Numbers 1747 PBASE Programming Manual ...
Page 8: ...Publication 1746 PM001A US P Table of Contents vi ...
Page 34: ...Publication 1746 PM001A US P 2 14 Getting Familiar with Your Development Software ...
Page 72: ...Publication 1746 PM001A US P 5 8 Manipulating Files ...
Page 88: ...Publication 1746 PM001A US P 6 16 Writing Programs Using the BASIC Development Language ...
Page 143: ......