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

SMEMA Flip I/O #7

Closed
Industry4 opened this issue Jun 14, 2023 · 8 comments
Closed

SMEMA Flip I/O #7

Industry4 opened this issue Jun 14, 2023 · 8 comments
Assignees
Labels
customer request Customer has requested this enhancement New feature or request R MSE Customer
Milestone

Comments

@Industry4
Copy link
Owner

Customer request of using the SMEMA Flip I/O for downline machines

@Industry4 Industry4 added enhancement New feature or request customer request Customer has requested this R MSE Customer labels Jun 14, 2023
@Industry4 Industry4 self-assigned this Jun 14, 2023
@Industry4 Industry4 added this to the 1.0.14 milestone Jun 27, 2023
@Industry4
Copy link
Owner Author

Industry4 commented Jul 2, 2023

Runtime Animation

Postman has been used to call the Rest API Calls postman.com

Timeline of this demonstration

  • Upline SMEMA Good Board goes True.
  • Good Board Interlock is Blocked.
  • Rest API /api/MultiPlug.Ext.SMEMA/1/lane/interlock/good/flip/?enable=true&index=0 is called as a POST.
  • Flip Board Interlock is Unblocked - Downline SMEMA Flip Board goes True.
  • 1 second elapses
  • Good Board Interlock is Unblocked - Downline SMEMA Good Board goes True.
  • Downline SMEMA Machine Ready goes False.
  • Machine Ready Interlock is Blocked, as it is not latched.
  • Upline SMEMA Good Board goes False.
  • Good Board Interlock is Blocked. Downline SMEMA Good Board goes False.
  • Flip Board Interlock is Blocked. Downline SMEMA Good Board goes False.
  • Upline SMEMA Good Board goes True.
  • Good Board Interlock is Blocked.
  • Rest API /api/MultiPlug.Ext.SMEMA/1/lane/interlock/good/?enable=true&index=0 is called as a POST.
  • Good Board Interlock is Unblocked - Downline SMEMA Good Board goes True.
  • Upline SMEMA Good Board goes False.
  • Good Board Interlock is Blocked. Downline SMEMA Flip Board goes False.
  • Upline SMEMA Good Board goes True.
  • Good Board Interlock is Blocked.
  • Rest API /api/MultiPlug.Ext.SMEMA/1/lane/interlock/good/divert/flip/?enable=true&index=0 is called as a POST.
  • Flip Board Interlock is Unblocked - Downline SMEMA Flip Board goes True.
  • 1 second elapses
  • Good Board Divert Interlock is Unblocked - Downline SMEMA Bad Board goes True.
  • Upline SMEMA Good Board goes False.
  • Good Board Divert Interlock is Blocked. Downline SMEMA Bad Board goes False.
  • Flip Board Interlock is Blocked. Downline SMEMA Flip Board goes False.

smema7a

@Industry4
Copy link
Owner Author

Industry4 commented Jul 2, 2023

Setup - Upline SMEMA

If there is no Upline SMEMA hardware Flip connection, then to be able to control the Interlock set Always Flip in the page /extensions/multiplug.ext.smema/lane/board-available/. This will maintain an always true value.

image

@Industry4
Copy link
Owner Author

Setup - Triggers

To automatically Block the Flip Interlock when the Good or Bad Board Upline SMEMA states change to false, apply the following settings in the page /extensions/multiplug.ext.smema/lane/interlock/

image

@Industry4
Copy link
Owner Author

Setup - Transition Delay

To set a delay between the Flip Interlock being Unblocked and the Good or Bad Board Interlock being Unblocked change this delay in milliseconds in the page /extensions/multiplug.ext.smema/lane/interlock/ from 0 to 3000.

image

@Industry4
Copy link
Owner Author

New MultiPlug Flip Board Interlock Control Subscription

To control the Interlock via MultiPlug Events, eg using text values produced via a Serial Port MultiPlug.Ext.SerialPort or a Network Socket MultiPlug.Ext.Network.Sockets then a new Subscription control is available. This can be set in the page /extensions/multiplug.ext.smema/lane/interlock/

image

Also the Flip can be controlled with one Event using Good Board or Bad Board.

image

@Industry4
Copy link
Owner Author

New MultiPlug Flip Board Block Event

To get a the current state of the Flip Interlock a new MultiPlug Event has been added. This can be attached to for example a Serial Port MultiPlug.Ext.SerialPort or a Network Socket MultiPlug.Ext.Network.Sockets or a HTTP Post request MultiPlug.Ext.Network.HTTP. This can be set in the page /extensions/multiplug.ext.smema/lane/interlock/

image

@Industry4
Copy link
Owner Author

New REST (RESTful) API

The full API documentation can be found at https://github.com/Industry4/MultiPlug.Ext.SMEMA/wiki/REST-API

  • /api/MultiPlug.Ext.SMEMA/1/lane/interlock/flip
  • /api/MultiPlug.Ext.SMEMA/1/lane/interlock/flip/latch
  • /api/MultiPlug.Ext.SMEMA/1/lane/interlock/good/flip
  • /api/MultiPlug.Ext.SMEMA/1/lane/interlock/good/divert/flip
  • /api/MultiPlug.Ext.SMEMA/1/lane/interlock/bad/flip
  • /api/MultiPlug.Ext.SMEMA/1/lane/interlock/bad/divert/flip

Industry4 pushed a commit that referenced this issue Jul 2, 2023
@Industry4
Copy link
Owner Author

Available in version 1.0.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer request Customer has requested this enhancement New feature or request R MSE Customer
Projects
Development

No branches or pull requests

1 participant