Read profibus inputs as INT?
Options

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.6K RobotStudio
- 400 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 346 IRC5
- 73 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 844 RAPID Programming
- 20 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 108 Collaborative Robots
- 5 Job listings