Hello Guest it is October 21, 2021, 01:36:05 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TPS

811
Feature Requests / Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« on: October 25, 2019, 04:37:56 AM »
i don't know a "direct" way to make a dro read only, but you can put a transparent button (witch has no functionality) over the DRO
to "protect" it for Input.

812
Feature Requests / Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« on: October 24, 2019, 04:34:06 AM »
here is a easier Version:

M3 code
Code: [Select]
'Save the starttime in seconds
SetUserDro(1600, Timer)

'increment the piercecounter
SetUserDro(1602,GetUserDro(1602)+1)

M5 code
Code: [Select]
'save the cuttime
SetUserDro(1601 , GetUserDro(1601) + ( Timer - GetUserDro(1600)))

813
Feature Requests / Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« on: October 24, 2019, 04:18:58 AM »
UserDro's start at 1000, i allways use them above 1100 because some at the 1000 aeria are used by Standard Screen set.

814
Feature Requests / Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« on: October 24, 2019, 03:54:40 AM »
yes i thinks it should work.

piercecounter will be in DRO 1602
cuttime in DRO 1601

815
Feature Requests / Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« on: October 24, 2019, 03:44:41 AM »
this M5 code will only measure the cuttime of one cut

Code: [Select]
'Calculate the enddtime
Dim endtime As Double
endtime = (Hour(Time(Now))*3600)+(Minute(Time(Now))*60)+Second(Time(Now))
'save the cuttime
SetUserDro(1601 , endtime - GetUserDro(1600))

this M5 code will measure the total cuttime

Code: [Select]
'Calculate the enddtime
Dim endtime As Double
endtime = (Hour(Time(Now))*3600)+(Minute(Time(Now))*60)+Second(Time(Now))
'save the cuttime
SetUserDro(1601 , GetUserDro(1601) + ( endtime - GetUserDro(1600)))


816
Feature Requests / Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« on: October 24, 2019, 02:51:14 AM »
as far i know there is no functionality in Mach3 for this, but you can add some code to M3 and M5 and do it by your own.

M3 code
Code: [Select]
'Save the starttime in seconds
Dim starttime As Double
starttime = (Hour(Time(Now))*3600)+(Minute(Time(Now))*60)+Second(Time(Now))
SetUserDro(1600, starttime)

'increment the piercecounter
SetUserDro(1602,GetUserDro(1602)+1)


M5 code
Code: [Select]
'Calculate the enddtime
Dim endtime As Double
endtime = (Hour(Time(Now))*3600)+(Minute(Time(Now))*60)+Second(Time(Now))
'save the cuttime
SetUserDro(1601 , endtime - GetUserDro(1600))

code is not tested, just written down

817
it is not a Problem of your Formular, because it only seperates Digits before comma and after.
and because it it done in integer Registers there are no leading zeroes.


depending on the missing leading zeroes you have to put both seperated values togehter into a real
Register on the S7/200.

and then diplay the real value on MMI

i have added a example how i would do it.

818
General Mach Discussion / Re: Limiter switch not being detected
« on: October 23, 2019, 03:04:39 AM »
and in config Inputs you have selected port 3 pin1?

819
General Mach Discussion / Re: Another tool zeroing...but unique...
« on: October 15, 2019, 02:46:01 AM »
can you pls post your Profile XML file?

820
Mach Screens / Re: Screen4 Mach3 Status bar missing!
« on: September 21, 2019, 11:53:42 AM »
place a simple Label with Content Error, it will show the errormessages