1STEP 5V/204kHz
2.2 Example : Commissioning 1STEP 5V/204kHz
ET 200S Positioning
Operating Instructions, 05/2007, A5E00124871-04
19
STL Explanation
Block: FC101
//Initialize control interface
L L#4800; //Distance 4800 pulses
T DB1.DBD 0;
L 1; //Multiplier 1 for output frequency
T DB1.DBB 0;
L 0; //Delete limit switch etc.
T DB1.DBB 5;
T DB1.DBW 6;
SET;
S DB1.DBX 5.2; //Set pulse enable DRV_EN
R DB1.DBX 4.0; //Set incremental mode
R DB1.DBX 4.1; //Reserve bit = 0
R DB1.DBX 4.2; //Reserve bit = 0
R DB1.DBX 4.3; //Reserve bit = 0
R DB1.DBX 4.5; //Delete backward start DIR_M
R DB1.DBX 4.6; //Delete STOP
R DB1.DBX 4.7; //Delete reduction factor R
L DB1.DBD0 //Write 8 bytes to 1STEP 5V/204kHz
T PAD 256
L DB1.DBD4
T PAD 256
L PID 256 //Read 8 bytes from 1STEP 5V/204kHz
T DB1.DBD4
L PID 260
T DB1.DB12
A M 30.0; //Detect the edge on start initiation and set start
AN DB1.DBX 12.0 //DIR_P if STS_JOB is deleted.
S DB1.DBX 4.4
A DB1.DBX 12.0 //Wait for STS_JOB and
R DB1.DBX 4.4 //Reset start DIR_P; the run begins
R M 30.0 //Delete start initiation