234
Manual – IPOSplus®
17
Standard functions
Compiler – Functions
Example
See _SBusCommStat
17.3.19 _SBusCommOn
Syntax
_SBusCommOn()
Description
In MOVIDRIVE
®
B, the command has been replaced by _SBusCommState. However,
due to downward compatibility, it can still be used.
This statement triggers the reception of data and the cyclical transmission of previously
defined data objects. The data objects are initialized using the SBusCommDef function
with the arguments SCD_TRCYCL and SCD_REC.
Argument
The command does not have an argument.
Example
See section "Compiler – Examples".
17.3.20 _SBusCommState
Syntax
_SBusCommState ( action )
Description
This statement initializes the CAN interface, starts or stops the data reception and the
acyclic transmission of predefined data objects via SBus 1 or SBus 2. The data objects
re initialized via the SBussCommDef function.
Regardless of the value for "action", with MOVITRAC
®
B, the _SBusCommState com-
mand ( action ) always has the same effect as _SBusCommOn (page 234).
Key points
action can adopt one of the following values:
INFORMATION
This command only activates SBus 1, not SBus 2
Value
Argument
Meaning
0
SCS_STARTALL
Starts cyclical communication synchronously from
SBus 1 and SBus 2.
1
SCS_STOPALL
Stop cyclical communication synchronously from SBus
1 and SBus 2.
2
SCS_START1
Starts cyclical communication from SBus 1.
3
SCS_STOP1
Stops cyclical communication from SBus 1.
4
SCS_START2
Starts cyclical communication from SBus 2.
5
SCS_STOP2
Stops cyclical communication from SBus 2.
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n