beautypg.com

IAI America RCM-GW-PR User Manual

Page 120

background image



114

PfofiBus Gateway

Appendix 1. Sample Programs for S7-300

Example of Using RC_NVC_11 and GW_CTL_11




















































#AnyON is always ON.

GW/controller communication starts (MON).

Axis 0 is configured (W#16#1).

The Gateway I/O head addresses are “0.”

Servo on delay timer

Homing delay timer

The next target position is controlled based on the movement
completion pulse (NC0.DONE) output by a FB.
The target position changes in the sequence of x0p1

→ x0p2 →

x0p3

→ x0p1, …, every time the NC0.DONE pulse is input.

Online status is checked from the STS_W, LNK_W and RC_NVC_11 (instance name: NC0) outputs.