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.

Makro

Hello, i would Like to create a Makro.

I need to use an Output of the IPS, 

Atfer recieving an Input, the Output Switch Off.

Could you give me an example for using in and Outputs ?

The Status for these Prozess, have to BE shown in simcnc

Hi,

An example of using digital inputs and outputs is at the beginning of this manual

https://en.cs-lab.eu/wp-content/uploads/2020/06/simcnc-python-scripts-guide_en.pdf

Quote from CS-Lab Support on 22 March 2023, 06:59

Hi,

An example of using digital inputs and outputs is at the beginning of this manual

https://en.cs-lab.eu/wp-content/uploads/2020/06/simcnc-python-scripts-guide_en.pdf

Thanks for the fast answer.
But using this guide is not working.
I get only error messages.

example: using this
mod_IP = d.getModule( ModuleType.IP, 0 )

 

is not working..

EDIT:

I attached the message if i use this

Uploaded files:
  • Fehlermeldung-fur-Makro-IPS.JPG

The guide is definitely fine because I wrote it myself 😉

See the message highlighted below:

Python tells you that you have an indentation problem.
Python doesn't use parentheses for conditions and loops, only indentation.
The indentation can be a space or a tab, read about it on the Internet.

You can also send me the macro for correction.

Hello and thank you for the help.
I have copied the text from the guide.
the formatting as the indentation is not taken into account when pasting.
That was the whole mistake.
The file works now

 

 

carbonkid has reacted to this post.
carbonkid

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

×

Hello!

Click one of our contacts below to chat on WhatsApp

× How can I help you?