Table of Contents Table of Contents 1. Introduction of Ver.4.20 ............. 1-1 Introduction of FP7 CPU Unit Ver.4.20 ..........1-2 2. Basic Instructions .............. 2-1 List of Instructions.................. 2-2 TM16 (16-bit Timer) ................2-3 CT16- (16-bit Counter) ................2-6 Precautions for Programming ..............2-9 3.
Introduction of Ver.4.20 1.1 Introduction of FP7 CPU Unit Ver.4.20 The following functions have been added to FP7 CPU Unit Ver.4.20. Additional functions 1. Instructions and communication commands which are convenient for migrating to FP7 CPU Unit from FP2 CPU Unit have been added. Basic instructions TM16,CT16- * For details, refer to Chapter...
Page 5
1.1 Introduction of FP7 CPU Unit Ver.4.20 Version for each model number Production lot Production lot Model number until March, 2014 from April, 2014 AFP7CPS21 Ver. 1.20 AFP7CPS41E(S) Ver. 3.42 Ver. 4.20 AFP7CPS31(E)(S) NOTE The AFP7CPS41E(S) and AFP7CPS31(E)(S) manufactured before March, 2014 cannot be upgraded to Ver.4.20.
Basic Instructions 2.1 List of Instructions The following instructions have been added. List of new instructions Instruction Overview TM16 Subtraction timer of 16-bit setting value CT16- Subtraction preset counter of 16-bit setting value...
2.2 TM16 (16-bit Timer) 2.2 TM16 (16-bit Timer) Instruction format TM16X Y111 Operation unit (i) There is no operation unit. List of operands Operand Description Timer number (Settalbe range: 0 to 4095 *For the default memory configuration) Timer setting value (Settable range: U0 to U65535) ...
Page 10
Basic Instructions For details of this instruction, refer to the description of TM instruction in FP7 CPU Unit Programming Manual. - The setting time of the timer is (Timer unit) x (Timer setting value). "TM16S" is 0.00000 to 0.65535 seconds by 0.00001 seconds. "TM16L"...
Page 11
2.2 TM16 (16-bit Timer) When specifying a constant - TM instruction TMX0 U100 U100 Y111 U100 U100 is set in the setting value area TS0 when compiling the program. The setting value area TS0 is set in the elapsed value area TE0 when the input of R0 rises. The setting range of a constant is U0 to U4294967295.
Basic Instructions 2.3 CT16- (16-bit Counter) Instruction format X100 Count CT16- X101 Reset C100 Y131 Operation unit (i) There is no operation unit. List of operands Operand Description Counter number (Settalbe range: 0 to 1023 *For the default memory configuration) Counter setting value (Settable range: U0 to U65535) ...
Page 13
2.3 CT16- (16-bit Counter) Difference between CT and CT16- instructions When specifying a 16-bit device - CT instruction X100 Count X101 Reset DT0 DT1 U131073 Y131 DT0 is treated as 32-bit data U131073(H20001). U131073 is set in the elapsed value area CE0 when the input of X101 falls. - CT16- instruction X100 Count...
Page 14
Basic Instructions When specifying a constant - CT instruction X100 Count X101 Reset U100 U100 Y131 U100 U100 is set in the setting value area CS0 when compiling the program. The setting value area CS0 is set in the elapsed value area CE0 when the input of X101 falls. The setting range of a constant is U0 to U4294967295.
2.4 Precautions for Programming 2.4 Precautions for Programming Programs which are not executed correctly Do no write the following programs as they are not executed correctly. Example 1) When X101 is ON prior to X100, Y100 does not turn on even when X100 turns X100 X101 Y100...
Page 16
Basic Instructions The followings are the examples. Program in which the example 1 is rewritten X100 X101 Y100 X100 X102 Program in which the example 2 is rewritten X100 X101 Y100 TM16X X100 X102 Program in which the example 3 is rewritten X100 Y100 X101...
High-level Instructions 3.1 List of Instructions The following instructions have been added. List of new instructions Instruction Overview BKEXT Transfers 16-bit data sign-extended blocks. BKMV16 Transfers blocks (32-bit data to 16-bit). DIVFP2 Performs division (FP2 compatible). Sets a specified bit of 16-bit data. Resets a specified bit of 16-bit data.
3.2 BKEXT (16-bit Data Sign-extended Block Move) 3.2 BKEXT (16-bit Data Sign-extended Block Move) Instruction format BKEXT.US Operation unit (●: Available) Operation unit ● ● List of operands Operand Description The starting address of the device storing the data that sign extension is performed. The ending address of the device storing the data that sign extension is performed.
Page 20
High-level Instructions Processing Example 1) When the operation unit is signed 16-bit (SS) S1: DT0, S2: DT3, D: DT10 DT10 ・DT11 -2(FFFFFFFEh) -2(FFFEh) DT12 ・DT13 -1(FFFFFFFFh) -1(FFFFh) DT14 ・DT15 0(0000h) 0(00000000h) DT16 ・DT17 1(00000001h) 1(0001h) DT18 ・DT19 Example 2) When the operation unit is unsigned 16-bit (US) S1: DT0, S2: DT3, D: TS0 65534(0000FFFEh) 65534(FFFEh)
3.3 BKMV16 (Block Move (32-bit Data to 16-bit Data)) 3.3 BKMV16 (Block Move (32-bit Data to 16-bit Data)) Instruction format BKMV16 DT10 Operation unit (●: Available) There is no operation unit. List of operands Operand Description The starting device address of source data The ending device address of source data Destination starting device address to transfer data ...
Page 22
High-level Instructions Example 2) When specifying TS for [S1] and [S2], and LD for [D] (transferring only lower one word) S1: TS5, S2: TS7, D: LD20 LD20 4444h 11112222h LD21 00004444h 6666h LD22 55556666h 8888h 77778888h LD23 1234h LD24 9999AAAAh 5678h ...
3.4 DIVFP2 (Division (FP2 Compatible)) 3.4 DIVFP2 (Division (FP2 Compatible)) Instruction format DIVFP2.US Operation unit (●: Available) Operation unit ● ● ● ● List of operands Operand Description Target data 1 for operation (Device address or constant) Target data 2 for operation (Device address or constant) Operation result data (Device address) ...
Page 24
High-level Instructions Processing Divides the target data 1 for operation by the target data 2, and sets the operation result data and remainder. Example 1) When the operation unit is 16-bit (US, SS) S1: DT2, S2: DT1, D: DT3 (Quotient) SD15 SD15...
3.5 BTS (16-bit Data Specified Bit Set) 3.5 BTS (16-bit Data Specified Bit Set) Instruction format BTS.US Operation unit (●: Available) Operation unit ● List of operands Operand Description Device address of target data Bit number (device address or constant) (Settable rangel: 0 to 15) ...
Page 26
High-level Instructions Example 2) Specifying a device for the bit number D: DT1, n: DT0 E D C B A 9 E D C B A 9 Precautions during programming Difference between the FP7 and conventional models (such as FP2 or FP2SH); The conventional models operate with only the lower four bits as valid even when the specified [n] is out of the settable range.
3.6 BTR (16-bit Data Specified Bit Reset) 3.6 BTR (16-bit Data Specified Bit Reset) Instruction format BTR.US Operation unit (●: Available) Operation unit ● List of operands Operand Description Device address of target data Bit number (device address or constant) (Settable range: 0 to 15) ...
Page 28
High-level Instructions Example 2) Specifying a device for the bit number D: DT1, n: DT0 E D C B A 9 E D C B A 9 Precautions during programming Difference between the FP7 and conventional models (such as FP2 or FP2SH); The conventional models operate with only the lower four bits as valid even when the specified [n] is out of the settable range.
FP2/FP2SH Program Conversion Function 4.1 List of Conversion Instructions to FP7 The patterns for converting FP2/FP2SH instructions to FP7 instructions have been changed to the following contents from the Ver.2.11.0.0 of FPWIN GR7(S). Some instructions and operand settings cannot be converted to FP7 instructions. For the operation when an instruction cannot be converted, refer to the following "Operation when an instruction cannot be converted".
Page 31
4.1 List of Conversion Instructions to FP7 High-level instructions FP2/FP2SH instruction FP7 instruction High-level Operation instruction Operand condition Boolean Name unit (Boolean) Data transfer instructions When specifying SV/EV for the transferring destination of 16-bit Sign extension F0(MV) device When specifying IX for the trasferring Sign extension destination of 16-bit device When specifying a 16-bit device for...
Page 32
FP2/FP2SH Program Conversion Function High-level instructions FP2/FP2SH instruction FP7 instruction High-level Operation Operand condition Boolean Name instruction unit (Boolean) Bit manipulation instructions When specifying a 16-bit device only F130(BTS) Bit set (WX/WY/WR/WL/DT/LD) When specifying SV/EV/IX device for Cannot be converted. operand When specifying a 16-bit device only Bit reset...
4.2 Conversion of Special Relays 4.2 Conversion of Special Relays When using special relays on a conventional model, address conversion is performed in accordance with the conversion rule for converting programs to FP7. Conversion rule (1) Only for convertible special relays, address conversion is performed. (2) As only similar device items are converted, the device addresses after R902C cannot be converted.
Page 34
FP2/FP2SH Program Conversion Function List of convertible special relays (Continuation of the above section) FP2SH Device Name Device Name R9018 0.01-sec clock relay SR18 0.01-sec clock relay R9019 0.02-sec clock relay SR19 0.02-sec clock relay R901A 0.1-sec clock relay SR1A 0.1-sec clock relay R901B...
4.3 Conversion of Special Data Registers 4.3 Conversion of Special Data Registers When using special data registers on a conventional model, address conversion is performed in accordance with the conversion rule for converting programs to FP7 programs. Conversion rule (1) Only for convertible special data registers, address conversion is performed.
MEWTOCOL-COM 5.1 List of Commands The following new commands are supported. List of commands Command name Code Overview Read timer set value area Reads the timer set value (lower 16 bits of TS). Write timer set value area Writes to the timer set value (lower 16 bits of TS). (Note 3) Read timer elapsed value area Reads the timer elapsed value (lower 16 bits of TE).
Multi Connection Server Function 6.1 Multi Connection Server Function Multiple devices can be connected to the same port by making connection settings in advance. Using the multi connection server function, servers with specified port numbers of the connectable number "n" can be configured by making the same server settings for continuous "n"...
Page 41
6.1 Multi Connection Server Function It is executed for the entire group by specifying the first connection. If it is executed for other connections, an operation error occurs. 6. The multi connection server setting is not available with CONSET instruction. An operation error occurs when a port number already used is specified.
Multi Connection Server Function 6.1.2 Precautions When Connecting Multi Connection Servers When connecting to a connection on which a multi connection server has been set, if the maximum number of clients connectable have been already connected, it cannot be connected to the target server port. When connecting an additional client to the multi connection server to which the maximum number of clients have been already connected, the disconnecting operation is repeated right after the connection on the client side.
6.2 How to Set Connections 6.2 How to Set Connections For setting the multi connection servers, make the following settings in the user connection information setting under Built-in ET-LAN setting. PROCEDURE 1. Set the first connection which uses the multi connection server setting. Make this setting considering the contents of "6.1.1 Setting Conditions and Operating Conditions".
Page 44
Multi Connection Server Function (2) Select and right-click the destination, and select "Paste" from the pop-up menu. It is possible to select multiple destinations by dragging or using Shift or Ctrl+clicking. (3) Select "Paste" without checking "Select Target for Automatic Serial No.". Do not check these boxes.