Hi Lisa:
Welcome to the Mach3 forum.
You need to post more information about your controller; 3040 is only a generic reference to the table size.
Brand name of the Controller box;
Model #;
Driver type and #;
Motor #;
and anything printed on the Mother board inside the control box.
Also, you might try going onto Ebay, and/or Google to locate the same machine. One of the vendors might have the user manual available for download.
There a lot of 3040 router/engraver machines out there, so someone with the same machine may read your post, and fill in the blanks. It is just a matter of Mach3 having the right pin numbers for step/direction for each axis, plus getting the motor tuning right.
While waiting, you could guess at the pin numbers, and see if anything moves. I have the Manual and pinouts for a TB6600HG 4-axis controller; the X step is 2, X dir is 3; Y step is 4, Y dir is 5; Z step is 6, Z dir is 7; A step is 8, A dir is 9; EN is 1; PWM is 16, Spindle relay is 14.
All the port #'s will be 1.
John