Jump to content
IGNORED

Setting "CLOCK" in BwG


OLD CS1

Recommended Posts

I just replaced my BwG's battery tonight. Using the sample program provided in the BwG manual, I am receiving an I/O error of 34 which is out-of-space on a print.

 

10 OPEN#1:"CLOCK"

20 A$="3" !THURSDAY

30 B$="06/14/18" !TODAY

40 C$="20:52:00" !NOW

50 PRINT#1:A$,B$,C$

60 CLOSE#1

 

WTFO? I wanna say I have successfully set the clock before, but I really cannot be certain, now since the battery has been dead for so long.

Link to comment
Share on other sites

Try this program - just edit line 200 by removing CALL CLEAR and RUN DSKA.CLOCKMENU.

 

Thank you, good sir! ACTUALLY, with that program I was able to determine the exact problem and correctly set the time using this style, instead:

 

OPEN#1:"CLOCK"

PRINT#1:"3,06/14/18,23:46:30"

CLOSE#1

 

The result:

 

post-27864-0-01870800-1529034604_thumb.jpg

 

So the program would become, with the commas as part of the string sent to the device:

 

10 OPEN#1:"CLOCK"

20 A$="3" !THURSDAY

30 B$="06/14/18" !TODAY

40 C$="20:52:00" !NOW

50 PRINT#1:A$;",";B$;",";C$

60 CLOSE#1

  • Like 4
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...