<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Set Kinematics Configuration of 6-DOF Robot</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/1bbc358233/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Motion/thread/1bbc358233/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Motion/thread/1bbc358233/</id><updated>2020-02-27T18:29:51.063000Z</updated><subtitle>Recent posts to Set Kinematics Configuration of 6-DOF Robot</subtitle><entry><title>Set Kinematics Configuration of 6-DOF Robot</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/1bbc358233/?limit=25#9f55" rel="alternate"/><published>2020-02-27T18:29:51.063000Z</published><updated>2020-02-27T18:29:51.063000Z</updated><author><name>drsumruay</name><uri>https://forge.codesys.com/u/drsumruay/</uri></author><id>https://forge.codesys.com0d37e44f8505dd7d041d92977f2f19aead18555d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you, for your answer&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;but MC_GroupReadActualPosition still doesn't change follow my configuration during movement or synchornize motion state, for example&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;i set the ArmState:=TRAFO.Kin_6DOF_J0_State.ARMSTRAIGHT but the MC_GroupReadActualPosition change the value itself, maybe ArmState:=TRAFO.Kin_6DOF_J0_State.ARMFORWARD ,so it's not my configuration.      &lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;hr/&gt;
&lt;p&gt;i have another problem with the value of ''Machine coordinate System''(MC_COORD_REF) in MC_GroupReadActualPosition,&lt;br/&gt;
'A'(Angle of rotation around z-axis &lt;span&gt;[deg]&lt;/span&gt;) value and 'C'(Angle of rotation around z’‘-axis &lt;span&gt;[deg]&lt;/span&gt;) value always vary while there's no movement, for example, C value vary between -180 and 180&lt;br/&gt;
How can I set 'A' and 'C' value to be static.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Set Kinematics Configuration of 6-DOF Robot</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/1bbc358233/?limit=25#65b5" rel="alternate"/><published>2020-02-27T18:29:47.893000Z</published><updated>2020-02-27T18:29:47.893000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.come6615ee8929e034ca364e7c821b0e18e711f66c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;SMC_SetKinConfiguration is an administrative function block. That means that it will not cause a movement. Instead, it will only _set _ the configuration of the robot. This configuraiton will be used for future movements.&lt;/p&gt;
&lt;p&gt;Example:&lt;br/&gt;
1)  A scara robot currently is in configuration “elbow left”. &lt;br/&gt;
   MC_GroupReadActualPosition returns configuration “elbow left”&lt;/p&gt;
&lt;p&gt;2)  SMC_SetKinConfiguration(“elbow right”) is called&lt;br/&gt;
   No movement is done, MC_GroupReadActualPosition still returns “elbow left”, as the robot did not move.&lt;/p&gt;
&lt;p&gt;3)  MC_MoveDirectAbsolute is called with a target position in MCS.&lt;br/&gt;
   The scara now moves the TCP to the given target position, but now in configuration “elbow right”.&lt;br/&gt;
   During the movement, MC_GroupReadActualPosition first returns “elbow left”, then “elbow right”&lt;/p&gt;
&lt;p&gt;Note 1: the configuration is only used if a target position is commanded in MCS (or WCS/PCS), not in ACS.&lt;br/&gt;
Note 2: a movement between different configurations is only possible with MC_MoveDirectAbsolute/Relative, not with MC_MoveLinearAbsolute/Relative or MC_MoveCircularAbsolute/Relative. Reason: the movement is going through a singularity of the robot.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Set Kinematics Configuration of 6-DOF Robot</title><link href="https://forge.codesys.com/forge/talk/Motion/thread/1bbc358233/?limit=25#45e9" rel="alternate"/><published>2020-02-27T18:29:46.777000Z</published><updated>2020-02-27T18:29:46.777000Z</updated><author><name>drsumruay</name><uri>https://forge.codesys.com/u/drsumruay/</uri></author><id>https://forge.codesys.com7d41b122457156ab63ecef96a72a0871fb4e84b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I 've some issues when i try to change my TCP of robot using 'SMC_SetKinConfiguration', so the Done signal of this block is set to true&lt;br/&gt;
but when i 've used 'MC_GroupReadActualPosition' block to read my current configuration of kinematics, it's doesn't change&lt;/p&gt;
&lt;p&gt;Anyone Can tell me what i missing or the block is inapplicable    &lt;/p&gt;
&lt;p&gt;Here's my partial Code&lt;/p&gt;
&lt;p&gt;VAR&lt;br/&gt;
  Kin_Config : TRAFO.Kin_ArticulatedRobot_6DOF_Config;&lt;br/&gt;
  ReadKin_Config: TRAFO.Kin_ArticulatedRobot_6DOF_ReadConfig;&lt;br/&gt;
  SMC_SetKinConfiguration: SMC_SetKinConfiguration;&lt;br/&gt;
END_VAR&lt;br/&gt;
Kin_Config(ArmState:=TRAFO.Kin_6DOF_J0_State.ARMSTRAIGHT,ElbowState:=TRAFO.Kin_6DOF_J2_State.ELBOWSTRAIGHT&lt;br/&gt;
,HandState:=TRAFO.Kin_6DOF_J4_State.HANDDOWN);&lt;br/&gt;
SMC_SetKinConfiguration(AxisGroup:=Unibot,Execute:=TRUE,ConfigData:=Kin_Config.Config);&lt;br/&gt;
  IF SMC_SetKinConfiguration.Done THEN&lt;br/&gt;
    ;&lt;br/&gt;
  END_IF&lt;br/&gt;
MC_ReadPosition_MCSCoord(Enable:=TRUE, AxisGroup:=Unibot, CoordSystem:=SMC_COORD_SYSTEM.MCS);&lt;br/&gt;
IF MC_ReadPosition_MCSCoord.Valid THEN&lt;br/&gt;
    ReadKin_Config(Config:=MC_ReadPosition_MCSCoord.KinematicConfig);&lt;br/&gt;
END_IF&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>