if you see this example it is using in ect $AF8018 for motor 4. but in my case it is $A7804. but i am using turbo pmac so it should be $AF8018.
Setup On-line Command
I8008=$AF8018 ; Triggered time base from PMAC2 channel 4
I8009=64 ; TBSF=16384/256
I7042=1 ; Servo IC 0 Channel 4 trigger on rising index
I5193=@I8009 ; C.S.1 use I8009 result for time base
M403->X:$07801B,0,24,S ; Channels’ captured position register
Motion Program Segment
DWELL 0 ; Stop any lookahead
I8008=$9F8018 ; Freeze the time base
P403=M403 ; Dummy read to ensure capture logic reset
X10 ; Calculate first move
PLC Program Segment
IF (I8008=$9F8018) ; If frozen
I8008=$BF8018 ; Then arm
ENDIF
and in OEM.H there are definitions for ECT
#define RAPID_TIMEBASE2 $0010F3
->#define THREAD_TIMEBASE_ADR Y:$00350B,0,24,S // I8010 11th entry of modified ECT
#define THREAD_TIMEBASE $00350C // I8011 12th entry of modified ECT
->#define THREAD_PROC_BITS_ADR Y:$00350B,20,4 // I8010 11th " " " "
#define THREAD_SCALE_ADR Y:$00350C,0,24,S // I8011 12th " " " "
#define FPR_TIMEBASE $0010F4 // Open Usage Register
#define FPR_TIMEBASE_ADR X:$0010F4,0,24,S
#define SPND_TIMEBASE_ADR X:$00350A,0,24,S // I8009 10th entry of standard ECT
#define FPR_SCALE_ADR Y:$00350A,0,24,S // I8009 10th entry of standard ECT
// the above uses ENCODER 4 by default
if you follow the arrow key . i think there is a problem in address.