We discuss design and implementation of a script language for an AMS (Automated Manufacturing System) simulator. The script language is used for detailed modeling of the operating rules in the simulator. We discuss design and development of a script interpreter and executor for the simulator. The script interpreter generates an intermediate representation from a script input file and the script executor performs the operations specified in the intermediate representation. We propose the use of an MDD (Multiple-valued Decision Diagram) as a data structure of the intermediate representation in addition to a tree structure that is generally used in the interpreters. The MDD structure reduces the memory requirement and execution time when we implement the script for the operating rules of a state enumerated controller that specifies the control action for each state of the system. We present some modeling examples.
자동화제조시스템 시뮬레이터에서 운영 규칙을 자세히 모델링하는 용도로 사용되는 스크립트 언어의 설계 방법을 제시한다. 또한, 설계된 언어로 작성된 스크립트를 시뮬레이터에서 사용할 수 있게 하기 위해 스크립트 해석기 모듈과 스크립트 실행기 모듈을 개발한다. 스크립트 해석기는 스크립트 화일을 해석하여 메모리에 저장하는데, 이러한 변환된 내용을 IR(Intermediate Representation)이라 한다. 스크립트 실행기는 메모리에 저장된 IR을 읽어들인 후, 관련된 작업을 수행한다. 대부분의 컴파일러에서는 트리 형식의 IR을 사용하는데, 본 논문에서는 추가적으로 MDD(Multiple-valued Decision Diagrams) 형식의 IR을 제안한다. 시스템의 각 상태에 근거하여 제어하는 컨트롤러의 경우에는 MDD 형식의 IR을 사용하면 메모리 소요량과 탐색 시간이 감소된다. 끝으로, 본 연구에서 개발한 스크립트 언어로 작성된 모델링 예를 제시한다.