Parameters
The following table shows the parameters of the "TCON" instruction:
REQ
Starts the job to establish the connection specified in the ID upon a rising edge.
ID
Reference to the assigned connection.
Range of values: W#16#0001 to W#16#0FFF
CONNECT
Pointer to the connection description
See also: Connection parameters with structure according to TCON_Param
DONE
Status parameter with the following values:
-
0: Job not yet started or still in progress
-
1: Job completed without error
BUSY
Status parameter with the following values:
-
0: Job not yet started or already completed
-
1: Job not yet completed. A new job cannot be started
ERROR
Status parameter ERROR:
-
0: No error
-
1: Error occurred
STATUS
Status of the instruction
BUSY, DONE and ERROR parameters
You can check the status of the job with the BUSY, DONE, ERROR and STATUS parameters.
The BUSY parameter indicates the processing status.
You use the DONE parameter to check whether or not a job has been executed successfully.
The ERROR parameter is set when errors occurred during execution of "TCON".
The error information is output at the STATUS parameter.
The following table shows the relationship between the BUSY, DONE and ERROR parameters:
BUSY - 1, DONE - 0, ERROR - 0
The job is being processed.
BUSY - 0, DONE - 1, ERROR - 0
The job was completed successfully.
BUSY - 0, DONE - 0, ERROR - 1
The job ended with an error. The cause of the error is output at the STATUS parameter.
BUSY - 0, DONE - 0, ERROR - 0
No new job was assigned.
지멘스 교육이나 기술지원, 견적 등 문의 사항이 있으시면 언제든지 연락주시고,
제가 도움을 드릴 수 있는 내용은 최대한 답을 드릴수 있도록 하겠습니다.
긴글 읽어주셔서 감사드리고, 틈나는대로 계속 관련 내용 업데이트하도록 하겠습니다
감사합니다.
'Siemens Automation > TIAPortal STEP7' 카테고리의 다른 글
TRCV BLOCK 설명 (0) | 2020.06.17 |
---|---|
TSEND BLOCK 설명 (0) | 2020.06.16 |
MOVE_BLK_VARIANT BLOCK 설명 (4) | 2020.06.14 |
TSEND_C / TRCV_C SETTING (0) | 2020.06.13 |
I-DEVICE COMMUNICATION (6) | 2020.06.12 |
댓글