fbpx

CS-Lab Support Forum for CNC Community

Help to run this brand-new forum and stay with us.
Ask your questions, we are here to help! 

 

Please or Register to create posts and topics.

Pulse output momentarily to enable safety relay

I am unsure if the way i am going about this is wrong, but my Omron safety relay requires the reset to be pulsed before it will turn on the outputs.

i had in mind to use the enable button in the GUI and edit it so that Output pressed was used to Set IO pin value high and Output  released was used to Set IO pin value low.

but when I open the dropdown list for Output pressed and Output released the Set IO pin value option does not exist.

Uploaded files:
  • Screenshot-2023-05-14-112543.png

I'm not sure what you're trying to do, but I think my script to activate my vacuum table might work for you too. Link this script with a button in the SimCNC GUI.

What it does: it checks the state of the output, if it's ON, it switches it to OFF. If it's OFF, it switches it to ON.

https://github.com/erwan56450/SimCnC/blob/main/PushButton/PushButton_VacumTable.py
download raw file on the right (or copy the script in a Name.py file)

if i understund you have to done thise once, at machine start, You could also create a custom homing button that triggers this command and then does a homing behind it.

dylan1024 has reacted to this post.
dylan1024

You can also do it with one click:

import time

 

digitalPin = 10

 

mod_IP = d.getModule( ModuleType.IP, 0 )

 

mod_IP.setDigitalIO( digitalPin, DIOPinVal.PinSet )

time.sleep(0.5)

mod_IP.setDigitalIO( digitalPin, DIOPinVal.PinReset )

dylan1024 has reacted to this post.
dylan1024

PARTNERS:

 

USA

Germany

Slovenia / Bosnia

Spain

South Africa

UNI-CAM

The Netherlands

Portugal

Greece

  Distrib milionis logo

Hungary

Distrib logot

Bulgaria

Master

Kenya

Proteq Automation

Egypt

Germanelectronix

China

Jun Ma

Serbia

ALCO

Italy

LVL tech r

Denmark

Varntoft Dania

Finland