![SEW-Eurodrive IPOS plus Manual Download Page 230](http://html1.mh-extra.com/html/sew-eurodrive/ipos-plus/ipos-plus_manual_1250042230.webp)
230
Manual – IPOSplus®
17
Standard functions
Compiler – Functions
Example
main()
{
_Nop( );
}
17.3.18 _SBusCommDef
Syntax
_SBusCommDef( object type, H)
Description
This statement sets up a data object for cyclical or acyclical data transfer. This object
can be used to transfer up to 2 variables (8 bytes) via the system bus. The data object
is written to a variable structure, the initial variable of which is specified in h. The cyclical
data transmission must be started via function SBusCommOn () or SBusCommState
(action) (see the following pages). The type of the data object is specified in objecttype.
Key points
objecttype
Expression that can adopt one of the following values:
H
First variable in the variable structure
Corresponding data structures have been defined for the individual object types.
SCD_REC
Initializes a data object that receives the data. A maximum of 32 variables can be set up.
The object has the following structure:
H+0: Object number
H+1: Number of data bytes and data format
H+2: Number of the variable H" from which point the received data is stored
SCD_TRCYCL
Initializes a data object, whose data is transmitted cyclically. .
The object has the following structure:
H+0: Object number
H+1: Cycle time ms
H+2: Offset time ms
H+3: Number of data bytes and data format
H+4: Number of the variable H" where the data to be transmitted starts
H+5: Result of the SCOM command
SCD_REC: Receive
SCD_TRCYCL: Cyclical send
SCD_TRACYCL: Acyclical send
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n