Showing results 1 to 3 of 3

Thread: Add a variable type 'byte'

  1. #1
    Join Date
    17.05.2013
    Posts
    12

    Default Add a variable type 'byte'

    hello,

    I have a value of the type byte stored in my datablock. I'm working with siemens step7.
    Now i want to have this value on my screen.

    But when i want to add this variable i cannot choose the datatype byte.
    I can see it in the sub-tree 'datatypes'. But it is not shown in the 'wizard' when i want to add a variable. I only can see int,reals and unsigned int's.

    what am i missing or doing wrong? It seems to be a very basic datatype.

  2. #2

    Default Re: Add a variable type 'byte'

    Hello Martijn,

    For a BYTE in the siemens S7, choose the USINT type (unsigned short integer, signal range 0-255)

    Or alternatively, you can use the SINT (signed integer, signal range -128-127).

    Did you know that you can actually Import your Step7 Project in zenon and automatically create all the required variables? That might save you quite a bit of work and helps avoid any mistakes

    -> from the context menu for the variables node, choose Extended Import / Export, and then Import S7 Project.

    Best regards,
    Mark

  3. #3
    Join Date
    17.05.2013
    Posts
    12

    Default Re: Add a variable type 'byte'

    Ok thanks for your the clarification. I know i could import but i prefer manualy adding the variable because of naming.

    Strange they call it an USINT since in the subtree variable there is an variable byte availeble. Anyway this will work also.

Similar Threads

  1. String in Byte-Array
    By rooswald in forum Drivers
    Replies: 2
    Last Post: 21st May 2013, 07:31
  2. Add element to zenOn ListBox
    By fabios in forum VBA
    Replies: 1
    Last Post: 30th November 2012, 15:30
  3. Replies: 1
    Last Post: 11th June 2009, 08:02
  4. variable type time didn't appear in zenon
    By johnny in forum Engineering Studio Logic & Logic Service (former zenon Logic Workbench & Runtime)
    Replies: 3
    Last Post: 16th January 2009, 12:11
  5. Replies: 3
    Last Post: 17th October 2008, 12:43

Posting Rules

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