codesys添加从站自动加载轴

在 codesys 的 devices.xml 文件中找到 ,在后面添加

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
    <Connector moduleType="1279" interface="Common.SoftMotion.EtherCAT.JMC">
      <Slot allowEmpty="false" count="1">
        <DefaultModule>
          <DeviceIdentification deviceType="1027" deviceId="0000 0077" version="4.6.1.0" />
        </DefaultModule>
      </Slot>
    </Connector>

    <Connector moduleType="1279" interface="Common.SoftMotion.EtherCAT.JMC">
      <Slot allowEmpty="false" count="1">
        <DefaultModule>
          <DeviceIdentification deviceType="1027" deviceId="0000 0078" version="4.6.1.0" />
        </DefaultModule>
      </Slot>
    </Connector>

    <Connector moduleType="1279" interface="Common.SoftMotion.EtherCAT.JMC">
      <Slot allowEmpty="false" count="1">
        <DefaultModule>
          <DeviceIdentification deviceType="1027" deviceId="0000 0079" version="4.6.1.0" />
        </DefaultModule>
      </Slot>
    </Connector>

    <Connector moduleType="1279" interface="Common.SoftMotion.EtherCAT.JMC">
      <Slot allowEmpty="false" count="1">
        <DefaultModule>
          <DeviceIdentification deviceType="1027" deviceId="0000 007A" version="4.6.1.0" />
        </DefaultModule>
      </Slot>

    </Connector>

    <Connector moduleType="1279" interface="Common.SoftMotion.EtherCAT.JMC">
      <Slot allowEmpty="false" count="1">
        <DefaultModule>
          <DeviceIdentification deviceType="1027" deviceId="0000 007B" version="4.6.1.0" />
        </DefaultModule>
      </Slot>
    </Connector>

    <Connector moduleType="1279" interface="Common.SoftMotion.EtherCAT.JMC">
      <Slot allowEmpty="false" count="1">
        <DefaultModule>
          <DeviceIdentification deviceType="1027" deviceId="0000 007C" version="4.6.1.0" />
        </DefaultModule>
      </Slot>
    </Connector>

以上代码是一个自动加载6轴的例程,这个模块是根据 codesys 通用402轴修改得来的