본문 바로가기
Siemens Automation/TIAPortal STEP7

MOVE_BLK_VARIANT BLOCK 설명

by 의명 2020. 6. 14.

Parameters


EN

Enable input


ENO

Enable output


SRC

Source block from which to copy


COUNT

Number of elements which are copied

Assign the value "1" to the parameter COUNT, if no ARRAY is specified at parameter SRC or at Parameter DEST.


SRC_INDEX

  • The SRC_INDEX parameter is calculated zero-based. If an ARRAY is specified at parameter SRC, the integer at parameter SRC_INDEX specifies the first element within the source area from which it is to be copied. Independent of the declared ARRAY limits.

  • If no ARRAY is specified at parameter SRC or only one single element of an ARRAY is specified, then assign the value "0" at parameter SRC_INDEX.


DEST_INDEX

  • The DEST_INDEX parameter is calculated zero-based. If an ARRAY is specified at parameter DEST, the integer at parameter DEST_INDEX specifies the first element within the destination area to it is to be copied. Independent of the declared ARRAY limits.

  • If no ARRAY is specified at parameter DEST, then assign the value "0" at parameter DEST_INDEX.


DEST

Destination area into which the contents of the source block are copied.

1) The DEST parameter is declared as Output, since the data flow into the tag. However, the tag itself must be declared as InOut in the block interface.


RET_VAL

Error information:

If an error occurs during execution of the instruction, an error code is output at the RET_VAL parameter.


Error Code

0000 - No error

80B4 - Data types do not correspond

8151 - Access to the SRC parameter is not possible.

8152 - The operand at the SRC parameter is not typed.

8153 - Code generation error at the SRC parameter

8154 - The operand at the SRC parameter has the data type BOOL.

8281 - The COUNT parameter has an invalid value

8382 - The value at the SRC_INDEX parameter is outside the limits of the VARIANT.

8383 - The value at parameter SRC_INDEX is outside the high limit of the ARRAY.

8482 - The value at the DEST_INDEX parameter is outside the limits of the VARIANT.

8483 - The value at parameter DEST_INDEX is outside the high limit of the ARRAY.

8534 - The DEST parameter is write protected

8551 - Access to the DEST parameter is not possible.

8552 - The operand at the DEST parameter is not typed.

8553 - Code generation error at the DEST parameter

8554 - The operand at the DEST parameter has the data type BOOL.


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


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


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


감사합니다.






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

TSEND BLOCK 설명  (0) 2020.06.16
TCON BLOCK 설명  (2) 2020.06.15
TSEND_C / TRCV_C SETTING  (0) 2020.06.13
I-DEVICE COMMUNICATION  (6) 2020.06.12
S7-1200 Modbus RTU Sample Program  (1) 2020.06.06

댓글