Author Topic: Binary representation of const value  (Read 5641 times)

Offline LKs

  • PLUS+1 Novice
  • *
  • Posts: 1
  • Karma: +0/-0
Binary representation of const value
« on: March 02, 2017, 10:00:45 AM »
Is it possible to write const value in binary representation?
For example:
Value 3600 (10) -> 3600
E10 (16) ->0xE10
111000010000 (2) -> ?

I try 0b111000010000 and 111000010000b but doesn't work.
I use of course constant multi-character in Plus+1.

Offline FluidPowerTom

  • PLUS+1 Guru
  • *****
  • Posts: 363
  • Karma: +33/-0
Re: Binary representation of const value
« Reply #1 on: March 02, 2017, 05:26:40 PM »
I know that in Structured Text you can use 2#, so it'd be 2#111000010000.
Controls Engineer
Hydra-Power Systems