Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
Command implemented by a procedure
&pagelevel(4)&pagelevel
In the following example the syntax of a user-defined command is tested. The command is defined in the user syntax file SF.TEST.
/start-sdf-sim
% BLS0523 ELEMENT 'SDF-SIM', VERSION 'V04.5A10' FROM LIBRARY ':2OSH:$TSOS.SY
SLNK.SDF-SIM.045' IN PROCESS
% BLS0524 LLM 'SDF-SIM', VERSION ' ' OF '2001-04-19 16:11:57' LOADED
% BLS0551 COPYRIGHT (C) SIEMENS AG 2001. ALL RIGHTS RESERVED
% SDS0001 SDF-SIM VERSION 'V04.5A10' STARTED
%//def-test-obj *cmd
%//def-env par-fi=*no(sys=*std,group=*n,user=sf.test),displ=*long ————— (1)
%//start-simulation
% SDS0005 ’SYSTEM’ SYNTAX FILE ’$TSOS.SYS.SDF.SYSTEM.SYNTAX’ ACTIVATED
% SDS0005 ’USER’ SYNTAX FILE ’SF.TEST’ ACTIVATED
*my-com first-op=aaa,second-op=bbbb ——————————————————————————————————— (2)
(IN) my-com first-op=aaa,second-op=bbbb
INTERFACE : PROCEDURE ————————————————————————————————————————————————— (3)
STRING FORM ———————————— ———————————— ———————————— ———————————— ———— ——————— (3)
/CALL MY-PROC,(FIRST-OP='AAA',SECOND-OP='BBBB') ——————————————————————— (3)
*/*
% SDS0002 SDF-SIM TERMINATED NORMALLY
|
The user syntax file SF.TEST containing the syntax definition of the command MY-COMMAND must be activated in the syntax file hierarchy of the test environment.
Once simulation has been started, the user enters the command to be simulated, together with two operands.
SDF-SIM outputs a log containing the following information: