본문 바로가기
Siemens Automation/TIAPortal STEP7

TSEND BLOCK 설명

by 의명 2020. 6. 16.


Parameters

The following table shows the parameters of the "TSEND" instruction:


REQ

Starts the send job on a rising edge.


ID

Reference to the connection established with "TCON".
Value range: W#16#0001 to W#16#0FFF


LEN

Maximum number of bytes that are sent with the job 

(maximum permissible value for S7-1200: 8192, maximum permissible value for S7-1500: 65536).


DATA

Pointer to the send area containing the address and the length of the data to be sent. The address references:

  • The process image of the inputs

  • The process image of the outputs

  • A bit memory

  • A data block

  • Local data


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 with the following values:

  • 0: No error

  • 1: Error occurred


STATUS

Status of the instruction


Parameters BUSY, DONE and ERROR

You can check the status of the job with the BUSY, DONE, ERROR and STATUS parameters. 

The BUSY parameter indicates the processing status. 

With the DONE parameter, you can check whether or not a job executed successfully. 

The ERROR parameter is set when errors occurred during execution of "TSEND". 

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 specified in the STATUS parameter.

BUSY - 0, DONE - 0, ERROR - 0

No new job was assigned.


지멘스 교육이나 기술지원, 견적 등 문의 사항이 있으시면 언제든지 연락주시고,


제가 도움을 드릴 수 있는 내용은 최대한 답을 드릴수 있도록 하겠습니다.


긴글 읽어주셔서 감사드리고, 틈나는대로 계속 관련 내용 업데이트하도록 하겠습니다


감사합니다.

'Siemens Automation > TIAPortal STEP7' 카테고리의 다른 글

S7-1200  (12) 2020.06.21
TRCV BLOCK 설명  (0) 2020.06.17
TCON BLOCK 설명  (2) 2020.06.15
MOVE_BLK_VARIANT BLOCK 설명  (4) 2020.06.14
TSEND_C / TRCV_C SETTING  (0) 2020.06.13

댓글