Difference between revisions of "MC-Basic:PROCEDURECHANGEBIT"

From SoftMC-Wiki
Jump to: navigation, search
m (Text replace - "Read-Only" to "Read only")
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:PROCEDURECHANGEBIT}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 7: Line 8:
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Available from version 0.4.5.15
+
Since Version 4.5.15
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Line 17: Line 18:
  
 
The procedure change bit is used to determine when procedure execution has terminated. After termination, the procedure must be cancelled.
 
The procedure change bit is used to determine when procedure execution has terminated. After termination, the procedure must be cancelled.
 
{{Note/Important| '''THIS COMMAND IS OBSOLETE'''}}
 
  
 
|TYPE=
 
|TYPE=
Line 38: Line 37:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read only , SERCOS ring is closed  ( Phase 2 or 4 according to procedure condition )
+
*Read only
 +
*SERCOS ring is closed  (Phase 2 or 4 according to procedure condition)
 +
*Not supported in EtherCAT system
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 55: Line 56:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:IDNSTATE|IDNSTATE]]
+
* [[MC-Basic:IDNSTATE|IDNSTATE]]
* [[Axystems:MC-Basic:WRITEIDNVALUE|WRITEIDNVALUE]]
+
* [[MC-Basic:WRITEIDNVALUE|WRITEIDNVALUE]]
* [[Axystems:MC-Basic:axis.PROCEDURECHANGEBIT|axis.PROCEDURECHANGEBIT]]
+
* [[MC-Basic:axis.PROCEDURECHANGEBIT|axis.PROCEDURECHANGEBIT]]
  
[[Category:Axystems:Obsolete|PROCEDURECHANGEBIT]]
+
[[Category:Obsolete|PROCEDURECHANGEBIT]]
  
 
}}
 
}}

Latest revision as of 07:10, 10 April 2017

Language: English  • 中文(简体)‎

Its parameter equal to <axis>.PROCEDURECHANGEBIT .

It is changed from 0 to 1 when a SERCOS procedure terminates when completed or when an error occurrs during procedure execution. SERCOS procedures are initiated by writing the value "3" to the relevant IDN. The procedure state is queried using the IDNSTATE query.

The procedure change bit is generated by the SERCOS amplifier and appears in bit number 5 of the amplifier’s status word.

The procedure change bit is used to determine when procedure execution has terminated. After termination, the procedure must be cancelled.

Short form

PCB( )

Syntax

?ProcedureChangeBit(<drive address>)

Availability

Since Version 4.5.15

Type

Long

Range

<drive address>: 1 to 254

Returned value   : 0 or 1

Scope

Configuration, Task or Terminal

Limitations

  • Read only
  • SERCOS ring is closed  (Phase 2 or 4 according to procedure condition)
  • Not supported in EtherCAT system

Examples

WriteIdnValue Drive = A1.Dadd  Idn = 99 Value = 3          ‘Start Procedure

While ProcedureChangeBit(A1.DAdd) = 0‘Wait for procedure to  terminate

End While

If IdnState(a1.dadd, 99) <> 3 then               ‘Check how procedure terminated
       Print “Reset Faults procedure failed”

End If

WriteIdnValue Drive = A1.Dadd Idn = 99 Value = 0           ‘Cancel Procedure

See Also