------------------------------------------------------------------------------------------------------------------------------------------------
Configurator PLC001-G2
       - Allows you to control the device through the terminal
       - Receiving status of commands on the device
       - Read the edit and record G-Code-Macros in non-volatile memory

    G-Code-Macros
       Conditional device naming programming language for numerically controlled (CNC)
       The abridged version of the device supported by G-Code commands
       Macros Specialty macro command

------------------------------------------------------------------------------------------------------------------------------------------------
   To get started with your device
	1. Connect the device to your computer
	2. Install the driver (vcp C: \ Program Files (x86) \ PLC \ Configurator PLC002-G2 \ driver)
	3. In the Device Manager under Ports convinced of the correctness of the installation
	4. Start programa select the COM port
	5. Click "Open Com Port"
	6. To check the links in the bottom of the write command or _HELP? and press the "Send" in response comes a message from the device
	7. In the program go to the section "G-code editor"
		a) Make the settings for the motor Steps per, Velocity Acceleration and select Axis continue to press "Record" on the contrary settings
		b) Press the "Reset" button to reset the settings and the Default g-code further press the "Record"
		c) Press the "Demo" button to select the demo engine settings and g-code further press the "Record"

------------------------------------------------------------------------------------------------------------------------------------------------
   Description of the macros and commands

	A+10		- Rotation forward 10 mm
	A+200, F100	- Rotation forward 200 mm, speed 100 mm/min
	A-250		- Rotation back 250 mm
	A-100, F50	- Rotation back 100 mm, speed 50 mm/min 

	PAUSE 		- Pause switch ( waiting press play )
 	PAUSE 1000	- pause 1000 milliseconds which corresponds to 1 second, from 1 to 60000

	M0		- blank command

	M47		- Go to beginning

	M511		- To go forward to the sensor INP1 =1
	M512		- To go forward to the sensor INP2 =1
	M513		- To go forward to the sensor INP3 =1

	M521		- To go back to the sensor INP1 =1
	M522		- To go back to the sensor INP2 =1
	M523		- To go back to the sensor INP3 =1

	M530		- Auto power off enabled

   	FAST		- Fast stop mode for macro M511-523

	M541		- Entrance waiting INP1 =1
	M542		- Entrance waiting INP2 =1
	M543		- Entrance waiting INP3 =1

	M551		- Entrance waiting INP1 =1 è INP2 =1
	M552		- Entrance waiting INP2 =1 è INP3 =1
	M553		- Entrance waiting INP3 =1 è INP1 =1 	

	M561		- Wauting fronts signal INP2 ïðè INP1=1 ( event appearance at INP2 signal in the presence of at INP1 signal ) 
	M562		- Wauting fronts signal INP3 ïðè INP2=1
	M563		- Wauting fronts signal INP1 ïðè INP3=1 

	M571		- Enable relay R1 
	M572		- Turn off the relay R1 
	M581		- Enable relay R2 
	M582		- Turn off the relay R2 

	Ì601  		- Check input INP1 =0 then go to the address STRING
	Ì602  		- Check input INP2 =0 then go to the address STRING
	Ì603  		- Check input INP3 =0 then go to the address STRING

	Ì611  		- Check input INP1 =1 then go to the address STRING
	Ì612  		- Check input INP2 =1 then go to the address STRING
	Ì613  		- Check input INP3 =1 then go to the address STRING

	STRING xx	- Address transition when a conditional branch instruction M601-M613

	GOTO xx		- Going on string xx

	M711		- To go forward to the sensor INP1 =1 ( event front sensor )
	M712		- To go forward to the sensor INP2 =1
	M713		- To go forward to the sensor INP3 =1

	M721		- To go forward to the sensor INP1 =1 ( event front sensor )
	M722		- To go forward to the sensor INP2 =1
	M723		- To go forward to the sensor INP3 =1

------------------------------------------------------------------------------------------------------------------------------------------------
	Example ¹1 - zero calibration movement between the sensors INP1 è INP2 and relay control
	Start -> Zero calibration -> Movement forward to INP2 -> Moving back to INP1 -> Repeat  )

	01- M521, F500 - go back to the sensor at a rate of F500 ( calibrate the origin )
	02- M571 - Enable relay R1 
	03- M512 - To go forward to the INP2 sensor				
	04- M572 - Turn off the relay R1
	05- M581 - Enable relay R2
	06- M521 - To go back to the INP1 sensor
	07- M582 - Turn off the relay R2
	08- GOTO 2 - Going on line 2	

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Example ¹2
	Start -> calibration for INP1 -> with activity INP2 -> move forward 100mm -> movement back 90mm -> switch to line 1

	01- M521, F500
	02- M542 
 	03- A+100
	04- A-90
	05- GOTO 1
	
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Example ¹3 
	Start -> calibration for INP1 -> waiting INP3 signal edge with the active and INP2 -> move forward 100mm -> back movement 90mm -> switch to line 1

	01- M521, F500
	02- M552 
 	03- A+100
	04- A-90
	05- GOTO 1

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Example ¹4
	Start -> calibration for INP1 -> waiting INP2 activity and INP3 -> move forward 100mm -> back movement 90mm -> Moving back stop for INP1

	01- M521, F500
	02- M562 
 	03- A+100
	04- A-90
	05- GOTO 1

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Example ¹5
	Start -> the signal INP2 transition to a string of 10 -> INP3 a signal transition on the line 20, 10 to move forward to Tachiki INP1, 20- Moving back to Tachiki INP2

	01- M612, STRING 10
	02- M613, STRING 20
	03- PAUSE 250
	04- M530
	05- GOTO 1
	06- 
	07-
	08-
	09-
	10- M711
	11- GOTO 1
	12-
	13-
	14-
	15-
	16-
	17-
	18-
	19-
	20- M721
	21- GOTO 1

------------------------------------------------------------------------------------------------------------------------------------------------
   Description and examples of commands for controlling the terminal (command sent without quotes)

      "A1" èëè "A+1"	- Rotation forward 1 mm
      "A2, F100"    	- Rotation forwardt 2 mm at 100 (100 mm / min in view of Steps per settings but no more Velocity)    
      "A-100, F10"    	- Rotation back 100 mm at a rate of 10 mm / min
      "STEP 800"	- Rotation 800 steps forward (the maximum value of 60000) 
      "STEP -100"	- rotation 100 steps forward (the maximum value of 60000)    
  
------------------------------------------------------------------------------------------------------------------------------------------------



Ådition 161222