
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
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings