Difference between revisions of "MC-Basic:BUS.PHASE"

From SoftMC-Wiki
Jump to: navigation, search
(Added description and reference to EtherCAT)
m (Text replace - "CANOpen" to "CANopen")
Line 12: Line 12:
 
'''Behavior:'''<br>
 
'''Behavior:'''<br>
 
'''SERCOS''': Set or Get Sercos phase. Accepted values are 0,1,2,3,4<br>
 
'''SERCOS''': Set or Get Sercos phase. Accepted values are 0,1,2,3,4<br>
'''EtherCAT/CANOpen''': Control and query NMT state. <br>
+
'''EtherCAT/CANopen''': Control and query NMT state. <br>
 
0: PREOP - state <br>
 
0: PREOP - state <br>
 
1: No effect <br>
 
1: No effect <br>

Revision as of 08:27, 21 August 2014

Behavior:
SERCOS: Set or Get Sercos phase. Accepted values are 0,1,2,3,4
EtherCAT/CANopen: Control and query NMT state.
0: PREOP - state
1: No effect
2: No effect
3: No effect
4: OP - state

Syntax

?BUS[<bus_number>].Phase
BUS[<bus_number>].Phase = <expression>

Availability

Since Version 4.9.11

Type

<return value>: Double
<bus_number>: Long
<expression>: Long, Double

Scope

Configuration, Task or Terminal

Limitations

EtherCAT: NMT state shall not be set directly. Use EtherCAT:EC STARTMASTER and EtherCAT:EC STOPMASTER to set master state to OP mode

Examples

?BUS[0].NumberAxes
BUS[0].Phase = 4

See Also

EtherCAT:SETUP-EC