- Posts: 339
- Thank you received: 134
DC configuration
3 years 11 months ago - 3 years 11 months ago #258202
by endian
DC configuration was created by endian
Hello gentelmen,
I have some hope to configure Kollmorgen S300 over ethercat but still struggling around .xml. there are some non usual stuff. I configured it over twinCAT over 1A00 and 1600. It is running over incremental PDOs in CSP but it is working flowesly, it is only supported setup. This should be solved over datatype=float and scale=xxx.xxxxx in the .xml file.
There was needed customizing ethercat EEPROM to allow write complete PDO setup in the single row and to allow configure via SDOs...
Then started just copy and pase original .xml file DC configuration but....There sh*t happend but I just keep fighting till the end.
have anybody experiences with this type of configuration of DC please?
I am not sure how to configurate .xml DC expesion:
Any ideas please? Thanks
Slav
I have some hope to configure Kollmorgen S300 over ethercat but still struggling around .xml. there are some non usual stuff. I configured it over twinCAT over 1A00 and 1600. It is running over incremental PDOs in CSP but it is working flowesly, it is only supported setup. This should be solved over datatype=float and scale=xxx.xxxxx in the .xml file.
There was needed customizing ethercat EEPROM to allow write complete PDO setup in the single row and to allow configure via SDOs...
Then started just copy and pase original .xml file DC configuration but....There sh*t happend but I just keep fighting till the end.
have anybody experiences with this type of configuration of DC please?
Code:
<Dc UnknownFRMW="1">
<OpMode>
<Name>DcSync</Name>
<Desc>DC for synchronization</Desc>
<AssignActivate>#x0300</AssignActivate>
<CycleTimeSync0 Factor="1">0</CycleTimeSync0>
<ShiftTimeSync0>0</ShiftTimeSync0>
<Sm No="2">
<SyncType>2</SyncType>
<CycleTime Factor="1">0</CycleTime>
<ShiftTime MinAfterSync="0">0</ShiftTime>
</Sm>
<Sm No="3">
<SyncType>2</SyncType>
<CycleTime Factor="1">0</CycleTime>
<ShiftTime MinBeforeFrame="100">0</ShiftTime>
</Sm>
</OpMode>
</Dc>
I am not sure how to configurate .xml DC expesion:
Code:
<dcConf assignActivate="300" sync0Cycle="*1" ///////-* sync0Shift="0" something should be here but I do not have any idea how to do it -///////* />
Any ideas please? Thanks
Slav
Last edit: 3 years 11 months ago by endian.
Please Log in or Create an account to join the conversation.
3 years 11 months ago #258210
by db1981
Replied by db1981 on topic DC configuration
can you post image from twincat witch shows the dc parameters from the slaves ehtercat tab.
Please Log in or Create an account to join the conversation.
3 years 11 months ago #258242
by endian
Replied by endian on topic DC configuration
by this configuration it has been
it is in phase with DC or???
Code:
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0" />
it is in phase with DC or???
Please Log in or Create an account to join the conversation.
3 years 11 months ago #258248
by db1981
Replied by db1981 on topic DC configuration
yes this in phase with every dc cycle.
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0" /> this line should be ok.
what apptimeperiod and servo_cycle you are running?
Your Twincat setup is configured for 2ms / 500hz , if the servo drive is configured for this. It will not run if you lcec set to 1ms/1khz
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0" /> this line should be ok.
what apptimeperiod and servo_cycle you are running?
Your Twincat setup is configured for 2ms / 500hz , if the servo drive is configured for this. It will not run if you lcec set to 1ms/1khz
Please Log in or Create an account to join the conversation.
3 years 11 months ago #258308
by endian
Replied by endian on topic DC configuration
servo thread period in the .hal file == appTimePeriod in the .xml file == DC value cycle in the servo amplifier(if it has not .xml setup)... I had 2ms DC synchronization in servo amplifier which is wrong value ... there should be more problems...
How it will be with components in lcnc servo thread configuration? for all that components is great to run over same servo thread period or can I create special 2ms thread for lcec application. but there should be some missmatch in control values i think or?
how it will be with " refClockSyncCycles="?????" " . I had it at value "refClockSyncCycles="*1" " please?
regards Slav
How it will be with components in lcnc servo thread configuration? for all that components is great to run over same servo thread period or can I create special 2ms thread for lcec application. but there should be some missmatch in control values i think or?
how it will be with " refClockSyncCycles="?????" " . I had it at value "refClockSyncCycles="*1" " please?
regards Slav
Please Log in or Create an account to join the conversation.
3 years 11 months ago - 3 years 10 months ago #258312
by db1981
Replied by db1981 on topic DC configuration
all componets like motion, pids, lcec that have to work together in an control loop should be in the same thread.
If your servo amplifier can only handle an 2ms cycle time, set the servo_thread and apptime period to 2000000 too.
sync0Cycle = *2 (every second ethercat cycle) may be work to, but is uselles because motion and pids will see the same values for 2 cycles.
If your servo amplifier can only handle an 2ms cycle time, set the servo_thread and apptime period to 2000000 too.
sync0Cycle = *2 (every second ethercat cycle) may be work to, but is uselles because motion and pids will see the same values for 2 cycles.
Last edit: 3 years 10 months ago by db1981.
The following user(s) said Thank You: endian
Please Log in or Create an account to join the conversation.
Time to create page: 0.116 seconds