1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. KUKA Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Byte Swap Not Working in WoV 6.0

  • Ardeshir Talaei
  • June 12, 2024 at 5:36 PM
  • Thread is Unresolved
  • Ardeshir Talaei
    Reactions Received
    1
    Trophies
    2
    Posts
    5
    • June 12, 2024 at 5:36 PM
    • #1

    Hi,

    I am trying to communicate a 16-bit UInt from Robot to a Siemens S7-1200 but I cannot figure out why the byte swap is not working.

    KRC4 KSS 8.6 + WoV 6.0

    Here are screenshots for the IO mapping and byte swapping in WoV:

    The signal is defined in $config.dat:

    Code
    ;==================================
    ; Userdefined Variables 
    ;==================================
    SIGNAL MTEC_SET_FREQ $OUT[17] TO $OUT[32]
    SIGNAL MTEC_RUN_PUMP $OUT[33]

    And set it to 1 in the SmartPad, but in TIAPortal, I receive it as 256. There is no byte swapping in TIAPortal and I also checked the signal bit by bit. The byte order is not changing, no matter if I configure the byte swap in WoV or not. It's always LSBF!

    256 on the robot is received as 1 in TIAPortal, so I'm sure the addresses are not shifted.

    Am I missing something?

    Any help would be highly appreciated. :tired_face:


    Many thanks in advance.

  • panic mode
    Reactions Received
    1,295
    Trophies
    11
    Posts
    13,130
    • June 12, 2024 at 9:41 PM
    • #2

    what are your steps? what exactly did you do after swapping bytes in WorkVisual? did you deploy the project back to robot? did you activate it?

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Ardeshir Talaei
    Reactions Received
    1
    Trophies
    2
    Posts
    5
    • June 13, 2024 at 10:32 AM
    • #3

    I just follow the normal procedure . . . Deploy (F6) and it automatically activates the project. Should I do anything more?

    Also tried deleting all the projects on the robot and deploying it as a new project. No luck!

    I don't need to set it as the base project, do I?

  • hermann
    Reactions Received
    411
    Trophies
    9
    Posts
    2,621
    • June 13, 2024 at 1:18 PM
    • #4

    No, your procedure is correct.

  • panic mode
    Reactions Received
    1,295
    Trophies
    11
    Posts
    13,130
    • June 13, 2024 at 3:31 PM
    • #5

    yup... if only change is IO setup, that will be it. it may be an issue with WoV. what version you have there? and this is not pretty but it only need to be done once and should solve it no matter what:

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • panic mode
    Reactions Received
    1,295
    Trophies
    11
    Posts
    13,130
    • June 13, 2024 at 3:40 PM
    • #6

    or you can group them as bytes, just so that they stand out. this should make it obvious for anyone doing any future modifications.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Ardeshir Talaei
    Reactions Received
    1
    Trophies
    2
    Posts
    5
    • June 13, 2024 at 7:08 PM
    • #7

    Thank you for your suggestion. The thing is that I asked about one signal, but I actually need many. I prefer to swap the bytes in the PLC program if it comes to that.

    I'm using WorkVisual 6.0.29_Build3018

    I just realized that after I deploy the project, if I compare the local project with the controller's active project, there are some differences left. It includes Bus Config for EMD, System Machine Data, and 8 files (screenshot). Is it normal? Could it be the problem?


  • panic mode
    Reactions Received
    1,295
    Trophies
    11
    Posts
    13,130
    • June 13, 2024 at 7:46 PM
    • #8

    use the Compare files feature (lowe left corner)

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Hes
    Reactions Received
    42
    Trophies
    2
    Posts
    243
    • June 14, 2024 at 5:04 PM
    • #9

    Id say that bits need to be grouped (in the view where you swap them) for the swap to do anything. Otherwise it looks ok.

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Tags

  • Siemens 1200
  • byte swap
  • wov 6.0
  • Siemens PLC
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download