What do you mean by decimal data format? Can you give some examples of what you want given a variable value in PBasic?
The SEROUT does have the ability to output decimal integer values using the DEC formatter and PBasic deals natively only with integer values.
I am using BS2p to send data to Instalert Variable Message sign board(VMS). I am sending data in a format that VMS can understand.I am using SEROUT to send data. In the DEBUG window i could see the data I sent through BS2p,but VMS couldn't respond. Using Comlab software (COM port monitor) I could identify the data coming out of BS2p is ASCII, if other format like Hex,Dec is selected the data is not the same as I sent. But I need to send decimal format data to VMS.
Are you clear with the scenario? Could any you suggest me?
Robert, It's a little unclear to me what you are trying to do without knowing what terminal commands·your VMS accepts so I am going to make the assumption that you are trying to send the decimal code for an ASCII character. I can see a use for this when you may want to send a control character say for positioning the cursor or clearing the screen. For example :- SEROUT 16,{your baud rate},· [noparse][[/noparse]27,42] will transmit the ESC code followed by an asterisk. When·sending text SEROUT 16,{your baud rate},[noparse][[/noparse]72,69,76,76,79] may work or you may have to send SEROUT 16,{your baud rate}, [noparse][[/noparse]"HELLO"] .
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
The SEROUT does have the ability to output decimal integer values using the DEC formatter and PBasic deals natively only with integer values.
Are you clear with the scenario? Could any you suggest me?
hope my assumption is somewhere near the mark
Jeff T.