Read profibus inputs as INT?
AlexK
✭✭
in RobotStudio
Hi,
Is it possible to specify any group inputs or the like as INT so it's possible to get a negative integer value over profibus without the file and serial hadling option where you can convert as raw data.
For example: Have a group of 16 bits input. I want these to take a number between (rounded off for ease of typing) -32000 to 32000.
Best regards,
Alexander K
AlexK2008-8-8 14:17:0Best regards
Alexander Källberg
Alexander Källberg
0
Comments
-
Hi Alexander,
change your groupinput into a analoginput, like this example
current configuration:
-Name "giValueFromPLC" -SignalType "GI" -Unit "PB_Card" -UnitMap
"0-15"
change to:
-Name "aiValueFromPLC" -SignalType "AI" -Unit
"PB_Card" -UnitMap "0-15"
-MaxPhys 32767 -MaxBitVal 32767 -MinPhys -32767
-MinBitVal -32767
When you can read negativ values directly into a NUM-variable.
Best regards
thilbi
0 -
Thank you very much! That is exactly what I wanted!
Best regards
Alexander
Best regards
Alexander Källberg0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings