Results 1 to 3 of 3

Thread: New system variables????

  1. #1
    Join Date
    Jul 2000
    Location
    , Ewing NJ
    Posts
    244

    Default New system variables????

    the programmers handbook lists system variables up to around %(22). the new home program uses %(53). is there a complete list of system variables available?

    da

  2. #2
    Ted Hall, ShopBot Guest

    Default

    Hi David,

    You are really paying attention! Yes we have made some more system variables available ... and yes, the ability to check the value of switches in a fashion other than using the ON INPUT interrupt is very useful. (And yes, others can have a look at how they are used in the S_Home2.sbp sample file.)

    Here is a full listing of the currently available system variables. I'd like to mention two more things about these variables:

    -There are some situations, such as within a stack of moves, where to insure that the system variable value is fully updated at the time of the call, you may need to precede it with an SC,2 Command. The 'SC,2' forces and update of the Movement Stack activity and also an update of the system variables.

    -We will increasingly make more system variables available. Adding more system variables, because most must be continuously updated as the tool moves, consumes processing time. This is not an issue on a fast Pentium. However, on a 386, adding variables has a measurable impact on top speed. This is why we have been conservative in making these variables available.

    ShopBot System Variables [accessed as %(variable number)]:
    These are Read-Only Variables; However, note that most of these
    values are set with regular ShopBot Commands
    -------------------------------------------------------------------------------------------

    %(1) = Current Location of X Axis (in inches or mm)
    %(2) = Current Location of Y Axis (in inches or mm)
    %(3) = Current Location of Z Axis (in inches or mm)
    %(4) = Current Location of Acc Axis (in inches or mm)

    %(6) = current location of X axis in ShopBot Units (of limited use in Part File software)
    %(7) = current location of X axis in ShopBot Units (of limited use in Part File software)
    %(8) = current location of X axis in ShopBot Units (of limited use in Part File software)

    %(9) = Encoder error X Axis (for use with cable-drive tools)
    %(10) = Encoder error Y Axis (for use with cable-drive tools)
    %(11) = Steps per Encoder unit X Axis (for use with cable-drive tools)
    %(12) = Steps per Encoder unit Y Axis (for use with cable-drive tools)
    %(13) = Current Encoder location X axis (for use with cable-drive tools)
    %(14) = Current Encoder location Y axis (for use with cable-drive tools)

    %(15) = Low Limit Value Z Axis
    %(16) = Hi Limit Value Z Axis
    %(17) = Low Limit Value Acc Axis
    %(18) = Hi Limit Value Acc Axis

    %(20) = Current Cutter Diameter in software

    %(21) = Current Distance Setting (Absolute-0; Relative-1)
    %(22) = Current Move Mode Setting (Cut/Move Mode-0; Preview Mode-1)

    %(25) = Initial Segment Size (cable-derive tools)
    %(26) = Stall Threshold (cable-derive tools)
    %(27) = Tolerance (cable-derive tools)
    %(28) = Start Tolerance (cable-derive tools)

    %(31) = Unit Value X Axis
    %(32) = Unit Value Y Axis
    %(33) = Unit Value Z Axis
    %(34) = Unit Value Acc Axis

    %(50) = Current Composite Encoder Reading (4 hight bits)
    %(51) = Status Input #1 (0-OFF; 1-ON)
    %(52) = Status Input #2 (0-OFF; 1-ON)
    %(53) = Status Input #3 (0-OFF; 1-ON)
    %(54) = Status Input #4 (0-OFF; 1-ON)

    We'll post these on the main announcement board, and they will be updated in the manuals.

  3. #3
    Join Date
    Jul 2000
    Location
    , Ewing NJ
    Posts
    244

    Default

    thanks,

    there are a couple that look real interesting.

    da

Similar Threads

  1. System Variables List?
    By blairjj in forum Archives2006
    Replies: 7
    Last Post: 09-28-2006, 08:28 PM
  2. Current System variables
    By bill.young in forum Archives Developers
    Replies: 2
    Last Post: 12-19-2005, 06:10 AM
  3. System Variables
    By amorgan in forum Archives 2005
    Replies: 2
    Last Post: 03-14-2005, 03:43 PM
  4. System Variables
    By George M (Unregistered Guest) in forum Archives thru2004
    Replies: 14
    Last Post: 10-14-2004, 08:17 PM
  5. Variables?
    By romper in forum Archives-2002
    Replies: 3
    Last Post: 09-11-2002, 12:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •