본문 바로가기
Siemens Automation/TIAPortal STEP7

TRCV BLOCK 설명

by 의명 2020. 6. 17.


Parameters

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


EN_R

Receive enable


ID

Reference to the connection established with "TCON".

Range of values: W#16#0001 (1) to W#16#0FFF (4095)


LEN

Length of the receive area in bytes (hidden).

If you use a memory area with optimized access at the DATA parameter, the LEN parameter must have the value "0".


DATA

Pointer to the receive area


NDR

Status parameter (New Data Received):

  • 0: Job not yet started or still in progress

  • 1: Job completed without error

BUSY

Status parameter:

  • 0: Job not yet started or already completed

  • 1: Job not yet completed. A new job cannot be started

ERROR

Status parameter:

  • 0: No error.

  • 1: An error occurred during execution of the instruction.

Detailed information is output via the STATUS parameter.


STATUS

Status parameter:

Output of status and error information.


RCVD_LEN

Amount of data actually received in bytes


BUSY, NDR and ERROR parameters

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

The BUSY parameter indicates the processing status. 

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

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

The error information is output at the STATUS parameter.

The following table shows the relationship between the BUSY, NDR and ERROR parameters:


BUSY - 1, NDR - 0, ERROR - 0

The job is being processed.

BUSY - 0, NDR - 1, ERROR - 0

The job was completed successfully.

BUSY - 0, NDR - 0, ERROR - 1

The job ended with an error. The cause of the error is output at the STATUS parameter.

BUSY - 0, NDR - 0, ERROR - 0

No new job was assigned.


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


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


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


감사합니다.

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

SIMATIC S7-1500  (3) 2020.06.26
S7-1200  (12) 2020.06.21
TSEND BLOCK 설명  (0) 2020.06.16
TCON BLOCK 설명  (2) 2020.06.15
MOVE_BLK_VARIANT BLOCK 설명  (4) 2020.06.14

댓글