Omron SYSMAC CS1G Operation Manual page 594

Motion control unit
Table of Contents

Advertisement

Slave Modules
Monitor parameters
#OB00305 = 0;
#OB00306 = 1;
#OB00307 = 0;
#OW0032 = 2000; ------------ Positioning speed data
#OW0033 = 100; ------------- Positioning Accel/decel time data
#OB00303 = 1; ----------------- Parameter setting started
WAIT #IB00304 == 1; ---------- Parameter setting completed
#OW0030 = 0; ---------------- Output bit reset
#OB00304 = 0;
#OB00305 = 0;
#OB00306 = 0;
#OB00307 = 0;
;
;*** Positioning target position setting ***
#OL0032 = #PL0010; ------ Value in Position data (PL0010) substituted
;
;*** Positioning operation ***
WHILE #IW0B00 == 1;
#PL0010 = #IL0C40;
#OB0030F = 1; ----- Servo ON
#OB0030D = 1; ----- Output current OFF signal ON
IF #IW0B01 == 1; ----- External input for starting positioning (general-purpose
I/O area: PORT_A)
#OB00308 = 1; ------ Positioning started
ENDIF;
WAIT #IB00308 == 0; ----- Positioning completed
#OB00308 = 0; ---------- Positioning start bit reset
WEND;
#OB0030F = 0;
------- Servo OFF
#OB0030D = 0;
------ Output current OFF signal OFF
END;
• When checking the parameters that have been set, users cannot see the
data directly. An example of checking methods is shown below.
• The setting of the parameter No. 02 (JOG speed, JOG Accel/decel time)
for word 1 is read and assigned to desired variables.
PROG P003 Q00000000; Pulse output module (Parameter setting monitor)
WAIT #IB00300 == 1; ------- Pulse unit ready
#OW0030 = 0; --------------- Output bit reset
;
;*** Read parameter setting ***
#OB00304 = 0;
#OB00305 = 1;
#OB00306 = 0;
#OB00307 = 0;
#OB00302 = 1; ----------------- Data to be monitored selected
#OB00303 = 1; ----------------- Parameter setting started
WAIT #IB00304 == 1; ---------- Parameter setting completed
;
;*** Parameter read ***
#PL0000 = #IL0032; --------- Assigned to position data (Parameter data)
;
#OW0030 = 0; ---------------- Output bit reset
Parameter No. specification (05)
Parameter No. specification (05)
Parameter No. specification (05)
Parameter No. specification (00)
Parameter No. specification (00)
Parameter No. specification (00)
Parameter No. specification (00)
Parameter No. specification (02)
Parameter No. specification (02)
Parameter No. specification (02)
Parameter No. specification (02)
Section 10-2
571

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs1w-mch71Sysmac cs seriesSysmac cs1h

Table of Contents