5.1 List of Commands.................................................................................. 5-2
6. Multi Connection Server Function .................................... 6-1
6.1 Multi Connection Server Function .......................................................... 6-2
6.1.1 Setting Conditions and Operating Conditions ......................................... 6-2
6.1.2 Precautions When Connecting Multi Connection Servers ...................... 6-4
6.2 How to Set Connections ........................................................................ 6-5
1
Introduction of Ver.4.20
Introduction of Ver.4.20
1-2
1.1 Introduction of FP7 CPU Unit Ver.4.20
Basic instructions
TM16,CT16* For details, refer to Chapter 2 Basic Instructions.
High-level instructions
BKEXT,BKMV16,DIVFP2, BTS,BTR
* For details, refer to Chapter 3 High-level Instructions.
MEWTOCOL-COM
RS,WS,RK,WK
* For details, refer to Chapter 5 MEWTOCOL-COM.
Multi connection server
function
Using this function, multiple devices can be connected to the same
communication port.
For example, this function can be used for the following slave
communications;
MODBUS-TCP (Port number 502)
MC protocol (Port number 5000)
MEWTOCOL-COM or MEWTOCOL7-COM
* For details, refer to 6 Multi Connection Server Function.
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.
2. The following functions have been added to the Ethernet function.
1.1Introduction of FP7 CPU Unit Ver.4.20
1-3
Model number
Production lot
until March, 2014
Production lot
from April, 2014
AFP7CPS21
Ver. 1.20
AFP7CPS41E(S)
Ver. 3.42
Ver. 4.20
AFP7CPS31(E)(S)
NOTE
FP7 CPU Unit
151101
15110123
151101
FP7 CPU Unit (Side face)
FP7 CPU UNIT
AFP7CPS41ES
Model No.
Version for each model number
The AFP7CPS41E(S) and AFP7CPS31(E)(S) manufactured before March, 2014 cannot be
upgraded to Ver.4.20.
How to confirm the production lot
The date of the production lot can be confirmed from the lot number of FP7.
The number is indicated on the side face of the FP7 CPU unit (on which a unit is installed).
In the case of the above AFP7CPS41ES, the lot number is "151101".
This indicates that the unit was manufactured on "November 1, 2015". As the production date
is after April, 2014, this unit will be upgraded to Ver.4.20.
2
Basic Instructions
Basic Instructions
2-2
2.1 List of Instructions
Instruction
Overview
TM16
Subtraction timer of 16-bit setting value
CT16-
Subtraction preset counter of 16-bit setting value
The following instructions have been added.
List of new instructions
2-3
2.2 TM16 (16-bit Timer)
TM16X
5
U30
nS
R0
T5Y111
Operand
Description
n
Timer number (Settalbe range: 0 to 4095 *For the default memory configuration)
S
Timer setting value (Settable range: U0 to U65535)
Operand
16-bit device
32-bit device
Integer
Real
number
String
Index
modifier
*1
WX
WY
WR
WL
WS
SD
DT
LD
UM
WI
WO
TS
CS
TE
CE
IX K U H SF
DF
" "
n
●
● S
● ● ●
●
●
●
●
●
Instruction format
Operation unit (i)
There is no operation unit.
List of operands
Available devices (●: Available)
2.2 TM16 (16-bit Timer)
*1:Only 16-bit deivces, 32-bit devices, and integer constants can be modified. (Real number constants and character
constants cannot be specified.)
Outline of operation
This instruction is different from TIM instruction. The range settable by the setting value [S] is
U0 to U65535.
The timer is a non-hold type that is reset when the power supply is turned off or the RUN
mode is switched to the PROG. mode.
When the execution condition is ON, subtraction is carried out for the specified time [S], and
when the elapsed value reaches U0, the timer contact [Tn] (n is a timer contact number)
turns ON.
When the execution condition turns OFF during the subtraction operation, the elapsed value
is reset (cleared to zero).
It is also possible to describe OT instruction right after the timer coil.
Basic Instructions
2-4
For details of this instruction, refer to the description of TM instruction in FP7 CPU Unit
"TM16S" is 0.00000 to 0.65535 seconds by 0.00001 seconds.
"TM16L" is 0.000 to 65.535 seconds by 0.001 seconds.
"TM16R" is 0.00 to 655.35 seconds by 0.01 seconds.
"TM16X" is 0.0 to 6553.5 seconds by 0.1 seconds.
"TM16Y" is 0 to 65535 seconds by 1 second.
DT0
U1
DT1
U2
TMX0DT0
R0
T0
Y111
DT0 DT1
U1U2
TE0
U131073
TM16X
0
DT0
R0
T0
Y111
DT0
U1
TE0
U1
Programming Manual.
- The setting time of the timer is (Timer unit) x (Timer setting value).
Difference between TIM and TM16 instructions
When specifying a 16-bit device
- TM instruction
DT0 is treated as 32-bit data U131073(H20001).
U131073 is set in the elapsed value area TE0 when the input of R0 rises.
- TM16 instruction
DT0 is treated as 16-bit data U1(H1).
U1 is set in the elapsed value area TE0 when the input of R0 rises.
Note)
When a 32-bit value is written into the elapsed value area TE while the timer is being operated
using an instruction such as MV instruction, the timer operates with the written 32-bit value.
2.2 TM16 (16-bit Timer)
2-5
TMX0U100
R0
T0
Y111
TE0
U100
TS0
U100
TM16X
0
U100
R0
T0
Y111
TE0
U100
TS0
U100
When specifying a constant
- TM instruction
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.
- TM16 instruction
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 U65535.
Note)
When a 32-bit value is written into the elapsed value area TE while the timer is being operated
using an instruction such as MV instruction, the timer operates with the written 32-bit value.
When a 32-bit value is written into the setting value area TS, the timer operates with the
written 32-bit value.
Precautions during programming
Both the timer setting value area TS and the timer elapsed value area TE occupy the 32-bit
area.
When specifying a 16-bit device such as DT for the operation [S] of TM16 instruction, it is
used as 16-bit data.
As subtraction is performed during an arithmetic operation, create a program to subtract
once during one scan time. Correct results cannot be acquired when subtraction operation is
performed several times during one scan due to an interrupt program or the jump/loop
instruction, or when subtraction cannot be performed.
When U0 is specified for the setting value, the timeout operation is performed when the
instruction is executed and the timer contact [T] turns ON.
Please be aware that the program is not described incorrectly when combining the timer
instruction with the and stack instruction or pop stack instruction. (For details, refer to 2.4
Precautions for Programming.)
Basic Instructions
2-6
2.3 CT16- (16-bit Counter)
CT16-
100
U10
n
S
X100
C100Y131
X101
Count
Reset
Operand
Description
n
Counter number (Settalbe range: 0 to 1023 *For the default memory configuration)
S
Counter setting value (Settable range: U0 to U65535)
Operand
16-bit device
32-bit device
Integer
Real
number
String
Index
modifier
*1
WX
WY
WR
WL
WS
SD
DT
LD
UM
WI
WO
TS
CS
TE
CE
IX K U H SF
DF
" "
n
●
● S
● ● ●
●
●
●
●
●
Instruction format
Operation unit (i)
There is no operation unit.
List of operands
Available devices (●: Available)
*1:Only 16-bit deivces, 32-bit devices, and integer constants can be modified. (Real number constants and character
constants cannot be specified.)
Outline of operation
This instruction is different from CT instruction. The range settable by the setting value [S] is
U0 to U65535.
All counters are subtraction preset counters.
When the reset input is switched from ON to OFF, the value of the setting value area CS is
preset in the elapsed value area CE.
When the reset input is on, the elapsed value is reset (cleared to zero). When the count
input changes from the off state to the on state, the setting value is subtracted. When the
elapsed value becomes U0, it is output to the counter contact.
When the count input and reset input turn on simultaneously, the reset input has priority.
When the rise of the count input and the fall of the reset input are detected at the same time,
the count input is ignored and only the preset is executed.
It is also possible to describe OT instruction right after the counter instruction.
For details of this instruction, refer to the description of CT instruction in FP7 CPU Unit
Programming Manual.
2.3 CT16- (16-bit Counter)
2-7
DT0
U1
DT1
U2
CT0
DT0
X100
C0Y131
X101
Count
Reset
DT0 DT1
U1U2
CE0
U131073
CT16-
0
DT0
X100
C0Y131
X101
Count
Reset
DT0
U1
CE0
U1
Difference between CT and CT16- instructions
When specifying a 16-bit device
- CT instruction
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
DT0 is treated as 16-bit data U1(H1).
U1 is set in the elapsed value area CE0 when the input of X101 falls.
Note)
When a 32-bit value is written into the elapsed value area CE while the counter is being
operated using an instruction such as MV instruction, the timer operates with the written 32-bit
value.
Basic Instructions
2-8
When specifying a constant
CT0
U100
X100
C0Y131
X101
Count
Reset
CE0
U100
CS0
U100
CT16-
0
U100
X100
C0Y131
X101
Count
Reset
CE0
U100
CS0
U100
- CT instruction
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.
- CT16- instruction
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 U65535.
Note)
When a 32-bit value is written into the elapsed value area CE while the counter is being
operated using an instruction such as MV instruction, the timer operates with the written 32-bit
value.
When a 32-bit value is written into the setting value area CS, the timer operates with the
written 32-bit value.
Precautions during programming
Both the counter setting value area CS and the counter elapsed value area CE occupy the
32-bit area.
When specifying a 16-bit device such as DT for the operation [S] of CT16- instruction, it is
used as 16-bit data.
When U0 is specified for the setting value, the count-up operation is performed when the
instruction is executed and the counter contact [C] turns ON.
Loading...
+ 31 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.