CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Fri Aug 23, 2019 5:45 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Aug 30, 2018 10:33 pm 

Joined: Thu Aug 09, 2018 2:38 am
Posts: 6
Hi guys,
I'm new to CodeSys and I'm trying to display the content of a variable as binary in my text field. So I have an INT with 37 decimal value in it
and I want it to be displayed as 100101 instead of 37.

In the help of Codesys I found the placeholder %b and swiftly tried it out, but to no avail. I have attached a couple of screenshots. ... n=

Maybe someone can quickly point me into the right direction.

Thank you

online decimal.PNG

You do not have the required permissions to view the files attached to this post.

PostPosted: Sun Sep 02, 2018 3:11 pm 

Joined: Fri Dec 26, 2014 3:10 am
Posts: 48
Hi Studiologe,

Please advice which version of codesys you are using?

I'm using the version 3.5 sp13 it display correctly the binary value.

Thank you
John Lee

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 5 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited