I want to change the "work home position", being CUBE 64 by code with the SETPRM command on a DX200. The Inform manual is a bit vague on this topic however.
This should be possible with:
Code: SYSTEMJOB.JBI
0001'***** systemjob
0002 DOUT OT#(4082) OFF OT#(4082)=HOME VALUES SET
0003'
0004*top
0005 IF( IN#(4082)=ON ) THEN IN#(4082)=HOME VALUES ACK
0006 SETPRM KIND=6 PRMNO=I050 D050 D050=HOMEPOS TMP
0007 DOUT OT#(4082) OFF OT#(4082)=HOME VALUES SET
0008 ENDIF
.
.
and
Code: MASTER
0001 SET LD000 63948
0002 SET LD001 -295875
0003 SET LD002 -63009
0004 SET LD003 444067
0005 SET LD004 168215
0006 SET LD005 -188758
0007 'home position
0008 WAIT IN#(4082)=OFF IN#(4082)=HOME VALUES ACK
0009 FOR LI000 = 0 TO 5
0010 SET I050 LI000 + 1072
0011 SET D050 LD[LI000] D050=HOMEPOS TMP
0012 DOUT OT#(4082) ON OT#(4082)=HOME VALUES SET
0013 '*****
0014 TIMER T=0.40
0015 WAIT IN#(4082)=OFF IN#(4082)=HOME VALUES ACK
0016 SET I050 LI000 + 1080
0017 DOUT OT#(4082) ON OT#(4082)=HOME VALUES SET
0018 '*****
0019 TIMER T=0.40
0020 WAIT IN#(4082)=OFF IN#(4082)=HOME VALUES ACK
0021 NEXT LI000
.
.
Display More
This would change parameters S3C1072(MIN)/1080(MAX) to S3C1077/1085 to the values from LD001 to LD005 in the master job.
When starting the masterjob, I receive following error message:
The SETPRM instruction was executed while another system
was in execution | Setting error | (1)Check the following settings. ·The SETPRM instruction cannot execute while another system is operating. Correct the job. |
What am I missing here?