Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal : SFC - Sequential Function Charts #4520

Open
calumk opened this issue Jun 22, 2023 · 2 comments
Open

Proposal : SFC - Sequential Function Charts #4520

calumk opened this issue Jun 22, 2023 · 2 comments
Labels
Area: Development Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram

Comments

@calumk
Copy link

calumk commented Jun 22, 2023

Proposal

Add diagram for SFC

Similar to fowchart, but with transition steps, and actions to the right of each node.

https://en.wikipedia.org/wiki/Sequential_function_chart

https://realpars.com/sequential-function-chart/

Use Cases

Describing state / process information for machines or software packages

Mainly used in industrial applications for PLC programming or similar

Screenshots

idea_SFC drawio

Syntax

SFC
    0:Start [S Ouptut 1, R Output 2]
    0 -- | Input1 == true && Input 2 == true | --> 10
    10 [ SET StartLight, SET RedLight ]
    10 --> 20
    20 [S YellowLight, N PinkLight, S OrangeLight 2hz]
    20 -- | Delay 1s | --> 30
    30 [R YellowLight]
    30 -- | keySwitch == true | --> 100
    30 -- | keySwitch != true | --> 200
    100 [ S RedLight]
    200 [ S GreenLight]
    100 --> 300
    200 --> 300
    300:End --> 0

Implementation

This is a proposal which I'd love to see built into mermaid by the wonderful community.

@calumk calumk added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram labels Jun 22, 2023
@nirname
Copy link
Contributor

nirname commented Jul 13, 2023

Should not it be an extension for one of current diagrams?

@calumk
Copy link
Author

calumk commented Jul 21, 2023

I am afraid i dont know enough about the mermaid system to know how this would best be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Development Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request Type: New Diagram
Projects
None yet
Development

No branches or pull requests

2 participants