RobotStudio event

Regarding World zone instruction.

Hi, everyone
Here i worked on robot studio, and want to create world zones for specific positions. I read the manual and tried to use world zone. here is the syntax given below that i used in programe. 
.
.
MODULE World_zone

VAR shapedata shape1;

CONST pos pos1:=[986.84,342.37,500];

PERS num R1:=10;

VAR wztemporary wztemp1:=[0];

VAR wztemporary wztemp2:=[0];

PROC wz_pose()

WZSphDef\Inside, shape1, pos1, R1;

WZDOSet\Temp, wztemp2\Inside, shape1, DO_pose10, 1;

ENDPROC

ENDMODULE
.
.

I create event routine too, now problem is that whenever i run the programme output (DO_pose10) doesnt get High immidiately after creating programme. Is there any syntax error due to which that problem occurs?

Tagged:

Comments

  • The signal must be configured as read only.

  • Signal already configured as Readonly...still its happened. 
  • soup
    soup ✭✭✭
    Did you cycle power (or whatever the event routine type it's tied to) to get it to activate the world zones?
  • lemster68
    lemster68 ✭✭✭
    The type temp does not need to be connected to an event routine.  The type stationary must be connected to the power on event.  Maybe you used temp when what you need is stat.  Note that it only turns the do on with the first motor on after power up.
    Lee Justice
  • soup
    soup ✭✭✭
    Fair enough, but the procedure needs to be called somehow to make the zones active.