documentation/graphs/fsm_master.dot
author Florian Pose <fp@igh-essen.com>
Fri, 16 Dec 2011 16:29:00 +0100
branchredundancy
changeset 2305 668bdb89879b
parent 2100 da4640f9776d
child 2421 bc2d4bf9cbe5
permissions -rw-r--r--
Removed unnecessary call of ec_master_inject_external_datagrams().
803
c9e147567924 Updated properties and keywords for dot files.
Florian Pose <fp@igh-essen.com>
parents: 718
diff changeset
     1
c9e147567924 Updated properties and keywords for dot files.
Florian Pose <fp@igh-essen.com>
parents: 718
diff changeset
     2
/* $Id$ */
c9e147567924 Updated properties and keywords for dot files.
Florian Pose <fp@igh-essen.com>
parents: 718
diff changeset
     3
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     4
digraph master {
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     5
    size="7,9"
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     6
    center=1
1804
742607c464c4 Removed tabulators.
Florian Pose <fp@igh-essen.com>
parents: 1420
diff changeset
     7
    ratio=fill
1915
54e4b49b163c Graph font declaration in header.
Florian Pose <fp@igh-essen.com>
parents: 1804
diff changeset
     8
    node [fontname="Helvetica"]
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
     9
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    10
    start -> broadcast [weight=10]
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    11
1031
000593b576dd Removed 'end' and 'error' states from master state machine.
Florian Pose <fp@igh-essen.com>
parents: 987
diff changeset
    12
    broadcast -> start
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    13
    broadcast -> clear_addresses
1919
Florian Pose <fp@igh-essen.com>
parents: 1916
diff changeset
    14
    broadcast -> read_state
Florian Pose <fp@igh-essen.com>
parents: 1916
diff changeset
    15
    broadcast -> write_system_times
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    16
907
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    17
    action_process_sii [shape=point,label=""]
872
d4e0380d63b3 Renamed EEPROM to SII.
Florian Pose <fp@igh-essen.com>
parents: 831
diff changeset
    18
    action_process_sii -> write_sii
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    19
907
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    20
    action_process_sdo [shape=point,label=""]
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    21
    action_process_sdo -> sdo_request
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    22
1916
6327ce8c4274 Updated master state graph.
Florian Pose <fp@igh-essen.com>
parents: 1915
diff changeset
    23
    action_process_register [shape=point,label=""]
6327ce8c4274 Updated master state graph.
Florian Pose <fp@igh-essen.com>
parents: 1915
diff changeset
    24
    action_process_register -> reg_request
6327ce8c4274 Updated master state graph.
Florian Pose <fp@igh-essen.com>
parents: 1915
diff changeset
    25
907
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    26
    action_idle [shape=point,label=""]
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    27
    action_idle -> action_process_sdo
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    28
    action_idle -> sdo_dictionary
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    29
    action_idle -> action_process_sii
1916
6327ce8c4274 Updated master state graph.
Florian Pose <fp@igh-essen.com>
parents: 1915
diff changeset
    30
    action_idle -> action_process_register
1031
000593b576dd Removed 'end' and 'error' states from master state machine.
Florian Pose <fp@igh-essen.com>
parents: 987
diff changeset
    31
    action_idle -> start
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    32
907
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    33
    action_next_slave_state [shape=point,label=""]
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    34
    action_next_slave_state -> read_state
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    35
    action_next_slave_state -> action_idle [weight=10]
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    36
    
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    37
    action_configure [shape=point,label=""]
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    38
    action_configure -> configure_slave [weight=10]
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    39
    action_configure -> action_next_slave_state
2100
da4640f9776d Improved DC sync at startup: Abort iterating though slaves and first correct
Florian Pose <fp@igh-essen.com>
parents: 2096
diff changeset
    40
    action_configure -> write_system_times
831
ded9519c8d6e Reading of Pdo mapping via CoE during scan.
Florian Pose <fp@igh-essen.com>
parents: 803
diff changeset
    41
1031
000593b576dd Removed 'end' and 'error' states from master state machine.
Florian Pose <fp@igh-essen.com>
parents: 987
diff changeset
    42
    read_state -> acknowledge [weight=10]
000593b576dd Removed 'end' and 'error' states from master state machine.
Florian Pose <fp@igh-essen.com>
parents: 987
diff changeset
    43
    read_state -> action_configure
987
3c9090138140 Display error flag in 'ethercat ls'; cleaned up usage of error flag;
Florian Pose <fp@igh-essen.com>
parents: 907
diff changeset
    44
    read_state -> action_next_slave_state
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    45
907
570ae1c64465 Improved master state machine.
Florian Pose <fp@igh-essen.com>
parents: 905
diff changeset
    46
    acknowledge -> action_configure [weight=10]
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    47
1420
5eb814732c46 Measure port receive times.
Florian Pose <fp@igh-essen.com>
parents: 1031
diff changeset
    48
    clear_addresses -> dc_measure_delays [weight=10]
5eb814732c46 Measure port receive times.
Florian Pose <fp@igh-essen.com>
parents: 1031
diff changeset
    49
5eb814732c46 Measure port receive times.
Florian Pose <fp@igh-essen.com>
parents: 1031
diff changeset
    50
    dc_measure_delays -> scan_slave [weight=10]
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    51
1919
Florian Pose <fp@igh-essen.com>
parents: 1916
diff changeset
    52
    scan_slave -> write_system_times
Florian Pose <fp@igh-essen.com>
parents: 1916
diff changeset
    53
Florian Pose <fp@igh-essen.com>
parents: 1916
diff changeset
    54
    write_system_times -> start
2096
5a55bc623d79 Updated master fsm graph.
Florian Pose <fp@igh-essen.com>
parents: 1919
diff changeset
    55
    write_system_times -> dc_read_offset
5a55bc623d79 Updated master fsm graph.
Florian Pose <fp@igh-essen.com>
parents: 1919
diff changeset
    56
5a55bc623d79 Updated master fsm graph.
Florian Pose <fp@igh-essen.com>
parents: 1919
diff changeset
    57
    dc_read_offset -> write_system_times
5a55bc623d79 Updated master fsm graph.
Florian Pose <fp@igh-essen.com>
parents: 1919
diff changeset
    58
    dc_read_offset -> dc_write_offset
5a55bc623d79 Updated master fsm graph.
Florian Pose <fp@igh-essen.com>
parents: 1919
diff changeset
    59
5a55bc623d79 Updated master fsm graph.
Florian Pose <fp@igh-essen.com>
parents: 1919
diff changeset
    60
    dc_write_offset -> write_system_times
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    61
1031
000593b576dd Removed 'end' and 'error' states from master state machine.
Florian Pose <fp@igh-essen.com>
parents: 987
diff changeset
    62
    configure_slave -> action_next_slave_state
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    63
872
d4e0380d63b3 Renamed EEPROM to SII.
Florian Pose <fp@igh-essen.com>
parents: 831
diff changeset
    64
    write_sii -> action_process_sii
1031
000593b576dd Removed 'end' and 'error' states from master state machine.
Florian Pose <fp@igh-essen.com>
parents: 987
diff changeset
    65
    write_sii -> start
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    66
1031
000593b576dd Removed 'end' and 'error' states from master state machine.
Florian Pose <fp@igh-essen.com>
parents: 987
diff changeset
    67
    sdo_dictionary -> start
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    68
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    69
    sdo_request -> action_process_sdo
1031
000593b576dd Removed 'end' and 'error' states from master state machine.
Florian Pose <fp@igh-essen.com>
parents: 987
diff changeset
    70
    sdo_request -> start
1916
6327ce8c4274 Updated master state graph.
Florian Pose <fp@igh-essen.com>
parents: 1915
diff changeset
    71
6327ce8c4274 Updated master state graph.
Florian Pose <fp@igh-essen.com>
parents: 1915
diff changeset
    72
    reg_request -> action_process_register
6327ce8c4274 Updated master state graph.
Florian Pose <fp@igh-essen.com>
parents: 1915
diff changeset
    73
    reg_request -> start
718
80df6930e7e6 Added FSM graph for master state machine.
Florian Pose <fp@igh-essen.com>
parents:
diff changeset
    74
}