MC-Basic:BUS.PHASE

From SoftMC-Wiki
Jump to: navigation, search
Language: English  • 中文(简体)‎

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