Jump to content

Changing online value display options in GX-DEV


Recommended Posts

Posted
When I go online, all of the values are in 16bit decimal. Is there any way to change this to ASCII? As in the picture, D9 should be 10 in ASCII, but it is displaying 12337 decimal which doesn't mean anything to me. Thanks.
Posted
i am not aware of such option but you can look into Device Batch Monitor, it allows exactly what you are looking for. as far as i remember format is presented according to used instruction (math instructions using double words present the values as 32-bit integers or floating point etc.).
Posted
When you say ASCII, do you actually mean HEX? The code looks like you're comparing a data register with a HEX value? Think ASCII values are only used with string variables, and I'm afraid I've never used them.
Posted
Found the ASCII look up table in the manual, which gives the HEX Codes for the ASCII Symbols Which means that your first four Hex values H3035, H3130 , H3430 and H3435 are equivalent to Ascii 05, 10, 40, 45 as it says in the comments. Your decimal value of 12341 is calculates to H3031 which then equates to ASCII 01, not the 10 you were expecting. Possibly the best bet would be to switch GX Developer to Hex View mode (which I'm sure you can do, you could in Medoc) and work in Hex, as the comparison constants are shown in Hex? ASCIICode HEX 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 Symbol ’0’ ’1’ ’2’ ’3’ ’4’ ’5’ ’6’ ’7’ ’8’ ’9’ ’A’ ’B’ ’C’ ’D’ ’E’ ’F’

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.   Restore formatting

  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.

×
×
  • Create New...