- Posts: 12
- Thank you received: 1
EtherCAT Servo cannot set to OP state
2 years 8 months ago #292296
by Stean
Replied by Stean on topic EtherCAT Servo cannot set to OP state
please send all configuration with xml file, I`ll try to check it today
Please Log in or Create an account to join the conversation.
2 years 8 months ago #292328
by Stean
Replied by Stean on topic EtherCAT Servo cannot set to OP state
I checked working, you have to check "vid=XXXXXX" and pid="XXXXXX" number in XML file, must match the servodrive ID`s.
command ethercat debug 0 show you more informations
command ethercat debug 0 show you more informations
Please Log in or Create an account to join the conversation.
2 years 8 months ago #292330
by Stean
Replied by Stean on topic EtherCAT Servo cannot set to OP state
or XML file is wrong, send to check
Please Log in or Create an account to join the conversation.
2 years 8 months ago #292822
by endian
Replied by endian on topic EtherCAT Servo cannot set to OP state
I think you should fill up your existing .xml file with correct stuff from your terminal
take care about shape and size of product and vendor IDs...
other stuff like cyclic PDOs you are able to create from some existing .xml samples from this forum... lets to search ethercat-conf.xml and take some time for study ... you have to learn what are what and what should be where... its easy
something like, but I can not tell you if it is working..
take care about shape and size of product and vendor IDs...
Code:
* Vendor ID: 0x00850104
* Product code: 0x01030507
other stuff like cyclic PDOs you are able to create from some existing .xml samples from this forum... lets to search ethercat-conf.xml and take some time for study ... you have to learn what are what and what should be where... its easy
Code:
SM0: PhysAddr 0x1000, DefaultSize 128, ControlRegister 0x26, Enable 1
SM1: PhysAddr 0x1080, DefaultSize 128, ControlRegister 0x22, Enable 1
SM2: PhysAddr 0x1100, DefaultSize 2, ControlRegister 0x64, Enable 1
RxPDO 0x1602 ""
PDO entry 0x6040:00, 16 bit, ""
PDO entry 0x60ff:00, 32 bit, ""
SM3: PhysAddr 0x1400, DefaultSize 6, ControlRegister 0x20, Enable 1
TxPDO 0x1a02 ""
PDO entry 0x6041:00, 16 bit, ""
PDO entry 0x6064:00, 32 bit, ""
PDO entry 0x606c:00, 32 bit, ""
lraja@lraja-desktop:~/lr_r2k/OpenPLC_v3$ sudo ethercat cstruct
/* Master 0, Slave 0, "SD700_ECAT Drive"
* Vendor ID: 0x00850104
* Product code: 0x01030507
* Revision number: 0x02040608
*/
ec_pdo_entry_info_t slave_0_pdo_entries[] = {
{0x6040, 0x00, 16},
{0x60ff, 0x00, 32},
{0x6041, 0x00, 16},
{0x6064, 0x00, 32},
{0x606c, 0x00, 32},
};
something like, but I can not tell you if it is working..
Code:
<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1000">
<slave idx="0" type="generic" vid="0x00850104" pid=" 0x01030507" name="stuff" configPdos="true">
<!-- Set OpMode to Cyclic Synchronous Velocity -->
<sdoConfig idx="6060" subIdx="00">
<sdoDataRaw data="09 00"/>
</sdoConfig>
<!-- Set Cycle Time -->
<sdoConfig idx="60c2" subIdx="01">
<sdoDataRaw data="01 00"/>
</sdoConfig>
<!-- Set Cycle exp = (-3) == 10^(-3) -->
<sdoConfig idx="60a2" subIdx="02">
<sdoDataRaw data="fd 00"/>
</sdoConfig>
<syncManager idx="0" dir="out"> </syncManager>
<syncManager idx="1" dir="in"> </syncManager>
<syncManager idx="2" dir="out">
<pdo idx="1602">
<pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="target-controlword" halType="u32"/>
<pdoEntry idx="60ff" subIdx="00" bitLen="32" halPin="target-velocity-si" halType="s32"/>
</pdo>
</syncManager>
<syncManager idx="3" dir="in">
<pdo idx="1a02">
<pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="actual-statusword" halType="u32"/>
<pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="actaul-position-si" halType="s32"/>
<pdoEntry idx="606c" subIdx="00" bitLen="32" halPin="actual-velocity-si" halType="s32"/>
</pdo>
</syncManager>
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>
</slave>
</master>
</masters>
The following user(s) said Thank You: cekaa
Please Log in or Create an account to join the conversation.
2 years 8 months ago #292980
by Stean
Replied by Stean on topic EtherCAT Servo cannot set to OP state
I confirm, I have the same servo and this configuration works.
Please Log in or Create an account to join the conversation.
- emresensoy
- Offline
- Senior Member
-
Less
More
- Posts: 66
- Thank you received: 37
1 year 6 months ago #326937
by emresensoy
Replied by emresensoy on topic EtherCAT Servo cannot set to OP state
I have similiar problem with this,
My configuraton has 1 VEICHI sd700 servo drive and 1 8I 8O digital IO card,
IO card working no problem,
Servo drive's encoder position is also working, I can see the encoder pos value changes when control is not enabled and I turn the motor by myself
But when I enable machine, servo drive not goes to enable state,
could you please help to me?
My configuraton has 1 VEICHI sd700 servo drive and 1 8I 8O digital IO card,
IO card working no problem,
Servo drive's encoder position is also working, I can see the encoder pos value changes when control is not enabled and I turn the motor by myself
But when I enable machine, servo drive not goes to enable state,
could you please help to me?
Please Log in or Create an account to join the conversation.
Time to create page: 0.257 seconds