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.


Topics - artkraft

Pages: [1]
1
General Discussions / comparing value of two DM
« on: April 03, 2021, 12:34:52 PM »
I have DM[1] witch is the current position on a linear encoder. I want to know if DM[1] is = to or not greater than+ or- 4 cnts when at rest. If statement is true set Home flag.

2
Technical support / Custom function
« on: April 11, 2020, 12:23:56 PM »
Compiles correctly but won't work.

STEEPSPEED 1, DrillRate, DrillAccel
STEPMOVE 1, DrillSteps, 9, 9999, 90  //flag 9 = DrillComplete
REfRESH
IF TESTIO (DrillComplete)
THEN
STEPSPEED 1, 9999, 90
STEPMOVEABS 1, 0, 13
ELSE ENDIF

I do have a working program calling a second CusFn for the Stepmoveabs using flag 9. However when a stop command is used
we never know where the drill is. The goal is to make the drill cycle up and then down with 1 cusFn. Can't get the then, goes up not down.

3
General Discussions / settimer sv
« on: November 23, 2018, 07:29:17 PM »
I have been using SETCTRSV 6, DM[100] and entering a value via touch screen.
Will SETTIMERSV 7, DM[101] work as well.

4
Technical support / HST
« on: October 05, 2017, 06:59:20 AM »
How do I use a Cf to create 2 HST and keep that setting with loss of power or reset. I understand that I need HSTIMER 2. I have this CF called on 1st scan
 // Initialize parameters
Setsystem 4,3 ' Enable enhanced high-speed counter modes

// Setbaud 1, 6
Setbaud 3, 4  '19200 baud to HMI panel

DM[200]=192
DM[201]=168
DM[202]=0
DM[203]=210
DM[204]=9080

//Set_IPAddr 200

DM[205]=255
DM[206]=255
DM[207]=255
DM[208]=0

//Set_Subnet 205

//SetSystem 252,0
Can I add syntax here ?

5
Technical support / relay not latch Random
« on: July 26, 2017, 05:28:07 PM »
I have 2 identical machines running same program. They have been working fine for over a year. Now they will fail to latch a relay at
random. The PLC sees the input and will work if I latch it on line. I am using a CusFn to update parameters from a touch screen every .5 sec. If nothing has changed does it still record the setting and use up the memory record limits. I also have one machine that a counter will not count down to zero even thought the PLC sees the trigger.

6
Technical support / DM[1]
« on: September 11, 2016, 06:33:03 PM »
Does anyone know why it does not read the DM[1]. I am using DM variables/constants in a more complicated program that work but I don't understand why. I am trying to understand how to right them so I can modify another program. This program works if I enter a value in the View variable table. What am I missing????

7
General Discussions / DM[n]
« on: September 11, 2016, 06:04:33 PM »
Does anyone know why it does not read the DM[1]. I am using DM variables/constants in a more complicated program that work but I don't understand why. I am trying to understand how to right them so I can modify another program. This program works if I enter a value in the View variable table. What am I missing????

8
General Discussions / HSC in cusfn
« on: February 20, 2016, 03:39:48 PM »
what is the purpose of // in a cusfn.
 I am measuring the thickness of my material with an encoder. Desired control thickness is set with HMI and stored in DM[309]. When HSC2 < SV I want to send step pulses until it is > SV.
CusFn #13 see attached file.









9
Technical support / H11l2
« on: June 27, 2015, 08:30:04 PM »
Wired H11L2 as per diagram in manual (24v to 5v). When I test it by grounding pin #2 to simulate sink from PLC I only read .1 vdc (multimeter) to the stepper driver. shouldn't I read 5v Pin #4 to grnd.

10
Technical support / Rencoder encoder RHS21D P1
« on: June 01, 2014, 09:47:50 AM »
This is a dual channel encoder. Question is .
Do I connect
Phase #1 = T100md input #3
Phase #2 =Input #4
Phase #1 not= #5
Phase #2 not =#6
If not what would be the correct connections?

11
Technical support / step move program
« on: September 18, 2012, 12:06:25 PM »
I am attempting to convert a machine from air cylinder action to stepper motor. I have a small ladder program with some custom functions. It simulates properly but I need help in the Tbasic part. I am totally inept at Tbasic and DM.
Using T100MD 2424 and MD-HMI420. Don't understand how to integrate entry from HMI to variables in DMs in an efficient manner.
Time has run out so learning is not an option. Anyone interested in a project.

Pages: [1]