Skip to content

More than SM2/3 #28

@marcfir

Description

@marcfir

Hi Robert,
I play with a EL2912 which has more than multiple SyncManagers for Inputs and Outpus.
I adapted this to check all SMs

for (osal_uint32_t sm_idx = 2u; sm_idx <= 3u; ++sm_idx) {

But I get an error. Any ideas?

2025-02-07T14:16:20.047Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: configuring actiavtion reg. 7, cycle_times 1000000/0, cycle_shift 0
2025-02-07T14:16:20.048Z INFO  [libethercat_rs::master] DC_SYNC             : slave  9: dc_systime 0.722614480 s, dc_start 1.721614680 s, slv dc_time 0.0 s
2025-02-07T14:16:20.048Z INFO  [libethercat_rs::master] DC_SYNC             : slave  9: cycletime_0 1000000, cycletime_1 0, dc_active 7
2025-02-07T14:16:20.048Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: sm2, adr 0x1200, len   8, flags 0x00010064
2025-02-07T14:16:20.048Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: sm3, adr 0x1D00, len   9, flags 0x00010020
2025-02-07T14:16:20.049Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: sm4, adr 0x2E00, len   0, flags 0x00000024
2025-02-07T14:16:20.049Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: sm5, adr 0x2F00, len   0, flags 0x00000020
2025-02-07T14:16:20.049Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: sm6, adr 0x2FFA, len   1, flags 0x00010020
2025-02-07T14:16:20.049Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: log0 0x00010012/0/7, len   8, phys 0x1200/0, type 2, active 1
2025-02-07T14:16:20.050Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: log1 0x00010012/0/7, len   9, phys 0x1D00/0, type 1, active 1
2025-02-07T14:16:20.050Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: log2 0x0001001B/0/7, len   1, phys 0x2FFA/0, type 1, active 1
2025-02-07T14:16:20.050Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: log3 0x09000000/4/4, len   1, phys 0x080D/3, type 1, active 1
2025-02-07T14:16:20.051Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: SAFE-OPERATIONAL state requested
2025-02-07T14:16:20.051Z INFO  [libethercat_rs::master] PREOP_2_SAFEOP      : slave  9: state switch to 4 failed, alstatcode 0x001D : invalid sync manager out config

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions