Professional Documents
Culture Documents
#error ignore
@start_node_for_apl=%start_node_for_apl
@i_status = status
#error stop
#loop_with i=1..length(%v_my_FE_APLs)
@start_node_for_apl=%v_my_FE_APLs('i')
;*VeJa 05/2010 END
@apl_node=apl'start_node_for_apl':bnd
;;; ;VeJa 08/2010
;;; #CASE %start_node_for_apl
;;; #when 41, 51 @t_FE = "TARCOMA"
;;; #when 42, 52 @t_FE = "TARCOMB"
;;; #when 43, 53 @t_FE = "TARCOMC"
;;; #case_end
;;; ;VeJa 08/2010 end
@t_FE = "FE"
;VeJa 12/2010
@temp = %t_FE+"_STATIONS"
#loop_with i=1..length('temp':psa)
#set 'temp':psa(%i)=0
#set 'temp':pst(%i)=""
#set 'temp':pnd(%i)=0
#set 'temp':ptn(%i)=0
#loop_end
#loop_with i=1..length('temp':pli)
#set 'temp':pli(%i)=0
#loop_end
;VeJa 12/2010 end
;---------------------------------------------
; Mirroring configuration, added 090107
@use_mirroring=0 ;Use mirroring, 1 or 0
@mirroring_apl_NO = vector() ;Give application numbers where stations are
mirrored
;---------------------------------------------
@fe_apl_no=%start_node_for_apl
#if nod'apl_node':bnt=="SYS" #then #block ;we have communication to FE
@net_nodes=vector(0)
@i=1
#loop FE_STATIONS:'fe_apl_no'PLI(%i)<>0 and %i<=64
@node=trunc(FE_STATIONS:'fe_apl_no'PLI(%i)/32768)
#if %node<>%net_nodes(length(%net_nodes)) #then-
@net_nodes(length(%net_nodes)+1)=%node
@i=%i+1
#loop_end
@net_nodes=delete_element(%net_nodes,1)
#loop_with node_count=1..length(%net_nodes)
@node=%net_nodes(%node_count);
;**VeJa: #loop added to wait for the NET **
#error ignore
@no=0
#loop
@no=%no+1
#if nod'node':bnt=="NET" #then #block
@con=console_output(Timems+ " Looped NET'node' 'no' times")
#set SYS_N0'node'I:P10=0
#LOOP_EXIT
#block_end
#PAUSE 0.1
#IF %no==120 #then #block
@con=console_output(Timems+ " **** Could NOT configure NET'node', NET
not found!! *****")
#set SYS_N0'node'I:P10=10
#block_end
#loop_end(120)
#error stop
#if nod'node':bnt=="NET" #then #block ;**7
@i=1
@con=console_output(timems+" +++ FrontEnd PC-Net 'node' found, setting
stations in use... +++")
;** VeJa 05/2010 Begin2
;set nets to the hot MAIN application
#set net'node':'fe_apl_no'SSY'apl_buv_main' = ('my_nod','apl_buv_main')
#set NET'node':'fe_apl_no'SMS = 'my_apl'
;** VeJa 05/2010 END2
#error continue
@t_status=STATUS_CODE_NAME(%i_status)
#if %i_status<>0 #then @con=console_output("Error 'i_status'
('t_status') when starting line 'line_no' at Node 'node'")
#block_end
@i=%i+1
#loop_end
;;lines
#block_end
#loop_end
#block_end
#else @con=console_output(Timems+ " **** FE_START:C Could NOT find FrontEnd node
'apl_node', external NET not configured! *****")
#loop_end ;*VeJa
@TR=TRACE_END