AH Motion Controller – Standard Instructions Manual _3 Graphic expression: C : Control parameter S : Data source S 1 : Data length S 2 : Separation mark S 3 : File name Explanation: 1. The description of the operands: C : The control parameter S : The data source Owing to the fact that a byte is taken as the basic unit, the first character is stored in the low byte in If the string which is written into the file is “12345”, the characters are stored in the devices as follows. D300, the second character is stored in the high byte in D300. The same applies to the other characters. “16#00” is stored in the high byte in D300+2, and indicates the end of the string.
D300 byte 1 byte 4 byte 3 byte 6 byte 5 D300+1 D300+2 byte 2 16#32 16#35 3-592 FB/FC Instruction Operand Description FC MTWRIT P C, S, S , S , S 1 2 3 Writing the string into the memory card BOOL WORD DWORD LWORD UINT UDINT INT DINT LINT REAL LREAL TMR CNT STRING Data type C S S , S 1 2 S 3 Device X Y M S T C HC/AC D L SM SR E PR K 16# “$” D F C S S , S 1 2 S 3 Pulse instruction 16-bit instruction 32-bit instruction AH Motion CPU AH Motion CPU - Parameter value Description 0 (Appending) If the file exists, the data which is written into the memory card is added after the last byte in the file. If the file does not exist, it is created automatically.
1 (Overwriting) If the file exists, the new data which is written into the memory card replaces the old data in the file. The size of the file is the size of the new data. If the file does not exist, it is created automatically. 16#31 16#34 16#33 16#00