恭喜,你发布的帖子
发布于 2016-11-10 21:55:41
5楼
FUNCTION "Block_1" : Void
{ S7_Optimized_Access := 'FALSE' }
VERSION : 0.1
VAR_INPUT
in_Byte_offset : Int;
in_Bit_offset : Int;
out_Byte_offset : Int;
out_Bit_offset : Int;
END_VAR
BEGIN
//////////////////////////////////////////////////////
//in_Byte_offset = 5 //
//in_Bit_offset = 3 //
//out_Byte_offset = 1 //
//out_Bit_offset = 2 //
//////////////////////////////////////////////////////
%IX(#out_Byte_offset,#out_Bit_offset) := #IX(#in_Byte_offset,in_Bit_offset); //%I1.2 := %I5.3
END_FUNCTION
请填写推广理由:
分享
只看
楼主