5 USER GUIDE
5-61
(5) Parameters for various message requests
The rest of this section describes the parameters that the C mode handler and
mathematical/logical function use to issue various message requests.
Word block read request: wordrd( )
[Linking procedure]
C language
Main Sub
Struct wordr_p {
long node ;
unsigned short *Erradr ;
unsigned short *Setadr ;
long Readadr ;
long Readsz ;
} ;
long (*wordrd)( ) ;
long rtn ;
struct wordr_p *padr ;
wordrd = (long(*)( ))0xD60020 ;/* S10V */
rtn = (*wordrd)(padr) ;
Struct wordr_p {
long node ;
unsigned short *Erradr ;
unsigned short *Setadr ;
long Readadr ;
long Readsz ;
} ;
long (*wordrd)( ) ;
long rtn ;
struct wordr_p *padr ;
wordrd = (long(*)( ))0xDE0020 ;/* S10V */
rtn = (*wordrd)(padr) ;
Note: For the S10mini, substitute 0xD74112, 0xDF4112 for 0xD60020, 0xDE0020.
[Parameters for mathematical/logical function]
+0x0000
Message transmission service number (3)
+0x0004
Remote node number (1 to 254)
+0x0008
Error code storage address
+0x000C
Read data storage address
+0x0010 Virtual
address
+0x0014 Virtual
size
~
~
~
~
~
~
Содержание FL.NET
Страница 1: ......
Страница 2: ......
Страница 29: ...1 OVERVIEW ...
Страница 33: ...2 FL NET MODULE ...
Страница 42: ...3 FL NET MODULE INSTALLATION ...
Страница 46: ...4 FL NET MODULE WIRING PROCEDURES ...
Страница 53: ...5 USER GUIDE ...
Страница 203: ...5 USER GUIDE 5 151 Sample printout ...
Страница 206: ...6 MAINTENANCE ...
Страница 210: ...7 TROUBLESHOOTING ...
Страница 225: ...8 APPENDIXES ...