Hitachi S10mini User Manual page 113

Option
Hide thumbs Also See for S10mini:
Table of Contents

Advertisement

(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]
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) ;
Note: For the S10mini, substitute 0xD74112, 0xDF4112 for 0xD60020, 0xDE0020.
[Parameters for mathematical/logical function]
Main
+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
C language
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) ;
5-61
5 USER GUIDE
Sub

Advertisement

Table of Contents
loading

This manual is also suitable for:

S10vFl.netLqe500Lqe502

Table of Contents