Difference between revisions of "AXY:MC-Basic:SERCMAXPOS"

From SoftMC-Wiki
Jump to: navigation, search
 
(51 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{| class="prettytable"
 
{| class="prettytable"
| '''Short form'''
 
| '''N.A.'''
 
 
<nowiki><new mode> 0</nowiki>4
 
  
 
|-
 
|-
 
| '''Syntax'''
 
| '''Syntax'''
| <nowiki> ? user SET_SERCOS_MIN(,,)</nowiki>
+
| <nowiki> ? user SET_SERCOS_MAX ( AxisNumber , value , 0 ) </nowiki>
  
 
|-
 
|-
| '''Description'''
+
| '''DESCRIPTION'''
| Sets the operational mode explicitly:
+
| this user function mimics <axis>.countmax.  
 
+
| It sets a value of maximum <axis>.countFeedBack. If countFeedBack passes this value - it is reduced to SERCMINPOS, see figure.
 
 
'''DPmode'''(0) – digital position
 
 
 
'''DVmode'''(1) – digital velocity
 
 
 
'''DTmode'''(2) – digital torque
 
 
 
'''AVmode'''(3) – analog velocity mode
 
 
 
'''ATmode'''(4) – analog torque mode* If the current mode is digital then, the mode change occurs at the end of the current movement command ('''''Move, Jog,''''' and '''''DigitalTorque''''') when the generator completes the motion.  
 
 
 
* The interpreter does not wait the motion end, all succeeding '''''WoMode''''' commands will overwrite the previous value if given during the same movement.
 
 
 
* If the current mode is analog and the new mode is one of the digital modes, then the mode change occurs immediately, and a profiled change (stopping) of the PVT values is executed to the following rules:
 
 
 
* to DIGITAL-POSITION mode the axis is stopped using the '''''DecMax''''' value with the initial velocity and position values equal to the current feedback values. At the end the velocity is zero.
 
* to DIGITAL-VELOCITY mode the axis is stopped using the '''''DecMax''''' value with the initial velocity and position values equal to the current feedback values. At the end the velocity is zero.
 
 
 
* to DIGITAL-TORQUE mode the torque is changed to zero value using the nodal value of '''''TimeToTorque''''' for the torque change from its initial value that is equal to the current feedback value to zero torque value.
 
 
 
 
 
  
 
|-
 
|-
 
| '''Data Type'''
 
| '''Data Type'''
| integer (when queried)
+
|AxisNumber:    1 to sys.NumberAxes
 +
|-
 +
|
 +
|value:          -maxlong to maxlong
  
 
|-
 
|-
 
| '''Range'''
 
| '''Range'''
| 04
+
|0  : value set OK
 +
|-
 +
|
 +
|(-1): value was not set
  
 
|-
 
|-
 
| '''Default'''
 
| '''Default'''
| '''0'''
+
| maxLong
  
 
|-
 
|-
 
| '''Units'''
 
| '''Units'''
| none
+
| counts
  
 
|-
 
|-
| '''Non-Volatile'''
+
| '''Scope'''
|  
+
| task, terminal
  
 
|-
 
|-
| '''Scope'''
+
| '''Limitations'''
| Config, task, monitor
+
| Write only
  
 
|-
 
|-
| '''Write Access'''
+
| '''Example'''
| Read/Write
+
|? user SET_SERCOS_MAX(1,1024,0)
  
 
|-
 
|-
| '''Limitations'''
+
| '''SEE ALSO'''
| modal-only, Attachment needed
+
* [[AXY:MC-Basic:SERCMINPOS]]
 +
* [[MC-Basic:CountMax]]
 +
|}
  
|-
+
'''figure: ccmd Vs cfb'''
| '''Examples'''
 
| WoMode DTmode – setting digital mode
 
  
?WoMode – querying the current mode
+
[[Image:AXY;SET_SERCOS_MAX.jpg]]
  
 +
{| class="prettytable"
 +
|-
 +
|'' ? user SET_SERCOS_MAX ( 1 , 10000 , 0 ) ''
 
|-
 
|-
| '''Cross Reference'''
+
|'' ? user SET_SERCOS_MIN ( 1 , -1000 , 0 ) ''
|
 
  
 
|}
 
|}

Latest revision as of 08:37, 22 May 2014

Syntax ? user SET_SERCOS_MAX ( AxisNumber , value , 0 )
DESCRIPTION this user function mimics <axis>.countmax. It sets a value of maximum <axis>.countFeedBack. If countFeedBack passes this value - it is reduced to SERCMINPOS, see figure.
Data Type AxisNumber: 1 to sys.NumberAxes
value: -maxlong to maxlong
Range 0  : value set OK
(-1): value was not set
Default maxLong
Units counts
Scope task, terminal
Limitations Write only
Example ? user SET_SERCOS_MAX(1,1024,0)
SEE ALSO

figure: ccmd Vs cfb

AXY;SET SERCOS MAX.jpg

 ? user SET_SERCOS_MAX ( 1 , 10000 , 0 )
 ? user SET_SERCOS_MIN ( 1 , -1000 , 0 )