Explicit read of a device ERROR Status register

Spider
✭
Trying to read a device parameter using explicit message through devicenet.
<clip from eds file>======================
Param35=
0, $ parameter value slot
6, "20 64 24 23 30 01", $ link path size and path
0x30, $ descriptor: monitor parameter, read only
0xC4, 4, $ type is DINT, length is 4 byte
"ERR_STAT", $ parameter name
"", $ units string
"", $ help string
-2147483648, 2147483647, 0, $ min, max, default
1, 1, 1, 0, $ mult, div, base, offset scaling
0, 0, 0, 0, 0 ; $ scaling links and precision
=====================================
0, $ parameter value slot
6, "20 64 24 23 30 01", $ link path size and path
0x30, $ descriptor: monitor parameter, read only
0xC4, 4, $ type is DINT, length is 4 byte
"ERR_STAT", $ parameter name
"", $ units string
"", $ help string
-2147483648, 2147483647, 0, $ min, max, default
1, 1, 1, 0, $ mult, div, base, offset scaling
0, 0, 0, 0, 0 ; $ scaling links and precision
=====================================
<so I tried this>========================
PROC AA()
var string atSET:="10";
var string atGET:="0E";
var rawbytes rb;
var iodev dev;
!PackDNHeader atget,"0,6,20 64 24 23 30 01,30,C4,4",rb;
!PackDNHeader atget,"0,6,20 64 24 23 30 01,C4,4",rb;
!PackDNHeader atget,"0,6,20 64 24 23 30 01",rb;
PackDNHeader atget,"20 64 24 23 30 01",rb;
Open "/FCI1:" File:="S_JVL1", dev Bin;
WriteRawBytes dev,rbNoOfBytes:=RawBytesLen(rb);
ClearRawBytes rb;
ReadRawBytes dev,rb;
Close dev;
UnpackRawBytes rb,1,dn intx:=-4;
pdn:=dn;
error
skipwarn;trynext;
ENDPROC
====================================
var string atSET:="10";
var string atGET:="0E";
var rawbytes rb;
var iodev dev;
!PackDNHeader atget,"0,6,20 64 24 23 30 01,30,C4,4",rb;
!PackDNHeader atget,"0,6,20 64 24 23 30 01,C4,4",rb;
!PackDNHeader atget,"0,6,20 64 24 23 30 01",rb;
PackDNHeader atget,"20 64 24 23 30 01",rb;
Open "/FCI1:" File:="S_JVL1", dev Bin;
WriteRawBytes dev,rbNoOfBytes:=RawBytesLen(rb);
ClearRawBytes rb;
ReadRawBytes dev,rb;
Close dev;
UnpackRawBytes rb,1,dn intx:=-4;
pdn:=dn;
error
skipwarn;trynext;
ENDPROC
====================================
*now I'm frustrated...*

<font face="Verdana, Arial, Helvetica
0
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 339 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 832 RAPID Programming
- 14 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings