background image

244

6  PID CONTROL INSTRUCTION
6.2  PID Control Instruction (Exact Differential)

PID operation

PIDCONT(P)

The following instruction can go in the dotted squares.
PIDCONT, PIDCONTP

Executing condition

Argument

Processing details

 • This instruction measures sampling cycle and performs PID operation at instruction execution.
 • This instruction performs PID operation based on the set value (SV) and process value (PV) in the I/O data area set to the 

device number specified by (s) or later, and stores the operation result to the automatic manipulated value (MV) area in the 
I/O data area.

 • PID operation is performed in response to the first execution of the PIDCONT instruction after the set sampling cycle time 

has elapsed.

Instruction

Executing condition

PIDCONT

PIDCONTP

Input/output 
argument

Name

Description

Data type

Input argument

EN

Executing condition

Bit

s

Start number of the device that is assigned in I/O 
data area

ANY16

Output argument

ENO

Execution result

Bit

Setting 
data

Internal device

R, ZR

J

\

U

\G

Zn

Constant

Others

Bit

Word

Bit

Word

(s)

Structured ladder/FBD

ST

EN

ENO

s

PIDCONT

PIDCONT

(EN, s);

ENO:=

Содержание MELSEC System Q

Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...

Страница 2: ......

Страница 3: ...RECAUTIONS OR WARNING CONTAINED IN MITSUBISHI S USER INSTRUCTION AND OR SAFETY MANUALS TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT Prohibited Application Prohibited Applications include but not limited to the use of the PRODUCT in Nuclear Power Plants and any other power plants operated by Power companies and or any other cases in which the public could be affected if any problem or fault o...

Страница 4: ...roduct please read this manual and the relevant manuals carefully and develop familiarity with the programming specifications to handle the product correctly When applying the program examples introduced in this manual to an actual system ensure the applicability and confirm that it will not cause system control problems ...

Страница 5: ... 2 4 Socket Communication Function Instruction 24 2 5 Built in I O Function Instruction 25 Positioning function dedicated instruction 25 Counter function dedicated instruction 26 2 6 Data Logging Function Instruction 28 2 7 SFC Control Instruction 28 CHAPTER 3 CONFIGURATION OF INSTRUCTIONS 29 CHAPTER 4 HOW TO READ INSTRUCTIONS 31 CHAPTER 5 MODULE DEDICATED INSTRUCTION 33 5 1 Analog Instruction 33 ...

Страница 6: ...RSTOP instruction 174 Reading clock data from another station 177 Writing clock data to another station 179 Reading from buffer memory of intelligent function module on remote I O station 182 Writing to buffer memory of intelligent function module on remote I O station 185 Setting parameter 188 Connection opening or closing 194 Fixed buffer communication 201 Reading or clearing error information 2...

Страница 7: ...ed Instruction 287 Current value read 287 Ring counter upper lower limit value write 288 Preset value write 290 Latch counter value read 291 Sampling counter value read 292 Coincidence output point write 293 Frequency measurement 294 Rotation speed measurement 295 Pulse measurement read 296 PWM output 297 CHAPTER 9 DATA LOGGING FUNCTION INSTRUCTION 299 9 1 Trigger Logging Set Reset 299 CHAPTER 10 ...

Страница 8: ... functions handling wiring and troubleshooting of the Q64AD Q68ADV and Q68ADI Channel Isolated High Resolution Analog Digital Converter Module Channel Isolated High Resolution Analog Digital Converter Module With Signal Conditioning Function User s Manual SH 080277 System configuration performance specifications functions handling wiring and troubleshooting of the Q64AD GH and Q62AD DGH Channel Is...

Страница 9: ...5P4N QD75D1N QD75D2N QD75D4N QD75P1 QD75P2 QD75P4 QD75D1 QD75D2 QD75D4 Type QD75M Positioning Module User s Manual Details IB 0300062 System configuration performance specifications functions handling procedures before operation and troubleshooting of the QD75M1 QD75M2 QD75M4 Type QD75MH Positioning Module User s Manual Details IB 0300117 System configuration performance specifications functions h...

Страница 10: ... Ethernet module data communication procedure with external devices line connection open close fixed buffer communication random access buffer communication and troubleshooting MELSEC Q L Ethernet Interface Module User s Manual Application SH 080010 The e mail function of the Ethernet module programmable controller CPU status monitoring communication function using the MELSECNET H or MELSECNET 10 ...

Страница 11: ...QCPU Q mode and LCPU GX Works2 Product name of the software package for the MELSEC programmable controllers High Performance model QCPU A generic term for the Q02CPU Q02HCPU Q06HCPU Q12HCPU and Q25HCPU High speed Universal model QCPU A generic term for the Q03UDVCPU Q04UDVCPU Q06UDVCPU Q13UDVCPU and Q26UDVCPU IEC61131 3 The abbreviation for the IEC 61131 3 international standard LCPU A generic ter...

Страница 12: ...vailable languages in GX Works2 Learning the basic operations and operating procedures when creating a simple project for the first time GX Works2 Beginner s Manual Simple Project Learning the basic operations and operating procedures when creating a structured project for the first time GX Works2 Beginner s Manual Structured Project Learning the operations of available functions regardless of pro...

Страница 13: ...trol Instructions Using SFC language Learning details of specifications functions and instructions of SFC MELSAP3 MELSEC Q L QnA Programming Manual SFC Using structured ladder FBD or structured text language Learning the fundamentals for creating a structured program MELSEC Q L F Structured Programming Manual Fundamentals Learning the types and details of common instructions MELSEC Q L Structured ...

Страница 14: ...es data from and to another station on the CC Link IE or MELSECNET H network system Reads and clears error information Sends and receives e mails MELSECNET H network module Ethernet interface module PID control instruction Sets PID control data and performs PID operation for inexact differential and exact differential Stops and starts operation of the specified loop Changes the parameter of the sp...

Страница 15: ...H network module QJ71LP21 QJ71LP21 25 QJ71LP21S 25 QJ71LP21G QJ71BR11 QJ72LP25 25 QJ72LP25G QJ72BR15 Applicable to all versions Ethernet interface module QJ71E71 100 QJ71E71 B5 QJ71E71 B2 LJ71E71 100 Applicable to all versions CPU module supporting the PID control instruction Q00JCPU Q00UJCPU Q00CPU Q00UCPU Q01CPU Q01UCPU Q02CPU Q02HCPU Q02UCPU Q03UDCPU Q03UDVCPU Q03UDECPU Q04UDHCPU Q04UDVCPU Q04U...

Страница 16: ...nication via Built in Ethernet Port Manual for reference MANUALS CPU module supporting the SFC control instruction Q02CPU Q02HCPU Q02PHCPU Q03UDCPU Q03UDVCPU Q03UDECPU Q04UDHCPU Q04UDVCPU Q04UDEHCPU Q06HCPU Q06PHCPU Q06UDHCPU Q06UDVCPU Q06UDEHCPU Q10UDHCPU Q10UDEHCPU Q12HCPU Q12PHCPU Q12PRHCPU Q13UDHCPU Q13UDVCPU Q13UDEHCPU Q20UDHCPU Q20UDEHCPU Q25HCPU Q25PHCPU Q25PRHCPU Q26UDHCPU Q26UDVCPU Q26UDE...

Страница 17: ...on For details of the icons refer to Chapter Page 31 HOW TO READ INSTRUCTIONS Indicates the references on which the instructions are explained Symbol Name Description s s1 Source Stores data before operation d d1 Destination Indicates the destination of data after operation n n1 Specifies the number of devices and the number of transfers Jn Specifies the network number Un Specifies the start I O n...

Страница 18: ...FGAN Un s Moves to the offset gain setting mode Moves to the normal mode Page 33 G P _OFFGAN GP_OFFGAN Setting value reading G_OGLOAD Un s d Reads the user range settings offset gain value to the programmable controller CPU Page 35 G P _OGLOA D GP_OGLOAD Setting value restoration G_OGSTOR Un s d Restores the user range settings offset gain value stored in the programmable controller CPU Page 37 G ...

Страница 19: ... ZP_PSTRT1 Un s d Starts positioning of the specified axis Page 43 ZP_PSTRT1 ZP_PSTRT2 ZP_PSTRT3 ZP_PSTRT4 ZP_PSTRT2 Un s d ZP_PSTRT3 Un s d ZP_PSTRT4 Un s d Teaching ZP_TEACH1 Un s d Performs teaching for the specified axis Page 45 ZP_TEACH1 ZP_TEACH2 ZP_TEACH3 ZP_TEACH4 ZP_TEACH2 Un s d ZP_TEACH3 Un s d ZP_TEACH4 Un s d Writing to flash ROM ZP_PFWRT Un s d Writes the positioning module parameter...

Страница 20: ... s d Receives data with an interrupt program using the nonprocedural protocol or bidirectional protocol Page 66 Z_BUFRCVS G_PRR Un s d Sends data by user frame according to the specification in user frame specification area for transmission using the nonprocedural protocol Page 68 G P _PRR GP_PRR Un s d Initial setting ZP_CSET Un s1 s2 d1 d2 Sets the unit word byte of the number of the data to be ...

Страница 21: ...ting to the buffer memory of an intelligent device station with handshake G_RISEND Un s1 s2 d1 d2 Automatically performs handshaking with the specified station and writes data to the buffer memory of the specified station This instruction is applicable with a module having a handshake signal such as the AJ65BT R2 N Page 110 G P _RISEN D GP_RISEND Un s1 s2 d1 d2 Reading from the auto refresh buffer...

Страница 22: ... s3 d1 J_SWRITE Jn s1 s2 d1 d2 d3 Writes data to a device of another station with completion device Page 140 J P _SWRIT E G P _SWRIT E JP_SWRITE Jn s1 s2 d1 d2 d3 G_SWRITE Un s1 s2 d1 d2 d3 GP_SWRITE Un s1 s2 d1 d2 d3 Message user specified data communication J_SEND Jn s1 s2 d Sends data to another station Page 144 J P _SEND G P _SEND JP_SEND Jn s1 s2 d G_SEND Un s1 s2 d GP_SEND Un s1 s2 d J_RECV ...

Страница 23: ...s1 s2 s3 s4 d Z_RRUN_U Un s1 s2 s3 s4 d ZP_RRUN_U Un s1 s2 s3 s4 d Remote STOP Z_RSTOP_J Jn s1 s2 s3 s4 d Executes remote STOP for a CPU module on another station Page 174 Z P _RSTOP _J Z P _RSTOP _U ZP_RSTOP_J Jn s1 s2 s3 s4 d Z_RSTOP_U Un s1 s2 s3 s4 d ZP_RSTOP_U Un s1 s2 s3 s4 d Reading clock data from another station Z_RTMRD_J Jn s1 s2 s3 d1 d2 Reads clock data from a CPU module on another sta...

Страница 24: ...194 ZP_OPEN ZP_CLOSE Un s1 s2 d Closes a connection Page 198 ZP_CLOSE Fixed buffer communication ZP_BUFRCV Un s1 s2 d1 d2 Reads received data for main program Page 201 ZP_BUFRCV Z_BUFRCVS Un s d Reads received data for interrupt program Page 204 Z_BUFRCVS ZP_BUFSND Un s1 s2 s3 d Sends data Page 206 ZP_BUFSND Reading or clearing error information ZP_ERRCLR Un s d Clears error information Page 209 Z...

Страница 25: ... Starts the PID operation for the specified loop number SP_PIDRUN n Operation parameter change S_PIDPRMW n s Changes operation parameter of the specified loop number Page 237 S P _PIDPRM W SP_PIDPRMW n s Classification Instruction name Argument Processing details Executing condition Reference Data setting PIDINIT s Sets data to be used for PID operation Page 240 PIDINIT P PIDINITP s PID operation ...

Страница 26: ... the end process Page 257 SP_SOCRCV S_SOCRCVS Un s d Reads receive data Reading at the instruction execution Page 259 S_SOCRCVS Sending data SP_SOCSND Un s1 s2 s3 d Sends data Page 261 SP_SOCSND Reading connection information SP_SOCCINF Un s1 s2 d Reads connection information Page 264 SP_SOCCINF Changing destination SP_SOCCSET Un s1 s2 Changes a destination of a UDP IP connection Page 266 SP_SOCCS...

Страница 27: ...STRT2 s IPDSTRT2P s IPSIMUL n1 n2 Starts the positioning of the axis 1 Positioning Data number and the axis 2 Positioning Data number simultaneously Page 275 IPSIMUL P IPSIMULP n1 n2 OPR start IPOPR1 s Specifies a method and starts the OPR of the specified axis Page 276 IPOPR1 IPOPR2 IPOPR1P s IPOPR2 s IPOPR2P s JOG start IPJOG1 s1 s2 Starts the JOG operation of the specified axis Page 278 IPJOG1 ...

Страница 28: ...eset value of the specified CH Page 290 ICPREWR1 ICPREWR2 ICPREWR1P s ICPREWR2 s ICPREWR2P s Latch counter value read ICLTHRD1 n d Stores a latch counter value of the specified CH Page 291 ICLTHRD1 ICLTHRD2 ICLTHRD1P n d ICLTHRD2 n d ICLTHRD2P n d Sampling counter value read ICSMPRD1 d Stores a sampling counter value of the specified CH Page 292 ICSMPRD1 ICSMPRD2 ICSMPRD1P d ICSMPRD2 d ICSMPRD2P d...

Страница 29: ...es the measured pulse value of the specified CH Page 296 ICPLSRD1 ICPLSRD2 ICPLSRD1P d ICPLSRD2 d ICPLSRD2P d PWM output ICPWM1 s1 s2 Outputs the PWM waveform of the specified CH Page 297 ICPWM1 ICPWM2 ICPWM2 s1 s2 Classification Instruction name Argument Processing details Executing condition Reference ...

Страница 30: ...guration of the programming tool Page 299 LOGTRG Instruction LOGTRGR Instruction LOGTRGR n Resets the trigger conditions Classification Instruction name Argument Processing details Executing condition Reference SFC step comment read S_SFCSCOMR n1 n2 n3 d1 d2 Reads comment of an active step in the specified SFC block by the specified number Page 301 S P _SFCSCO MR SP_SFCSCOM R n1 n2 n3 d1 d2 SFC tr...

Страница 31: ... O number in three digits for the module in which the instruction is to be executed Set the start I O number in a numeric value or character string according to the data type available with the instruction Setting the start I O number in word unsigned 16 bit string or word signed data type Set the start I O number of the module for n of Un Ex For the module whose start I O number is 020H 02 Settin...

Страница 32: ...ber of devices and number of transfers n Executing condition EN An input variable EN inputs an executing condition of an instruction Execution result ENO An output variable ENO outputs an execution result For details of the configuration of instructions for labels and structures refer to the following MELSEC Q L F Structured Programming Manual Fundamentals Type Description Constant Specifies a num...

Страница 33: ...IONS 31 4 4 HOW TO READ INSTRUCTIONS Chapter 5 provides detailed explanation on each instruction in the layout as shown below Indicates an outline of an instruction Indicates an instruction to be explained Ò Ó Ô Õ Ö Ù Ø Ú Û ...

Страница 34: ...nstruction Indicates data such as control data send data or receive data that are used for an input argument or output argument in an instruction The setting side indicates the following User Data set by user before dedicated instruction execution System Data stored by the programmable controller CPU after dedicated instruction execution The setting does not need to be set by the user If the setti...

Страница 35: ...s normal mode to offset gain setting mode offset gain setting mode to normal mode Instruction Executing condition G_OFFGAN GP_OFFGAN Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s Mode switching 0 To normal mode 1 To offset gain setting mod...

Страница 36: ...setting mode IF Var_Flag TRUE THEN Var_Flag ON MOVP TRUE 1 Var_ControlData Sets mode G_OFFGAN TRUE H00 Var_ControlData Converts mode END_IF IF X0A TRUE THEN END_IF Convert to the normal mode IF Var_Flag FALSE THEN Var_Flag OFF MOVP TRUE 0 Var_ControlData Sets mode G_OFFGAN TRUE H00 Var_ControlData Converts mode END_IF IF X0A FALSE THEN END_IF Sets mode when Var_Flag turns ON Converts mode Sets mod...

Страница 37: ...ach module used Instruction Executing condition G_OGLOAD GP_OGLOAD Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s Variable that stores control data Array of ANY16 0 35 Output argument ENO Execution result Bit d Variable that turns ON upon c...

Страница 38: ...END_IF IF Var_Flag_Exe TRUE THEN Execution flag ON G_OGLOAD TRUE H00 Var_ControlData Var_Result Performs readout IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion RST TRUE Var_Flag_Exe Turns execution flag OFF ELSE Error completion END_IF END_IF END_IF Specifies voltage when instruction flag turns ON Performs readout Normal completion Turns execution flag OF...

Страница 39: ...r to the manual for each module used Instruction Executing condition G_OGSTOR GP_OGSTOR Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s Variable that stores control data Array of ANY16 0 35 Output argument ENO Execution result Bit d Variable...

Страница 40: ...ET TRUE Var_Flag_Exe Turns execution flag ON END_IF IF Var_Flag_Exe TRUE THEN Execution flag ON G_OGSTOR TRUE H01 Var_ControlData Var_Result Restores setting value IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion RST TRUE Var_Flag_Exe Turns execution flag OFF ELSE Error completion END_IF END_IF END_IF Turns execution flag ON Restores setting value Error com...

Страница 41: ...ion Executing condition Z_ABRST1 Z_ABRST2 Z_ABRST3 Z_ABRST4 Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s Variable that stores control data Array of ANY16 0 7 Output argument ENO Execution result TRUE Normal FALSE Error Bit d Variable tha...

Страница 42: ...han 0 Error completion error code System s 2 Receive signal from servo amplifier Write the following signal status read from the servo amplifier to the input module b0 ABS data bit0 b1 ABS data bit1 b2 Send data READY flag b0 0 1 b1 0 1 b2 0 1 User s 3 Send signal to servo amplifier The ON OFF status of the following data that are calculated by the dedicated instructions on the basis of receive si...

Страница 43: ...estoration memory ON Clears completion status Turns the servo ON with the data to be sent to the servo amplifier Sets completion status to error code Turns absolute position restoration memory OFF Sets ABS data Sets ABS data in data b0 received from the servo Sets ABS data in data b1 Sets send data ready flag in data b2 Restores absolute position ...

Страница 44: ...e sent to the servo amplifier ELSE Error completion MOV TRUE Var_ControlData 4 Var_ErrorCode Sets completion status to error code END_IF IF Var_ControlData 4 0 THEN RST TRUE Var_Flag_Mem Turns absolute position restoration memory OFF END_IF END_IF IF Var_Flag_Mem TRUE THEN absolute position restoration memory ON Sets ABS data BSET X47 0 Var_ControlData 2 Sets ABS data in data b0 received from the ...

Страница 45: ... ZP_PSTRT1 ZP_PSTRT2 ZP_PSTRT3 ZP_PSTRT4 Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s Variable that stores control data Array of ANY16 0 2 Output argument ENO Execution result TRUE Normal FALSE Error Bit d Variable that turns ON upon com...

Страница 46: ...01 Machine OPR 9002 Fast OPR 9003 Current value change 9004 Multiple axes concurrent start 1 to 600 7000 to 7004 9001 to 9004 User Structured ladder FBD ST PLS X100 Var_Flag_Inst Positioning start pulse IF Var_Flag_Inst TRUE THEN MOVP TRUE 1 Var_ControlData 2 Sets start signal number 1 SET TRUE Var_Flag_Mem Turns positioning start instruction memory ON END_IF IF Var_Flag_Mem TRUE THEN Positioning ...

Страница 47: ...t stores control data Array of ANY16 0 3 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 also turns ON at the time of error completion Array of bit 0 1 Setting data Internal device R ZR J U G Zn Constant Others Bit Word Bit Word s d Device Item Setting data Setting range Setting side s 0 System area s 1 Completion status The instruction comp...

Страница 48: ...ction memory ON END_IF IF Var_Flag_Mem TRUE THEN Teaching instruction memory ON MOVP TRUE H0 Var_ControlData 2 Sets teaching data MOVP TRUE K3 Var_ControlData 3 Sets positioning data number ZP_TEACH1 TRUE 00 Var_ControlData Var_Result Performs teaching IF Var_Result 0 TRUE Var_Result 1 FALSE THEN RST TRUE Var_Flag_Mem Turns teaching instruction memory OFF END_IF END_IF Teaching instruction pulse T...

Страница 49: ...umber of the module 00 to FE Higher two digits when expressing the I O number in three digits String s Variable that stores control data Array of ANY16 0 1 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 also turns ON at the time of error completion Array of bit 0 1 Setting data Internal device R ZR J U G Zn Constant Others Bit Word Bit Word...

Страница 50: ...IF Var_Flag_Mem TRUE Y0 FALSE THEN OUT_T TRUE TC1 2 Waits output of programmable controller ready for the positioning module END_IF IF TS1 TRUE THEN Write to flash ROM instruction memory ON ZP_PFWRT TRUE 00 Var_ControlData Var_Result Writes data to flash ROM IF Var_Result 0 TRUE Var_Result 1 FALSE THEN RST TRUE Var_Flag_Mem Turns write to flash ROM instruction memory OFF END_IF END_IF Write to fla...

Страница 51: ... 00 to FE Higher two digits when expressing the I O number in three digits String s Variable that stores control data Array of ANY16 0 1 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 also turns ON at the time of error completion Array of bit 0 1 Setting data Internal device R ZR J U G Zn Constant Others Bit Word Bit Word s d Device Item Se...

Страница 52: ...T TRUE TC0 2 Waits output of programmable controller ready for the positioning module END_IF IF TS0 TRUE THEN Parameter initialization instruction memory ON ZP_PINIT TRUE 00 Var_ControlData Var_Result Performs initialization of parameters IF Var_Result 0 TRUE Var_Result 1 FALSE THEN RST TRUE Var_Flag_Mem Turns parameter initialization instruction memory OFF END_IF END_IF Parameter initialization i...

Страница 53: ..._ONDEMAND Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 2 s2 Start number of the device that stores send data ANY16 Output argument ENO Execution result Bit d Variable that turns ON upon ...

Страница 54: ...ide 1 2 User s1 1 Transmission result The instruction completion status is stored 0 Normal completion Other than 0 Error completion error code System s1 2 Number of send data Set the number of send data 1 or more User Structured ladder FBD On demand transmission instruction pulse Sets transmission channel to 1 Sets send data to D10 to D11 Turns normal completion flag OFF Turns error completion fla...

Страница 55: ...on channel to 1 MOV TRUE 2 Var_ControlData 2 Sets number of send data to 2 words MOV TRUE H1234 D10 Sets send data to D10 to D11 MOV TRUE H5678 D11 RST TRUE Var_Flag_Normal Turns normal completion flag OFF RST TRUE Var_Flag_Error Turns error completion flag OFF SET TRUE Var_Flag_Exe Turns execution flag ON END_IF IF Var_Flag_Exe TRUE THEN Execution flag ON GP_ONDEMAND TRUE H0 Var_ControlData D10 V...

Страница 56: ...he I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 2 s2 Start number of the device that stores send data ANY16 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 also turns ON at the time of error completion Array of bit 0 1 Setting data 1 Internal device R ZR J U G Zn Constant Others Bit Word Bit Word s1 ...

Страница 57: ...otocol For the Q series C24 whose I O signals are X Y00 to X Y1F Structured ladder FBD Transmission instruction pulse Sets send data Sets transmission channel to 1 Sets number of send data to 5 words Sends data Turns normal completion flag ON Stores error code Turns normal completion flag OFF Turns error completion flag ON Turns error completion flag OFF Sets completion code ...

Страница 58: ...olData 2 Sets number of send data to 5 words G_OUTPUT TRUE H0 Var_ControlData D11 Var_Result Sends data END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion SET TRUE Var_Flag_Normal Turns normal completion flag ON ELSE Error completion MOV TRUE Var_ControlData 1 Var_ErrorCode Stores error code SET TRUE Var_Flag_Error Turns error completion flag ON END_IF...

Страница 59: ...t argument ENO Execution result Bit d1 Start number of the device that stores read data ANY16 d2 Variable that turns ON upon completion of the instruction d2 1 also turns ON at the time of error completion Array of bit 0 1 Setting data 1 Internal device R ZR J U G Zn Constant Others Bit Word Bit Word s d1 d2 Device Item Setting data Setting range Setting side s 0 Reception channel Set the receptio...

Страница 60: ... of words for receive data to 10 words G_INPUT TRUE H0 Var_ControlData D10 Var_Result Receives data END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion MOV TRUE Var_ControlData 2 Z2 BMOV TRUE D10 K0Z2 D110 Stores receive data ELSE Error completion SET TRUE Var_Flag_Error Turns error completion flag ON END_IF END_IF IF X100 TRUE THEN RST TRUE Var_Flag_Er...

Страница 61: ...e digits ANY16 s1 Variable that stores control data Array of ANY16 0 2 s2 Start number of the device that stores send data ANY16 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 also turns ON at the time of error completion Array of Bit 0 1 Setting data 1 Internal device R ZR J U G Zn Constant Others Bit Word Bit Word s1 s2 d Device Item Sett...

Страница 62: ... send data to 5 words G_BIDOUT TRUE H0 Var_ControlData D11 Var_Result Sends data END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion SET TRUE Var_Flag_Normal Turns normal completion flag ON ELSE Error completion MOV TRUE Var_ControlData 1 Var_ErrorCode Stores error code SET TRUE Var_Flag_Error Turns error completion flag ON END_IF END_IF IF X21 TRUE THE...

Страница 63: ...NO Execution result Bit d1 Start number of the device that stores read data ANY16 d2 Variable that turns ON upon completion of the instruction d2 1 also turns ON at the time of error completion Array of bit 0 1 Setting data 1 Internal device R ZR J U G Zn Constant Others Bit Word Bit Word s d1 d2 Device Item Setting data Setting range Setting side s 0 Reception channel Set the reception channel 1 ...

Страница 64: ...tured ladder FBD ST IF X3 TRUE THEN MOVP TRUE 1 Var_ControlData 0 Sets receive channel to 1 MOVP TRUE 10 Var_ControlData 3 Sets allowable number of words for receive data to 10 G_BIDIN TRUE H00 Var_ControlData D10 Var_Result Receives data END_IF IF Var_Result 0 TRUE Var_Result 1 FALSE THEN BMOV TRUE D10 Var_ControlData 2 D110 Stores receive data END_IF Sets receive channel to 1 Sets allowable numb...

Страница 65: ...re X Y00 to X Y1F Instruction Executing condition G_SPBUSY GP_SPBUSY Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 Output argument ENO Execution result Bit d Variable that stores read communication status ANY32 Setting data Internal device R...

Страница 66: ...EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s1 Channel number that requests receive data clear 1 Channel 1 CH1 side 2 Channel 2 CH2 side ANY16 s2 Variable that stores control data Array of ANY16 0 111 Output argument ENO Execution result Bit d1 Dummy ANY16 d2 Variable that turns ON upon completion of ...

Страница 67: ...UE 0 Var_ControlData 0 Clears execution type to 0 MOVP TRUE 4 Var_ControlData 2 Sets request type ZP_CSET TRUE U0 1 Var_ControlData Var_Dummy Var_Result Clears data END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion SET TRUE Var_Flag_Normal Turns normal completion flag ON ELSE Error completion MOV TRUE Var_ControlData 1 Var_ErrorCode Stores error code ...

Страница 68: ...umber of the module 00 to FE Higher two digits when expressing the I O number in three digits String s Reception channel number 1 Channel 1 CH1 side 2 Channel 2 CH2 side ANY16 Output argument ENO Execution result Bit d Start number of the device that stores read data Receive data are read from the receive area of buffer memory ANY16 Setting data 1 Internal device R ZR J U G Zn Constant K H Others ...

Страница 69: ...mation flag for the main program The main program resets flags SET DX3 Var_Flag_Normal Turns normal completion flag ON SET DX4 Var_Flag_Error Turns error completion flag ON Receives data from CH1 and stores the data in devices starting from D200 Z_BUFRCVS SM400 00 1 D200 Executes interrupt receive program Turns normal completion flag ON Turns error completion flag ON Executes interrupt receive pro...

Страница 70: ... protocol Instruction Executing condition G_PRR GP_PRR Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s Variable that stores control data Array of ANY16 0 4 Output argument ENO Execution result Bit d Variable that turns ON upon completion of ...

Страница 71: ...nstruction completion status is stored 0 Normal completion Other than 0 Error completion error code System s 2 CR LF addition specification Specify whether to add CR LF codes to the send data 0 CR LF not added 1 CR LF added 0 1 User s 3 Transmission pointer Specify the position in the user frame specification area for transmission from where the frame number data are to be sent 1 to 100 User s 4 N...

Страница 72: ... Y9F Structured ladder FBD Transmission instruction pulse Sets number of send data Sets desired send data Sets send data to buffer memory User frame 0 User frame 1 User frame 2 User frame 3 User frame 4 User frame 5 Sets user frames to buffer memory Sets transmission channel to 1 Clears transmission result Sets CR LF to CR LF not added Sets transmission pointer Sets number of send data Performs us...

Страница 73: ...r_Frame 4 Sets user frame 4 MOV TRUE 0 Var_Frame 5 Sets user frame 5 TO TRUE Var_Frame 0 H8 H0BA 6 Sets user frames to buffer memory END_IF IF Var_Flag_Inst TRUE THEN MOV TRUE 1 Var_ControlData 0 Sets transmission channel to 1 MOV TRUE 0 Var_ControlData 1 Clears transmission result MOV TRUE H0 Var_ControlData 2 Sets CR LF to CR LF not added MOV TRUE H1 Var_ControlData 3 Sets transmission pointer M...

Страница 74: ...ype Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s1 Reception channel number 1 Channel 1 CH1 side 2 Channel 2 CH2 side ANY16 s2 Variable that stores control data Array of ANY16 0 111 Output argument ENO Execution result Bit d1 Dummy ANY16 d2 Variable that turns ON upon completion of the ...

Страница 75: ...n 0H Current setting value is used 1H to 1A00H Size 0H 1H to 1A00H User s2 6 Send area start address Specify the start address of the send area used for the nonprocedural bidirectional protocol 0H Current setting value is used 400H to 1AFFH 2600H to 3FFFH Start address 0H 400H to 1AFFH 2600H to 3FFFH User s2 7 Send area size Specify the size the number of words of the send area used by the nonproc...

Страница 76: ...ar_ControlData 6 Sets send buffer start address MOVP TRUE H400 Var_ControlData 7 Sets send buffer size MOVP TRUE H600 Var_ControlData 8 Sets receive buffer start address MOVP TRUE H200 Var_ControlData 9 Sets receive buffer size ZP_CSET TRUE U0 1 Var_ControlData Var_Dummy Var_Result Performs initialization END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal complet...

Страница 77: ...ion Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s1 Reception channel number 1 Channel 1 CH1 side 2 Channel 2 CH2 side ANY16 s2 Variable that stores control data Array of ANY16 0 111 Output argument ENO Execution result Bit d1 Dummy ANY16 d2 Variable that turns ON upon completi...

Страница 78: ...start pointer of the table to which the user frame number for constant cycle transmission is set 0 No specification at condition agreement transmission and notification 1 to 100 Start pointer 0 1 to 100 User s2 8 Number of user frame transmissions Specify the number of user frame transmissions outputs for constant cycle transmission 0 No specification at condition agreement transmission and notifi...

Страница 79: ...ransmission 0 to 000AH 0101H to 010AH User s2 19 User frame output start pointer Specify the start pointer of the table to which the user frame number for condition agreement transmission for this block is set 0 No specification at constant cycle transmission and notification 1 to 100 Start pointer 0 1 to 100 User s2 20 Number of user frame transmissions Specify the number of user frame transmissi...

Страница 80: ...o 100 Start pointer 0 1 to 100 User s2 110 Number of user frame transmissions Specify the number of user frame transmissions outputs for condition agreement transmission for this block 0 No specification at constant cycle transmission and notification 1 to 100 Number of transmissions 0 1 to 100 User s2 111 Modem connection data No Specify the data number for modem function connection when making n...

Страница 81: ...ose I O signals are X Y00 to X Y1F Device Item Setting data Setting range Setting side s2 0 Execution type Specify 0H 0 User s2 1 Completion status The instruction completion status is stored 0 Normal completion Other than 0 Error completion error code System s2 2 Request type Specify the request 3 Cancel of the programmable controller CPU monitoring 3 User s2 3 s2 111 For system System Structured...

Страница 82: ...umber of monitoring device Sets number of registered points Sets device code Sets start number of monitoring device Sets number of registered points For bit device specify it in units of words Turns execution flag ON Turns data set flag OFF Registers programmable controller CPU monitoring Turns normal completion flag ON Turns error completion flag ON Turns execution flag OFF ...

Страница 83: ...Sets the 1st block of the CPU monitoring to D100 to D109 MOV TRUE H0A8 Var_ControlData 13 Sets device code MOV TRUE 100 Var_ControlData 14 Sets start number of monitoring device MOV TRUE 0 Var_ControlData 15 MOV TRUE 10 Var_ControlData 16 Sets number of registered points Sets the 2nd block of the CPU monitoring to M0 to M15 MOV TRUE H90 Var_ControlData 22 Sets device code MOV TRUE 0 Var_ControlDat...

Страница 84: ...V TRUE 0 Var_ControlData 0 Sets execution type MOV TRUE 3 Var_ControlData 2 Sets request type ZP_CSET TRUE U0 1 Var_ControlData Var_Dummy Var_Result Cancels programmable controller CPU monitoring END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion SET TRUE Var_Flag_Normal Turns normal completion flag ON ELSE Error completion SET TRUE Var_Flag_Error Turn...

Страница 85: ...e that stores control data Array of ANY16 0 3 s2 Start number of the device that stores read registration data ANY16 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 also turns ON at the time of error completion Array of bit 0 1 Setting data 1 Internal device R ZR J U G Zn Constant Others Bit Word Bit Word s1 s2 d1 Device Item Setting data Se...

Страница 86: ...to 80 Number of bytes of the user frame to be registered Specify any number in the range from 1 to 80 as a dummy when 3 Deleted is selected 1 to 80 User Structured ladder FBD Device Item Setting data Setting range Setting side Registration request pulse Sets registration request Sets user frame number Sets number of registered bytes User frame 0 User frame 1 User frame 2 User frame 3 User frame 4 ...

Страница 87: ... User frame 0 MOV TRUE H3030 Var_Frame 1 User frame 1 MOV TRUE H3030 Var_Frame 2 User frame 2 MOV TRUE H4646 Var_Frame 3 User frame 3 MOV TRUE H3030 Var_Frame 4 User frame 4 TO TRUE 1 H08 H2000 1 Sets write enable in flash ROM side G_PUTE TRUE H08 Var_ControlData Var_Frame 0 Var_Result Registers user frame END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal comple...

Страница 88: ...gument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 3 s2 Start number the device that stores the read registration data ANY16 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 also turns ON at th...

Страница 89: ...n 0 Error completion error code System s1 2 Frame No specification Specify the user frame number 1000 to 1199 User s1 3 Allowable number of bytes for read data Specify the maximum number of bytes for storing the registered data of the read user frame to s2 1 to 80 User Number of registered bytes The number of bytes of the registered data for the read user frame is stored 1 to 80 System Structured ...

Страница 90: ...E 80 Var_ControlData 3 Sets allowable number of bytes for read data FMOV TRUE 0 40 Var_Frame 0 Clears user frame to 0 G_GETE TRUE H08 Var_ControlData Var_Frame 0 Var_Result Reads user frame END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion SET TRUE Var_Flag_Normal Turns normal completion flag ON ELSE Error completion SET TRUE Var_Flag_Error Turns erro...

Страница 91: ...ting condition ZP_UINI Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s Variable that stores control data Array of ANY16 0 9 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 also turns ...

Страница 92: ...ion specifications for CH1 Page 91 s 3 CH1 Transmission specification setting and s 5 CH2 Transmission specification setting 1 0 to 0FFEH s 4 CH1 Communication protocol setting Set the communication protocol for CH1 Page 92 s 4 CH1 Communication protocol setting and s 6 CH2 Communication protocol setting 0 to 8 s 5 CH2 Transmission specification setting Set the transmission specifications for CH2 ...

Страница 93: ...ical parity 4 b3 Even Odd parity OFF 0 Odd ON 1 Even Valid only when parity bit is set to With 5 b4 Stop bit OFF 0 1 ON 1 2 6 b5 Sumcheck code OFF 0 Without ON 1 With 7 b6 Write during RUN OFF 0 Inhibited ON 1 Allowed 8 b7 Setting change OFF 0 Inhibited ON 1 Allowed 9 b15 to b8 Communication speed 0FH 50bps 00H 300bps 01H 600bps 02H 1200bps 03H 2400bps 04H 4800bps 05H 9600bps 06H 14400bps 07H 1920...

Страница 94: ... link setting Setting is possible only for CH1 side s 4 9H Pre defined protocol Pre defined protocol communication Device Bit Description Setting value Position Specified value s 3 b0 OFF CH1 Transmission specification setting Operation setting Independence 07E6H b1 ON Data bit 8 b2 ON Parity bit With b3 OFF Even Odd parity Odd b4 OFF Stop bit 1 b5 ON Sumcheck code With b6 ON Write during RUN Allo...

Страница 95: ...ays sets 0 Clears control data to 0 Sets execution type Sets CH1 transmission specification Sets CH1 communication protocol Sets CH2 transmission specification Sets CH2 communication protocol Switches mode Sets host station number Normal completion Error completion Turns interlock signal for communication stop OFF 1 Turns interlock signal for communication stop ON 1 Process on normal completion Pr...

Страница 96: ...Var_ControlData 3 Sets CH1 transmission specification MOV TRUE H8 Var_ControlData 4 Sets CH1 communication protocol MOV TRUE H7E7 Var_ControlData 5 Sets CH2 transmission specification MOV TRUE H5 Var_ControlData 6 Sets CH2 communication protocol MOV TRUE H1 Var_ControlData 7 Sets host station number ZP_UINI TRUE 00 Var_ControlData Var_Result Switches mode SET TRUE Var_Flag Turns interlock signal f...

Страница 97: ... type Input argument EN Executing condition ANY16 Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 n1 Channel to communicate with other devices 1 Channel 1 CH1 side 2 Channel 2 CH2 side ANY16 n2 Number of consecutive protocol executions 1 to 8 ANY16 s Start number of the device in which control data are stored Array of ANY16 0 17 Out...

Страница 98: ...e setting data and control data contain an error 0 is stored 1 to 8 System s 2 s 9 Executionprotocol number designation Set the first protocol number or functional protocol number to be executed Set the 8th protocol number or functional protocol number to be executed 1 to 128 201 to 207 User s 10 s 17 Verification match receive packet number When the communication type of the first protocol execut...

Страница 99: ...protocol number 1 GP_CPRTCL TRUE H00 2 1 Var_ControlData Var_Result Execute the protocol Communicate in CH2 END_IF IF Var_Result 0 TRUE THEN IF Var_Result 1 FALSE THEN SET TRUE Var_Flag_Normal Normal completion flag ON ELSE SET TRUE Var_Flag_Abnormal Abnormal completion flag ON MOV TRUE Var_ControlData 0 Var_ErrorCode Store the error code END_IF END_IF Store the set value to the send data storage ...

Страница 100: ...D Input output argument Name Description Data type Input argument EN Executing condition Bit Jn Network number of the host station 1 to 239 254 254 Network specified in Valid module during other station access ANY16 Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s Variable that stores control data Array of ANY16 0 4 Output argument...

Страница 101: ...n completion status is stored 0 Normal completion Other than 0 Error completion error code For error codes when target station is anything other than master local module refer to the manual of the target station System s 1 Target station No Specify the station number of the target station 0 to 64 1 0 to 120 User s 2 Access code Attribute code Specify the access code and attribute code of the devic...

Страница 102: ...ce 1 Name Device type Unit Access code 2 Attribute code 2 Bit Word Input relay X Hexadecimal 01H 05H Output relay Y Hexadecimal 02H Internal relay M Decimal 03H Latch relay L Decimal 83H Link relay B Hexadecimal 23H Timer contact T Decimal 09H Timer coil T Decimal 0AH Timer current value T Decimal 0CH Retentive timer contact ST Decimal 89H Retentive timer coil ST Decimal 8AH Retentive timer curren...

Страница 103: ..._ControlData 2 Sets access code and attribute code MOV TRUE 1000 Var_ControlData 3 Sets device number MOV TRUE 10 Var_ControlData 4 Sets number of read points G_RIRD TRUE H04 Var_ControlData D0 Var_Result Performs readout SET TRUE Var_Flag_Exe Turns execution flag ON END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion END_IF RST TR...

Страница 104: ...rgument Name Description Data type Input argument EN Executing condition Bit Jn Network number of the host station 1 to 239 254 254 Network specified in Valid module during other station access ANY16 Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 4 s2 Start number of the device ...

Страница 105: ...uction completion status is stored 0 Normal completion Other than 0 Error completion error code For error codes when target station is anything other than master local module refer to the manual of the target station System s1 1 Target station No Specify the station number of the target station 0 to 64 1 0 to 120 User s1 2 Access code Attribute code Specify the access code and attribute code of th...

Страница 106: ...ce 1 Name Device type Unit Access code 2 Attribute code 2 Bit Word Input relay X Hexadecimal 01H 05H Output relay Y Hexadecimal 02H Internal relay M Decimal 03H Latch relay L Decimal 83H Link relay B Hexadecimal 23H Timer contact T Decimal 09H Timer coil T Decimal 0AH Timer current value T Decimal 0CH Retentive timer contact ST Decimal 89H Retentive timer coil ST Decimal 8AH Retentive timer curren...

Страница 107: ...Var_ControlData 2 Sets access code and attribute code MOV TRUE 1000 Var_ControlData 3 Sets device number MOV TRUE 10 Var_ControlData 4 Sets number of read points G_RIWT TRUE H04 Var_ControlData D0 Var_Result Performs writing SET TRUE Var_Flag_Exe Turns execution flag ON END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion END_IF RST...

Страница 108: ...n Executing condition G_RIRCV GP_RIRCV Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 4 s2 Variable that stores interlock signal Array of ANY16 0 2 Output argument ENO Execution result Bit...

Страница 109: ...on Other than 0 Error completion error code System s1 1 Station No Specify the station number of the intelligent device station 0 to 64 User s1 2 Access code Attribute code Set 0004H 0004H User s1 3 Buffer memory address Specify the start address of the buffer memory 1 User s1 4 Number of read points Specify the number of data to be read in units of words 1 to 480 2 User Device Item Setting data S...

Страница 110: ...rom D40 The interlock signal storage is set to request device RY2 completion device RX2 error code storage device RWr2 and completion mode 1 When the refresh device of the link special register SW is set to SW0 Structured ladder FBD Sets station number Sets access code and attribute code Sets buffer memory address Sets number of read points Sets request device Sets completion device and error code...

Страница 111: ...lockData 0 Sets request device MOV TRUE H202 Var_InterlockData 1 Sets completion device and error code storage area MOV TRUE H1 Var_InterlockData 2 Sets completion mode G_RIRCV TRUE H00 Var_ControlData Var_InterlockData D40 Var_Result Performs readout END_IF IF MEP Var_Flag_Inst TRUE SW83 E FALSE THEN Read request is ON and data link status of station number 63 is OFF rising pulse SET TRUE Var_Fla...

Страница 112: ... Executing condition G_RISEND GP_RISEND Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 4 s2 Variable that stores interlock signal Array of ANY16 0 2 Output argument ENO Execution result Bi...

Страница 113: ... Other than 0 Error completion error code System s1 1 Station No Specify the station number of the intelligent device station 0 to 64 User s1 2 Access code Attribute code Set 0004H 0004H User s1 3 Buffer memory address Specify the start address of the buffer memory 1 User s1 4 Number of write points Specify the number of data to be written in units of words 1 to 480 2 User Device Item Setting data...

Страница 114: ... completion device RX4 error code storage device RWr1 and completion mode 1 When the refresh device of the link special register SW is set to SW0 Structured ladder FBD Sets station number Sets access code and attribute code Sets buffer memory address Sets number of write points Sets request device Sets completion device and error code storage area device Sets completion mode Sets data to be writte...

Страница 115: ...H104 Var_InterlockData 1 Sets completion device and error code storage area device MOV TRUE H1 Var_InterlockData 2 Sets completion mode Sets data to be written to intelligent device station MOV TRUE 11 D10 GP_RISEND TRUE H00 Var_ControlData Var_InterlockData D10 Var_Result Performs writing END_IF IF MEP Var_Flag_Inst TRUE SW83 E FALSE THEN Write request is ON and data link status of station number...

Страница 116: ...t output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 n1 Intelligent device station number 1 to 64 Random access buffer specification FFH ANY16 n2 Offset value of specified intelligent device auto refresh buffer or random access buffer of the master sta...

Страница 117: ...station and stores the data in the devices starting from D0 when X0 turns ON When the refresh device of the link special register SW is set to SW0 Structured ladder FBD ST IF X0 TRUE SW80 0 FALSE THEN GP_RIFR TRUE H04 1 H100 10 D0 Performs readout END_IF Programmable controller CPU Device memory Master module start I O number 40 Auto refresh buffer Intelligent device station station number 1 Buffe...

Страница 118: ...ition G_RITO GP_RITO Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 n1 Intelligent device station number 1 to 64 Random access buffer specification FFH ANY16 n2 Offset value of specified intelligent device auto refresh buffer or random access...

Страница 119: ... master module 400H in the intelligent device station when X0 turns ON When the refresh device of the link special register SW is set to SW0 Structured ladder FBD ST IF X0 TRUE SW80 0 FALSE THEN GP_RITO TRUE H04 1 H100 10 D0 Performs writing END_IF Programmable controller CPU Device memory Master module start I O number 40 Auto refresh buffer Intelligent device station station number 1 Buffer memo...

Страница 120: ... when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 7 s2 Variable that stores slave station setting data Array of ANY16 0 63 s3 Variable that stores reserved station specification data Array of ANY16 0 3 s4 Variable that stores error invalid station specification data Array of ANY16 0 3 s5 Variable that stores send receive and auto refresh bu...

Страница 121: ...s Set the number of retries to be performed to a communication error station 1 to 7 User s1 4 Number of automatic return modules Set the number of slave stations that can be returned in one link scan 1 to 10 User s1 5 Operation specification when CPU is down Specify the data link status when a master station programmable controller CPU error occurs 0 Stop 1 Continue 0 1 User s1 6 Scan mode specifi...

Страница 122: ... number of occupied slave stations is described below 1H 1 station 2H 2 stations 3H 3 stations 4H 4 stations 1 to 4H Setting of slave station type 2 The setting value for the slave station type is described below 0H Ver 1 compatible remote I O station 1H Ver 1 compatible remote device station 2H Ver 1 compatible intelligent device station 5H Ver 2 compatible single remote device station 6H Ver 2 c...

Страница 123: ...f the instruction Precautions The RLPASET instruction is applicable to the QJ61BT11 of which the function version is B and the first five digits of the serial number are 03042 or higher The QJ61BT11N and LJ61BT11 is compatible with the RLPASET instruction Device Item Setting data Setting range Setting side s4 0 s4 3 Specification for 1 to 64 stations 1 Specify the error invalid station 2 0 Not spe...

Страница 124: ...ork parameter to the master module mounted on the I O number X Y00 to X Y1F and starts up the data link Master module X Y00 to 1F Station number 1 Station number 2 Remote I O station error invalid station 1 station occupy Remote I O station reserved station 1 station occupy Station number 3 Local station 1 station occupy ...

Страница 125: ...ion to asynchronous Set delay time specification First module local station 1 station occupy station number 1 Second module Remote I O station 1 station occupy station number 2 Third module Remote I O station 1 station occupy station number 3 Reserved station specification station number 3 Error invalid station specification station number 2 First module local station send buffer 100 words Receive...

Страница 126: ...tion occupy station number 1 MOV TRUE H0102 Var_SlaveStation 1 Second module Remote I O station 1 station occupy station number 2 MOV TRUE H0103 Var_SlaveStation 2 Third module Remote I O station 1 station occupy station number 3 MOV TRUE H4 Var_ReservedStation 0 Reserved station specification station number 3 MOV TRUE H2 Var_ErrorInvalidStation 0 Error invalid station specification station number...

Страница 127: ...escription Data type Input argument EN Executing condition Bit Jn Network number of the host station 1 to 239 254 254 Network specified in Valid module during other station access ANY16 Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 17 s2 Start number of the target station s dev...

Страница 128: ...stem CPU MELSECNET H CC Link IE 0000H Target station CPU host system CPU Specified data are the same as 03FFH 03E0H 2 Multi CPU No 1 target station CPU single CPU system 03E1H 2 Multi CPU No 2 03E2H 2 Multi CPU No 3 03E3H 2 Multi CPU No 4 03FFH 1 Target station CPU host system CPU Ethernet 0000H 03FFH MELSECNET H CC Link IE 0000H 03E0H to 03E3H 03FFH User s1 4 Target station network No Specify the...

Страница 129: ...767 seconds 0 to 32767 User s1 9 Read data length Specify the number of read data Setting values are as follows Ethernet MELSECNET H CC Link IE Field Network 1 to 960 word CC Link IE Controller Network 1 to 8192 word 1 to 8192 User s1 10 Reserved User s1 11 Clock set flag 3 Valid invalid status of the data in the area starting from s1 12 is stored 0 Invalid 1 Valid System s1 12 s1 15 Clock data at...

Страница 130: ...station number 1 host station Structured ladder FBD Sets error completion type Sets channel used by host station Sets target station s CPU type Sets target station network number Sets target station number Sets number of resends Sets monitoring time Sets data length by the word Performs readout Execution finished Normal completion Error completion Stores error code Process on completion of readout...

Страница 131: ...r_ControlData 6 MOV TRUE 0 Var_ControlData 8 Sets monitoring time MOV TRUE 5 Var_ControlData 9 Sets data length by the word MOV TRUE 0 Var_ControlData 10 END_IF IF Var_Flag_Exe TRUE AND SB47 FALSE AND SW0A0 3 FALSE THEN MOV TRUE 5 Var_ControlData 7 Sets number of resends JP_READ TRUE 1 Var_ControlData D250 D700 Var_Result Performs readout END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_...

Страница 132: ... Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 17 s2 Start number of the target station s device from which data are read ANY Output argument ENO Execution result Bit d1 Start number of the host station s device that stores read data ANY16 d2 Variable that turns ON upon completion...

Страница 133: ...Setting data For the control data of the SREAD instruction that reads the word device memory of another station refer to READ instruction The control data of the SREAD instruction are the same as those of the READ instruction Accordingly this section omits the explanation ...

Страница 134: ...d of arguments Structured ladder FBD Sets error completion type Sets channel used by host station Sets target station s CPU type Sets target station network number Sets target station number Sets number of resends Sets monitoring time Sets data length by the word Performs readout Execution finished Normal completion Error completion Stores error code Process on completion of readout Process on nor...

Страница 135: ...olData 6 MOV TRUE 0 Var_ControlData 8 Sets monitoring time MOV TRUE 5 Var_ControlData 9 Sets data length by the word MOV TRUE 0 Var_ControlData 10 END_IF IF Var_Flag_Exe TRUE AND SB47 FALSE AND SW0A0 3 FALSE THEN MOV TRUE 5 Var_ControlData 7 Sets number of resends J_SREAD TRUE 1 Var_ControlData D250 D700 Var_Result Var_Flag Performs readout END_IF IF Var_Result 0 TRUE THEN Execution finished IF Va...

Страница 136: ...cess ANY16 Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 17 s2 Start number of the host station s device that stores write data ANY16 s3 Start number of the target station s device to which data are written ANY Output argument ENO Execution result Bit d1 Variable that turns ON ...

Страница 137: ...relay station on the same network 1 With arrival confirmation Completed when data are written to the target station When 0 Without arrival confirmation is specified even if writing to the target station is completed abnormally in the following cases the processing of the instruction in the host station is completed normally Communication itself was completed normally although the sent data were er...

Страница 138: ...4 Specify this when 254 has been set in Jn 1 to 239 254 User s1 5 Target station No Specify the station number of the target station Setting values are as follows Station number specification MELSECNET H 1 to 64 When the host station is Universal model QCPU in Ethernet or CC Link IE Controller Network 1 to120 When the host station is anything other than Universal model QCPU in Ethernet or CC Link ...

Страница 139: ... values are as follows Ethernet 0 to 16383 0 to TCP retransmission timer value Monitoring is performed by the TCP retransmission timer value TCP retransmission timer value 1 to 16383 Monitoring time unit second MELSECNET H 0 to 32767 0 10 seconds 1 to 32767 1 to 32767 seconds 0 to 32767 User s1 9 Write data length Specify the number of write data Setting values are as follows Ethernet MELSECNET H ...

Страница 140: ...tion Structured ladder FBD Sets execution error completion type Sets channel used by host station Sets target station s CPU type Sets target station network number Sets target station number Sets number of resends Sets monitoring time Sets data length by the word Sets write data to D750 to D753 Performs writing Execution finished Normal completion Error completion Stores error code Process on comp...

Страница 141: ...OV TRUE 4 Var_ControlData 9 Sets data length by the word MOV TRUE 0 Var_ControlData 10 END_IF IF LDP TRUE Var_Flag_Inst2 THEN MOV TRUE 10 D750 Sets write data to D750 to D753 MOV TRUE 20 D751 MOV TRUE 30 D752 MOV TRUE 40 D753 END_IF IF Var_Flag_Exe TRUE AND SB47 FALSE AND SW0A0 2 FALSE THEN MOV TRUE 5 Var_ControlData 7 Sets number of resends JP_WRITE TRUE 1 Var_ControlData D750 D300 Var_Result Per...

Страница 142: ...art I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 17 s2 Start number of the host station s device that stores send data ANY16 d1 Start number of the target station to which data are written ANY Output argument ENO Execution result Bit d2 Variable that turns ON upon completion of the ins...

Страница 143: ...g data For the control data of the SWRITE instruction that writes data to the word device memory of another station refer to WRITE instruction The control data of the SWRITE instruction are the same as those of the WRITE instruction Accordingly this section omits the explanation ...

Страница 144: ...request target station number 3 of the SWRITE instruction Sets execution error completion type Sets channel used by host station Sets target station s CPU type Sets target station network number Sets target station number Sets number of resends Sets monitoring time Sets data length by the word Sets write data to D750 to D753 Performs writing Execution finished Normal completion Error completion St...

Страница 145: ...0 Var_ControlData 10 END_IF IF LDP TRUE Var_Flag_Inst2 THEN MOV TRUE 10 D750 Sets write data to D750 to D753 MOV TRUE 20 D751 MOV TRUE 30 D752 MOV TRUE 40 D753 END_IF IF Var_Flag_Exe TRUE AND SB47 FALSE AND SW0A0 2 FALSE THEN MOV TRUE 5 Var_ControlData 7 Sets number of resends JP_SWRITE TRUE 1 Var_ControlData D750 D300 Var_Result Var_Flag Performs writing END_IF IF Var_Result 0 TRUE THEN Execution...

Страница 146: ...r of the host station 1 to 239 254 254 Network specified in Valid module during other station access ANY16 Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 17 s2 Start number of the host station s device that stores write data ANY16 Output argument ENO Execution result Bit d Varia...

Страница 147: ... reach to a relay station on the same network 1 With arrival confirmation Completed when data are written to the target station When 0 Without arrival confirmation is specified even if writing to the target station is completed abnormally in the following cases the processing of the instruction in the host station is completed normally Communication itself was completed normally although the sent ...

Страница 148: ...net or CC Link IE Controller Network 1 to 64 Master station in CC Link IE Field Network 125 7DH Local station or the intelligent device station in CC Link IE Field Network 1 to 120 To increase the data reliability when the station number is specified executing the instruction with setting Execution Error completion type s1 0 to 1 With arrival confirmation is recommended Group specification target ...

Страница 149: ...ing time unit second MELSECNET H CC Link IE 0 to 32767 0 10 seconds 1 to 32767 1 to 32767 seconds 0 to 32767 User s1 9 Send data length Specify the number of send data 1 to 960 User s1 10 Reserved s1 11 Clock set flag 1 Valid invalid status of the data in the area starting from s1 12 is stored 0 Invalid 1 Valid System s1 12 s1 15 Clock data at the time of error completion 1 Clock data at the time ...

Страница 150: ...ets target station channel Sets target station network number Sets target station number Sets number of resends Sets monitoring time Sets data length by the word Sets send data to D750 to D753 Sends data Execution finished Normal completion Error completion Stores error code Process on completion of sending Process on normal completion Process on error completion ...

Страница 151: ... time MOV TRUE 4 Var_ControlData 9 Sets data length by the word MOV TRUE 0 Var_ControlData 10 END_IF IF Var_Flag_Inst2 TRUE THEN MOV TRUE 10 D750 Sets send data to D750 to D753 MOV TRUE 20 D751 MOV TRUE 30 D752 MOV TRUE 40 D753 END_IF IF Var_Flag_Exe TRUE AND SB47 FALSE AND SW0A0 1 FALSE THEN MOV TRUE 5 Var_ControlData 7 Sets number of resends JP_SEND TRUE 1 Var_ControlData D750 Var_Result Sends d...

Страница 152: ...tion 1 to 239 254 254 Network specified in Valid module during other station access ANY16 Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s Variable that stores control data Array of ANY16 0 17 Output argument ENO Execution result Bit d1 Start number of the host station s device that stores read data ANY16 d2 Variable that turns ON ...

Страница 153: ...elligent device station in CC Link IE Field Network 1 to 120 System s 6 Reserved s 7 Reserved s 8 Arrival monitoring time Specify the monitoring time required for the instruction completion When the instruction is not completed within the monitoring time it completes abnormally Setting values are as follows Ethernet 0 to 16383 0 to TCP retransmission timer value Monitoring is performed by the TCP ...

Страница 154: ... station when SB0034 turns ON For the SEND instruction refer to the following section Message user specified data communication s 17 Error detected station No 1 Number of the station where an error was detected is stored However when an error was detected at the host station the network number is not stored Stored values are as follows MELSECNET H 1 to 64 Ethernet CC Link IE Controller Network 1 t...

Страница 155: ... FALSE THEN JP_RECV TRUE 1 Var_ControlData D770 Var_Result Performs readout END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion IF Var_Result 1 FALSE THEN Normal completion END_IF END_IF Sets error completion type Sets host station channel Sets arrival monitoring time Performs readout Execution finished Normal completion Error comp...

Страница 156: ...utput argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s1 Variable that stores control data Array of ANY16 0 17 s2 Start number of the host station s device that stores read data ANY16 Output argument ENO Execution result Bit d Dummy Bit Setting data 1 Int...

Страница 157: ... 2 1 to 8 User s1 3 Channel used by sending station Channel used by the sending station is stored 1 to 8 Channel System s1 4 Network No of sending station Network number of the sending station is stored 1 to 239 Network number System s1 5 Sending station No Station number of the sending station is stored Stored values are as follows MELSECNET H 1 to 64 Ethernet CC Link IE Controller Network 1 to 1...

Страница 158: ... when an interruption program starts up For the SEND instruction refer to the following section Page 144 Message user specified data communication Structured ladder FBD ST IF SM400 TRUE THEN MOV TRUE H0 Var_ControlData 0 Sets execution error completion type MOV TRUE 5 Var_ControlData 2 Sets host station channel Z_RECVS TRUE 00 Var_ControlData D770 Var_Dummy Performs readout END_IF Sets execution e...

Страница 159: ... Jn Network number of the host station 1 to 239 254 254 Network specified in Valid module during other station access ANY16 Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 17 s2 Variable that stores request data Array of ANY16 0 5 Output argument ENO Execution result Bit d1 Varia...

Страница 160: ...pecified in Valid module during other station access 1 to 239 254 User s1 5 Target station No Specify the station number of the target station Setting values are as follows Station number specification MELSECNET H 1 to 64 When the host station is Universal model QCPU in Ethernet or CC Link IE Controller Network 1 to120 When the host station is anything other than Universal model QCPU in Ethernet o...

Страница 161: ...e number of request data words Number of words of data stored in the request data storage device s2 4 Remote RUN 3 Remote STOP 2 Clock data read 6 Clock data write 2 to 4 6 User s1 10 Response data length Number of response data words are stored Number of words of the data stored in response data storage device 2 Remote RUN STOP 6 Clock data read 2 Clock data write System s1 11 Clock set flag 3 Va...

Страница 162: ...ced execution 0003H Forced execution This setting can be specified for remote RUN For remote STOP 0003H Fixed s2 3 Clear mode Specify the status of device memory in the CPU module only for remote RUN 0000H Not cleared Note that the local devices are cleared 0001H Cleared excluding the latch range and settings in remote RUN 0002H Cleared including the latch range and settings in remote RUN Clear mo...

Страница 163: ...2 2 Change pattern Clock data to be changed Change pattern bit 7 to bit 0 Specify the items to be written in high order byte of s2 2 to s2 5 0 Not changed 1 Changed Year to be changed bit 15 to bit 8 1 Store the year last two digits in BCD format s2 3 Clock data to be changed continued High order 8 bits Day 01H to 31H low order 8 bits Month 01H to 12H s2 4 High order 8 bits Minute 00H to 59H low o...

Страница 164: ... or a group is specified in s1 5 2 d1 1 Sub request type 0002H Clock data read 0001H Clock data write d1 2 Read clock data High order 8 bits Month 01H to 12H low order 8 bits Year 00H to 99H 3 d1 3 High order 8 bits Hour 00H to 23H low order 8 bits Day 01H to 31H d1 4 High order 8 bits Second 00H to 59H low order 8 bits 00H to 59H d1 5 High order 8 bits 00H low order 8 bits Day of week 00H Sunday ...

Страница 165: ... completion type Sets channel used by host station Sets target station s CPU type Sets target station network number Sets target station number Sets number of resends Sets monitoring time Sets data length by the word Sets request data Performs transient request to another station Execution finished Normal completion Error completion Stores error code Process on completion Process on normal complet...

Страница 166: ...ring time MOV TRUE 3 Var_ControlData 9 Sets data length by the word MOV TRUE H10 Var_DemandData 0 Sets request data MOV TRUE H2 Var_DemandData 1 MOV TRUE H3 Var_DemandData 2 END_IF IF Var_Flag_Exe TRUE AND SB47 FALSE AND SW0A0 1 FALSE THEN MOV TRUE 5 Var_ControlData 7 Sets number of resends JP_REQ TRUE 1 Var_ControlData Var_DemandData Var_ResponseData Var_Result Performs transient request to anoth...

Страница 167: ... ANY16 n2 Read data length When the target station is Q QnA AnUCPU 1 to 230 words When the target station is anything other than Q QnA AnUCPU 1 to 32 words ANY16 Output argument ENO Execution result Bit d1 The host station s start device number where readout data will be stored A contiguous area for the read data length is required ANY16 d2 The host station s device that is turned on for one scan ...

Страница 168: ...ithin the range allowed for the host station CPU when reading data from the devices with the ZNRD instruction Target station s start device number s1 where data to be read are stored Read points 1 End device No of host station s CPU 3 Specify the host station s start device number d1 within the range allowed for storing read data Example When D150 and after the area in the host station s CPU has b...

Страница 169: ... FALSE THEN JP_ZNRD TRUE 1 4 D250 5 D700 Var_Result Performs ZNRD instruction END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion END_IF END_IF IF SM400 TRUE THEN MOV TRUE SW30 Var_ErrorCode Stores error code END_IF Performs readout Stores error code Process on completion of readout Process on normal completion Process on error com...

Страница 170: ...er Except the host station ANY16 s Host station s start device number where data to be written are stored ANY16 n2 Write data length When the target station is Q QnA AnUCPU 1 to 230 words When the target station is anything other than Q QnA AnUCPU 1 to 32 words ANY16 Output argument ENO Execution result Bit d1 Target station s start device number where data is written A contiguous area for the wri...

Страница 171: ... host station CPU when writing data to the devices with the ZNWR instruction Target station s start device number d1 where data are written Write points 1 End device No of host station s CPU 3 Specify the host station s start device number d1 within the range allowed for storing write data Example When D150 and after the area in the host station s CPU has been already used 3 End device No of the d...

Страница 172: ...ten to D750 to D753 END_IF IF M112 TRUE SB47 FALSE SW0A0 2 FALSE THEN JP_ZNWR TRUE 1 3 D300 4 D750 Var_Result Performs writing END_IF IF Var_Result 0 TRUE THEN Completion of writing IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion END_IF END_IF IF SM400 TRUE THEN MOV TRUE SW31 Var_ErrorCode Stores error code END_IF Performs writing Stores data to be written to D750 to D753 Stores...

Страница 173: ...ction can go in the dotted squares Z_RRUN_J ZP_RRUN_J Z_RRUN_U ZP_RRUN_U Executing condition Instruction Executing condition Z_RRUN_J Z_RRUN_U ZP_RRUN_J ZP_RRUN_U CC IE C NET H Structured ladder FBD EN ENO Jn d s1 s2 s3 s4 Z_RRUN_J EN ENO Un d s1 s2 s3 s4 Z_RRUN_U ST Z_RRUN_J EN Jn s1 s2 s3 s4 d ENO Z_RRUN_U EN Un s1 s2 s3 s4 d ENO ...

Страница 174: ... used for the RSTOP instruction ANY16 s2 Target station number 1 Station number specification Host station is Universal model QCPU 1 to 120 Host station is anything other than Universal model QCPU 1 to 64 2 Group specification 81H to A0H All stations of a group No 1 to 32 3 All stations FFH All stations of the target network No Except the host station To specify a group or all stations specify 000...

Страница 175: ...UE J1 3 2 H3FF H1 Var_Result Performs remote RUN END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion END_IF END_IF MOV SM400 SW32 Var_ErrorCode Stores error code Performs remote RUN Execution finished Normal completion Error completion Stores error code Process on completion Process on normal completion Process on error completion ...

Страница 176: ... can go in the dotted squares Z_RSTOP_J ZP_RSTOP_J Z_RSTOP_U ZP_RSTOP_U Executing condition Instruction Executing condition Z_RSTOP_J Z_RSTOP_U ZP_RSTOP_J ZP_RSTOP_U CC IE C NET H Structured ladder FBD EN ENO Jn d s1 s2 s3 s4 Z_RSTOP_J EN ENO Un d s1 s2 s3 s4 Z_RSTOP_U ST Z_RSTOP_J EN Jn s1 s2 s3 s4 d ENO Z_RSTOP_U EN Un s1 s2 s3 s4 d ENO ...

Страница 177: ...ion is anything other than Universal model QCPU 1 to 64 2 Group specification 81H to A0H All stations of a group No 1 to 32 3 All stations FFH All stations of the target network No Except the host station ANY16 s3 Target station s CPU type 0000H Target station CPU control CPU host system CPU Specified data are the same as 03FFH 03E0H Multi CPU No 1 target station CPU single CPU system 03E1H Multi ...

Страница 178: ...UE J1 3 2 H3FF H1 Var_Result Performs remote STOP END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion END_IF END_IF MOV SM400 SW32 Var_ErrorCode Stores error code Performs remote STOP Execution finished Normal completion Error completion Stores error code Process on completion Process on normal completion Process on error completio...

Страница 179: ...used by host station ANY16 s2 Target station number Host station is Universal model QCPU 1 to 120 Host station is anything other than Universal model QCPU 1 to 64 ANY16 s3 Target station s CPU type 0000H Target station CPU control CPU host system CPU Specified data are the same as 03FFH 03E0H Multi CPU No 1 target station CPU single CPU system 03E1H Multi CPU No 2 03E2H Multi CPU No 3 03E3H Multi ...

Страница 180: ...g data 1 Internal device R ZR J U G Zn Constant K H Others Bit Word Bit Word s1 s2 s3 d1 d2 Structured ladder FBD ST IF Var_Flag_Exe TRUE AND SB47 FALSE AND SW0A0 1 FALSE THEN ZP_RTMRD_J TRUE J1 4 2 H3FF D300 Var_Result Reads clock data from another station END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion END_IF END_IF MOV SM400...

Страница 181: ...station number 1 Station number specification Host station is Universal model QCPU 1 to 120 Host station is anything other than Universal model QCPU 1 to 64 2 Group specification 81H to A0H All stations of a group No 1 to 32 3 All stations FFH All stations of the target network No Except the host station To specify a group or all stations specify 0000H or 03FFH for the target station s CPU type s3...

Страница 182: ...station Precautions This instruction is applicable to the QJ71LP21 or QJ71BR11 with the function version B or later Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d2 1 also turns ON at the time of error completion Array of bit 0 1 Setting data 1 Internal device R ZR J U G Zn Constant K H Others Bit Word Bit Word s1 s2 s3 s4 d Input output argum...

Страница 183: ...TRUE AND SB47 FALSE AND SB0A0 FALSE THEN ZP_RTMWR_J TRUE J1 5 H0FF H3FF Var_ClockData Var_Result Writes clock data to other stations END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion END_IF END_IF MOV SM400 SW34 Var_ErrorCode Stores error code Sets clock data Execution finished Writes clock data to other stations Normal completio...

Страница 184: ... 1 to 8 ANY16 n2 Target station number CC Link IE Field Network 1 to 120 MELSECNET H 1 to 64 ANY16 n3 Start I O number of the target intelligent function module For the CC Link IE Field Network the higher two digits when expressing the I O number in three digits For the MELSECNET H the higher three digits when expressing the I O number in four digits ANY16 n4 Read buffer memory start address Speci...

Страница 185: ... output values Output argument ENO Execution result Bit d1 Start number of the device that stores read data host station Specifies the start number of the host station s device that stores read data ANY16 d2 Variable that turns ON upon completion of the instruction d2 1 also turns ON at the time of error completion Array of bit 0 1 Setting data 1 Internal device R ZR J U G Zn Constant K H Others B...

Страница 186: ...Var_Result Reads data from buffer memory Reads digital values of CH1 to CH3 at once IF Var_Result 0 TRUE AND Var_Result 1 FALSE THEN IF D10 0 TRUE THEN MOV TRUE D11 D21 Reads CH1 digital output value END_IF IF D10 1 TRUE THEN MOV TRUE D12 D22 Reads CH2 digital output value END_IF IF D10 2 TRUE THEN MOV TRUE D13 D23 Reads CH3 digital output value END_IF END_IF END_IF ...

Страница 187: ...NET H 1 to 8 ANY16 n2 Target station number CC Link IE Field Network 1 to 120 MELSECNET H 1 to 64 ANY16 n3 Start I O number of the target intelligent function module For the CC Link IE Field Network the higher two digits when expressing the I O number in three digits For the MELSECNET H the higher three digits when expressing the I O number in four digits ANY16 n4 Write buffer memory start address...

Страница 188: ...write data host station Specifies the start number of the host station s device that stores write data ANY16 d2 Variable that turns ON upon completion of the instruction d2 1 also turns ON at the time of error completion Array of bit 0 1 Setting data 1 Internal device R ZR J U G Zn Constant K H Others Bit Word Bit Word n1 n2 n3 n4 n5 d1 d2 Structured ladder FBD Input output argument Name Descripti...

Страница 189: ...OV TRUE 1000 D3 CH3 time count averaging setting MOV TRUE H604 D9 Averaging processing specification ZP_REMTO TRUE J1 1 1 H2 H0 10 D0 Var_Result Writes data to buffer memory END_IF IF Var_Result 0 TRUE AND Var_Result 1 FALSE THEN SET TRUE Y1029 Turns operating condition setting request Y9 ON END_IF IF Y1029 TRUE AND X1029 FALSE THEN RST TRUE Y1029 Turns operating condition setting request Y9 OFF E...

Страница 190: ...ng the I O number in three digits ANY16 s1 Variable that stores control data Array of ANY16 0 3 s2 Start number of the host station s device that stores network configuration setting data Array of ANY16 0 599 s3 Start number of the host station s device that stores reserved station specification data Array of ANY16 0 7 s4 Start number of the host station s device that stores error invalid station ...

Страница 191: ...etwork operation setting in the range from b8 to bA Refer to the left User s1 2 Total number of slave station Specify the number of connected slave stations 1 to 120 User s1 3 Constant link scan time Set the constant link scan time 0 No setting 5 to 2000 Constant link scan time 5 to 2000 ms User Network configuration setting data 0 Invalid 1 Valid Reserved station specification data 0 Invalid 1 Va...

Страница 192: ... RWw in units of 4 points 0 to 1024 s2 5 s2 594 s2 595 120th Slave station setting information The same as from s2 0 to s2 4 s2 596 RX RY offset s2 597 RX RY size s2 598 RWr RWw offset s2 599 RWr RWw size Device Item Setting data Setting side s3 0 s3 7 Reserved station specification Specify the reserved station 0 Not specified Default 1 Specified User 1 to 120 Station number 0 Remote I O station 1...

Страница 193: ...ber of slave stations is 3 Device Item Setting data Setting side s4 0 s4 7 Error invalid station setting 1 Specify the error invalid station 0 Not specified Default 1 Specified User 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 64 63 62 61 60 59 58 57 56 55...

Страница 194: ...uction Structured ladder FBD Performs writing Turns execution flag OFF Set control data Process on normal completion Process on error completion Set reserved station specification data Error invalid station specification data Set network configuration setting data ...

Страница 195: ... H2103 Var_NetworkStruct 10 MOV TRUE H40 Var_NetworkStruct 11 MOV TRUE 32 Var_NetworkStruct 12 MOV TRUE H20 Var_NetworkStruct 13 MOV TRUE 16 Var_NetworkStruct 14 END_IF IF Var_Flag_Exe TRUE Execution flag MOV TRUE H4 Var_ReservStData 0 Sets data of reserved station specification END_IF IF Var_Flag_Exe TRUE Execution flag MOV TRUE H4 Var_ErrorInvalidData 0 Sets data of error invalid station setting...

Страница 196: ...t output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 9 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 al...

Страница 197: ...r is not used in communication 1 For receiving 2 Check of existence of the target b1 0 Not checked 1 Checked 3 Pairing open setting b7 0 No pairing open 1 Pairing open 4 Communication method protocol b8 0 TCP IP 1 UDP IP 5 With without procedure in fixed buffer communication b9 0 Procedural communication Nonprocedural communication 6 Open system b15 b14 00 Active open or UDP IP 10 Unpassive open 1...

Страница 198: ...ecessary when the Open settings of GX Works2 is used and 2 is necessary when it is not used Structured ladder FBD Open request signal Connection 1 open request signal Turns execution flag ON when instruction flag is ON Execution type when GX Works2 Open settings is used Execution type when D100 control data is used Application setting Host station port number Destination IP address Destination por...

Страница 199: ...g initialization normal completion signal AND M0 FALSE AND M20 FALSE THEN Connection 1 open completion signal connection 1 open request signal ZP_OPEN TRUE U0 1 D100 Var_Result Opens connection END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion SET TRUE Var_Flag_Normal Turns normal completion flag ON END_IF IF Var_Result 1 TRUE THEN Error completion SE...

Страница 200: ...ent Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 1 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 also turns ON at...

Страница 201: ...data Setting range Setting side s2 0 System area s2 1 Completion status The instruction completion status is stored 0 Normal completion Other than 0 Error completion error code System Structured ladder FBD Connection 1 close timing Turns execution flag ON Turns normal completion flag ON Turns error completion flag ON Turns execution flag OFF Closing connection 1 from external device Close instruct...

Страница 202: ...n 1PLS END_IF IF Var_Flag_Inst2 TRUE AND Var_Flag_Open TRUE Close instruction 1PLS connection 1 open completion signal OR Var_Flag_Close TRUE AND Var_Flag_Exe FALSE THEN Closing connection 1 from external device CLOSE instruction is in execution ZP_CLOSE TRUE U0 1 Var_ControlData Var_Result Closes connection SET TRUE Var_Flag_Exe Turns execution flag ON END_IF IF Var_Result 0 TRUE THEN Execution f...

Страница 203: ... Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 1 Output argument ENO Execution result Bit d1 Start number of the device that stores read data ANY16 d2 Variable that turns ON...

Страница 204: ...ored Data length becomes the number of words or the number of bytes depending on the procedure used in fixed buffer communication With procedure communication in binary code The number of words 1 to 1017 With procedure communication in ASCII code The number of words 1 to 508 Nonprocedural communication communication in binary code The number of bytes 1 to 2046 Refer to the left System d1 1 d1 n Re...

Страница 205: ...in program IF X19 TRUE AND M0 TRUE AND M40 TRUE AND M500 FALSE THEN Initialization normal completion signal connection 1 normal open completion signal Fixed buffer 1 receive status signal receive instruction completion signal PLS TRUE Var_Flag_Exe Receive instruction 1PLS END_IF IF Var_Flag_Exe TRUE THEN Receive instruction 1PLS ZP_BUFRCV TRUE U0 1 Var_ControlData D500 Var_Result Reads data in fix...

Страница 206: ...s used in an interrupt program Instruction Executing condition Z_BUFRCVS Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s Connection number 1 to 16 ANY16 Output argument ENO Execution result Bit d Start number of the device that stores read ...

Страница 207: ...the number of words or the number of bytes depending on the procedure used in fixed buffer communication With procedure communication in binary code The number of words 1 to 1017 With procedure communication in ASCII code The number of words 1 to 508 Nonprocedural communication communication in binary code The number of bytes 1 to 2046 Refer to the left System d1 1 d1 n Receive data Data read from...

Страница 208: ...ent EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 1 s3 Start number of the device that stores write data ANY16 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1...

Страница 209: ...Data length of the data read from the fixed buffer data area is stored Data length becomes the number of words or the number of bytes depending on the procedure used in fixed buffer communication With procedure communication in binary code The number of words 1 to 1017 With procedure communication in ASCII code The number of words 1 to 508 Nonprocedural communication communication in binary code T...

Страница 210: ...E THEN Send instruction 1PLS MOV TRUE 3 D300 Sets data length number of words MOV TRUE 1234 D301 Sets send data MOV TRUE 5678 D302 Sets send data MOV TRUE 8901 D303 Sets send data ZP_BUFSND TRUE U0 1 Var_ControlData D300 Var_Result Sends data in fixed buffer communication END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion END_IF E...

Страница 211: ...uction Executing condition ZP_ERRCLR Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s Variable that stores control data Array of ANY16 0 7 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d...

Страница 212: ...Initial error code 0001H to 0010H Open error code of the corresponding connection 0100H Error log block area 0101H Communication status Status by protocol 0102H Communication status E mail reception status 0103H Communication status E mail transmission status FFFFH Clears all of the above Refer to the left User s 3 Clear function specification Specify the function to be cleared 0000H COM ERR LED i...

Страница 213: ...e Turns execution flag ON END_IF IF Var_Flag_Exe TRUE THEN ZP_ERRCLR TRUE U0 Var_ControlData Var_Result Clears error information END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion MOVP TRUE 0 Var_ErrorCode Clears error code to 0 END_IF IF Var_Result 1 TRUE THEN Error completion MOVP TRUE Var_ControlData 1 Var_ErrorCode Stores error code END_IF RST TRUE...

Страница 214: ...l data Array of ANY16 0 7 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instruction d 1 also turns ON at the time of error completion Array of bit 0 1 Setting data 1 Internal device R ZR J U G Zn Constant Others Bit Word Bit Word s d Device Item Setting data Setting range Setting side s 0 System area s 1 Completion status The instruction completion status...

Страница 215: ...formation SET TRUE Var_Flag_Exe Turns execution flag ON END_IF IF Var_Flag_Exe TRUE THEN ZP_ERRRD TRUE 00 Var_ControlData Var_Result Reads error information END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion MOVP TRUE Var_ControlData 4 Var_ErrorInfo Stores error information END_IF IF Var_Result 1 TRUE THEN Error completion MOVP TRUE Var_ControlData 1 V...

Страница 216: ...ontroller Network module on normal station host station Instruction Executing condition Z_UINI ZP_UINI Input output argument Name Description Data type Input argument EN Executing condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s Variable that stores control data Array of ANY16 0 9 Output argument ENO Execution result...

Страница 217: ...ost station IP address is modified or not To modify the IP address specify the address in s 3 and s 4 0 Not changed 1 Changed 2 Modification specification of operation setting b1 Specify whether the operation setting is modified or not To modify the operation setting specify the operation setting in s 5 0 Not changed 1 Changed 3 Modification specification of transmission speed communication mode b...

Страница 218: ...n example for Ethernet Device Item Setting data Setting range Setting side s 0 Specify 0 0 User s 1 Completion status The instruction completion status is stored 0 Normal completion Other than 0 Error completion error code System s 2 Modification specification Specify the change target 0001H With station number setting 0001H User s 3 Host station No Specify the station number of the host station 1...

Страница 219: ...ion number END_IF IF Var_Flag_Exe TRUE AND SB70 TRUE THEN ZP_UINI TRUE 00 Var_ControlData Var_Result Performs reinitialization END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion ELSE Error completion MOV TRUE Var_ControlData 1 Var_ErrorCode Stores error code END_IF END_IF Process on completion Process on normal completion Process on error completion ...

Страница 220: ... condition Bit Un Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s Variable that stores control data Array of ANY16 0 15 Output argument ENO Execution result Bit d1 Start number of the host station s device that stores the content of the received e mail header attached file ANY16 d2 Variable that turns ON upon completion of the instr...

Страница 221: ...ion completion Data length header attached file of the mail stored in d1 to d1 n is stored 1 to 6517 The number of receive data stored in d1 to d1 n System s 10 Header length For instruction execution Specify the header data length of the mail that can be stored in d1 to d1 n 0 Adjust header data length to that of the received mail 1 to 373 The number of data that can be stored in d1 to d1 n 0 to ...

Страница 222: ...Flag_Exe END_IF IF Var_Flag_Exe TRUE AND U0 G9858 F TRUE THEN MOVP TRUE H200 Var_ControlData 0 Sets to inquire to server MOVP TRUE 0 Var_ControlData 2 Sets to read the first mail MOVP TRUE 0 Var_ControlData 9 Sets to adjust data length to that of the received mail MOVP TRUE 0 Var_ControlData 10 Sets to adjust header data length to that of the received mail ZP_MRECV TRUE 00 Var_ControlData D100 Var...

Страница 223: ...Start I O number of the module 00 to FE Higher two digits when expressing the I O number in three digits String s1 Variable that stores control data Array of ANY16 0 15 s2 Start number of the host station s device that stores the content of the sent e mail subject attached file or subject text ANY16 Output argument ENO Execution result Bit d Variable that turns ON upon completion of the instructio...

Страница 224: ... 0 Normal completion Other than 0 Error completion error code System s1 2 Transmission destination No Specify the external device to which e mails are to be sent by the setting number on Send mail address setting of GX Works2 1 to 16 Setting number of the external device 1 to 16 User s1 3 s1 8 System area s1 9 Send data length Specify the data length subject attached file or subject text of the ma...

Страница 225: ... The I O signals of the Ethernet module are X Y00 to X Y1F Sending the data as an attached file Structured ladder FBD Sets ASCII as send data format Sets subject length Sets subject Sets file to be attached Sets send data length Sends e mail Normal completion Error completion Sets transmission destination number Process on normal completion Process on error completion ...

Страница 226: ...ect length Int_Msg 0 H6574 te Int_Msg 1 H7473 st Int_Msg 2 H616d ma Int_Msg 3 H6c69 il Int_Msg 4 H6d20 m Int_Msg 5 H6573 se Int_Msg 6 H646e nd Sets subject MOVP TRUE H1234 Int_Msg 7 Sets file to be attached MOVP TRUE H5678 Int_Msg 8 MOVP TRUE H9ABC Int_Msg 9 ZP_MSEND TRUE U0 Var_ControlData Int_Msg 0 Var_Result Sends e mail END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE ...

Страница 227: ...g the data as a text Structured ladder FBD Sets text as send data format Sets send data length Sets subject length Sets subject Sets text Sends e mail Sets transmission destination number Normal completion Error completion Process on normal completion Process on error completion ...

Страница 228: ...7473 st Int_Msg 2 H616d ma Int_Msg 3 H6c69 il Int_Msg 4 H6d20 m Int_Msg 5 H6573 se Int_Msg 6 H646e nd Sets subject Int_Msg 7 H7274 Er Int_Msg 8 H6f72 ro Int_Msg 9 H2072 r Int_Msg 10 H614d Ma Int_Msg 11 H6863 ch Int_Msg 12 H6e69 in Int_Msg 13 H3165 e1 Int_Msg 14 H3020 0 Int_Msg 15 H3130 01 Sets text ZP_MSEND TRUE U0 Var_ControlData Int_Msg 0 Var_Result Sends e mail END_IF IF Var_Result 0 TRUE THEN ...

Страница 229: ...ruction enables PID control by registering the PID control data for the number of loops to be used to the CPU module in batch Instruction Executing condition S_PIDINIT SP_PIDINIT Input output argument Name Description Data type Input argument EN Executing condition Bit s Start number of the device that stores PID control data ANY16 Output argument ENO Execution result Bit Setting data Internal dev...

Страница 230: ...ction effect Increasing the integral constant slows down the manipulated value change 1 to 32767 unit 100ms If setting value 30000 TI Infinite 1 to 32767 unit 100ms If setting value 30000 TI Infinite User s 6 Derivative constant TD Constant that expresses the magnitude of the derivative action D action effect Increasing the derivative constant causes a significant change in the manipulated value e...

Страница 231: ...is not limited Even if the PV variation exceeds the limit value the actual PV variation is used as it is for performing the PID operation 0 to 2000 32768 to 32767 User In the case of With PID limits the PID operation is performed after values are replaced as follows If the PVL value is less than 0 the value is clipped to 0 If the PVL value is greater than 2000 the value is clipped to 2000 s 12 Fix...

Страница 232: ...VL s 25 PV change rate limit PVL s 26 Fixed value s 27 Derivative gain KD s 28 Fixed value s 29 Fixed value Setting data for No n loop s m 0 Operational expression selection The same as Setting data for No 1 loop m n 1 14 2 n number of loops s m 1 Sampling cycle TS s m 2 Proportional constant KP s m 3 Integral constant TI s m 4 Derivative constant TD s m 5 Filter coefficient s m 6 MV lower limit M...

Страница 233: ...xact differential Applicable Not applicable CPU module model Inexact differential Exact differential Basic model QCPU The first five digits of the serial number are 04121 or lower The first five digits of the serial number are 04122 or higher High Performance model QCPU The first five digits of the serial number are 05031 or lower The first five digits of the serial number are 05032 or higher Redu...

Страница 234: ...ber specified by s or later and stores the operation result to the automatic manipulated value MV area in the I O data area PID operation is performed in response to the first execution of the PIDCONT instruction after the set sampling cycle time has elapsed Instruction Executing condition S_PIDCONT SP_PIDCONT Input output argument Name Description Data type Input argument EN Executing condition B...

Страница 235: ...peration is performed after values are replaced as follows If PV is less than 50 the value is clipped to 50 If PV is greater than 2050 the value is clipped to 2050 s 12 Automatic manipulated value MV Manipulated value obtained by PID operation The value is output from the D A conversion module to the control target 50 to 2050 32768 to 32767 System s 13 Process value after filtering PVf Process val...

Страница 236: ...y the system I O data area for No 2 loop device s 28 to s 45 s 33 Setting value SV The same as I O data area for No 1 loop s 34 Process value PV s 35 Automatic manipulated value MV s 36 Process value after filtering PVf s 37 Manual manipulated value MVMAN s 38 Manual automatic selection MAN AUTO s 39 Alarm ALARM s 40 s 55 PID control work area reserved by the system I O data area for No n loop s m...

Страница 237: ...xact differential Applicable Not applicable CPU module model Inexact differential Exact differential Basic model QCPU The first five digits of the serial number are 04121 or lower The first five digits of the serial number are 04122 or higher High Performance model QCPU The first five digits of the serial number are 05031 or lower The first five digits of the serial number are 05032 or higher Redu...

Страница 238: ...ct differential Applicable Not applicable Instruction Executing condition S_PIDSTOP S_PIDRUN SP_PIDSTOP SP_PIDRUN Input output argument Name Description Data type Input argument EN Executing condition Bit n Loop number for stop start ANY16 Output argument ENO Execution result Bit Setting data Internal device R ZR J U G Zn Constant K H Others Bit Word Bit Word n CPU module model Inexact differentia...

Страница 239: ... PID control data stored in the devices starting from the device number specified by s Instruction Executing condition S_PIDPRMW SP_PIDPRMW Input output argument Name Description Data type Input argument EN Executing condition Bit n Loop number to be changed ANY16 s Start number of the device that stores PID control data to be changed ANY16 Output argument ENO Execution result Bit Setting data Int...

Страница 240: ... 0 to 30000 unit 10ms 0 to 30000 unit 10ms User s 5 Filter coefficient Set the degree of filtering to be applied to the process value The filtering effect decreases as the value gets closer to 0 0 to 100 0 to 100 User s 6 MV lower limit MVLL Set the lower limit for the manipulated value MV calculated in PID operation in automatic mode If the MV is less than the set lower limit value MVLL the value...

Страница 241: ...less than 0 the value is clipped to 0 If the PVL value is greater than 2000 the value is clipped to 2000 s 10 Fixed value 0 0 User s 11 Derivative gain KD Set a duration delay in action for derivative action As the setting value increases the duration becomes smaller and action becomes closer to exact differential Ideal value KD 8 00 0 to 32767 unit 0 01 If setting value 30000 KD Infinite 0 to 327...

Страница 242: ... PID control by registering the PID control data for the number of loops to be used to the CPU module in batch Instruction Executing condition PIDINIT PIDINITP Input output argument Name Description Data type Input argument EN Executing condition Bit s Start number of the device that stores PID control data ANY16 Output argument ENO Execution result Bit Setting data Internal device R ZR J U G Zn C...

Страница 243: ...on effect Increasing the integral constant slows down the manipulated value change 1 to 32767 unit 100ms If setting value 30000 TI Infinite 1 to 32767 unit 100ms If setting value 30000 TI Infinite User s 6 Derivative constant TD Constant that expresses the magnitude of the derivative action D action effect Increasing the derivative constant causes a significant changes in the manipulated value eve...

Страница 244: ... limit value bit 0 b0 of the alarm device is set to 1 PV variation is not limited Even if the PV variation exceeds the limit value the actual PV variation is used as it is for performing the PID operation 0 to 2000 32768 to 32767 User In the case of With PID limits the PID operation is performed after values are replaced as follows If the PVL value is less than 0 the value is clipped to 0 If the P...

Страница 245: ...s m 2 Proportional constant KP s m 3 Integral constant TI s m 4 Derivative constant TD s m 5 Filter coefficient s m 6 MV lower limit MVLL s m 7 MV upper limit MVHL s m 8 MV change rate limit MVL s m 9 PV change rate limit PVL CPU module model Inexact differential Exact differential Basic model QCPU The first five digits of the serial number are 04121 or lower The first five digits of the serial nu...

Страница 246: ...er specified by s or later and stores the operation result to the automatic manipulated value MV area in the I O data area PID operation is performed in response to the first execution of the PIDCONT instruction after the set sampling cycle time has elapsed Instruction Executing condition PIDCONT PIDCONTP Input output argument Name Description Data type Input argument EN Executing condition Bit s ...

Страница 247: ...eration is performed after values are replaced as follows If PV is less than 50 the value is clipped to 50 If PV is greater than 2050 the value is clipped to 2050 s 12 Automatic manipulated value MV Manipulated value obtained by PID operation The value is output from the D A conversion module to the control target 50 to 2050 32768 to 32767 System s 13 Process value after filtering PVf Process valu...

Страница 248: ... the system I O data area for No 2 loop device s 28 to s 45 s 28 Setting value SV The same as I O data area for No 1 loop s 29 Process value PV s 30 Automatic manipulated value MV s 31 Process value after filtering PVf s 32 Manual manipulated value MVMAN s 33 Manual automatic selection MAN AUTO s 34 Alarm ALARM s 35 s 45 PID control work area reserved by the system I O data area for No n loop s m ...

Страница 249: ...act differential Applicable Not applicable CPU module model Inexact differential Exact differential Basic model QCPU The first five digits of the serial number are 04121 or lower The first five digits of the serial number are 04122 or higher High Performance model QCPU The first five digits of the serial number are 05031 or lower The first five digits of the serial number are 05032 or higher Redun...

Страница 250: ...ifferential Applicable Not applicable Instruction Executing condition PIDSTOP PIDRUN PIDSTOPP PIDRUNP Input output argument Name Description Data type Input argument EN Executing condition Bit n Loop number for stop start ANY16 Output argument ENO Execution result Bit Setting data Internal device R ZR J U G Zn Constant K H Others Bit Word Bit Word n CPU module model Inexact differential Exact diff...

Страница 251: ... PID control data stored in the devices starting from the device number specified by s Instruction Executing condition PIDPRMW PIDPRMWP Input output argument Name Description Data type Input argument EN Executing condition Bit n Loop number to be changed ANY16 s Start number of the device that stores PID control data to be changed ANY16 Output argument ENO Execution result Bit Setting data Interna...

Страница 252: ...rget 0 to 30000 unit 10ms 0 to 30000 unit 10ms User s 5 Filter coefficient Set the degree of filtering to be applied to the process value The filtering effect decreases as the value gets closer to 0 0 to 100 0 to 100 User s 6 MV lower limit MVLL Set the lower limit for the manipulated value MV calculated in PID operation in automatic mode If the MV is less than the set lower limit value MVLL the v...

Страница 253: ...eds the limit value the actual PV variation is used as it is for performing the PID operation 0 to 2000 32768 to 32767 User In the case of With PID limits the PID operation is performed values are replaced as follows If the PVL value is less than 0 the value is clipped to 0 If the PVL value is greater than 2000 the value is clipped to 2000 CPU module model Inexact differential Exact differential B...

Страница 254: ...n Executing condition SP_SOCOPEN Input output argument Name Description Data type Input argument EN Executing condition Bit Un Dummy U0 String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 9 Output argument ENO Execution result Bit d Variable that turns ON during one scan upon completion of the instruction d 1 also turns ON at the time of error completion...

Страница 255: ...s the settings of control data s2 2 to s2 9 0000H 8000H User s2 1 Completion status The instruction completion status is stored 0 Normal completion Other than 0 Error completion error code System s2 2 Application setting area 1 Communication method protocol b8 0 TCP IP 1 UDP IP 2 With without procedure in socket communication function b9 1 Nonprocedural communication 3 Open system b15 b14 00 Activ...

Страница 256: ...completion type to 0H SP_SOCOPEN TRUE 00 1 Var_ControlData Var_Result Establishes the connection number 1 END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion SET FALSE Var_Flag_Normal Turns normal completion flag ON ELSE Error completion SET TRUE Var_Flag_Error Turns error completion flag ON END_IF END_IF Sets execution type completion type to 0H Establ...

Страница 257: ... Input output argument Name Description Data type Input argument EN Executing condition Bit Un Dummy U0 String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 1 Output argument ENO Execution result Bit d Variable that turns ON during one scan upon completion of the instruction d 1 also turns ON at the time of error completion Array of bit 0 1 Setting data I...

Страница 258: ... FBD ST IF LDF TRUE SD1282 0 SD1284 0 TRUE THEN When open completion signal turns OFF PLS TRUE Var_Flag Turns flag ON END_IF IF LDP TRUE Var_Flag_Inst SD1282 0 OR Var_Flag NOT Var_Flag_Exe THEN SP_SOCCLOSE TRUE 00 1 Var_ControlData Var_Result Shuts off the connection number 1 SET TRUE Var_Flag_Exe Turns execution flag ON ELSE SP_SOCCLOSE FALSE 00 1 Var_ControlData Var_Result SET FALSE Var_Flag_Exe...

Страница 259: ...xecuting condition SP_SOCRCV Input output argument Name Description Data type Input argument EN Executing condition Bit Un Dummy U0 String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 1 Output argument ENO Execution result Bit d1 Start number of the device that stores receive data ANY16 d2 Variable that turns ON during one scan upon completion of the ins...

Страница 260: ...ng side d1 0 Receive data length Data length of the data read from the socket communication receive data area is stored number of bytes 0 to 2046 System d1 1 to d1 n Receive data Data read from the socket communication receive data area are stored in ascending address order System Structured ladder FBD ST IF Var_Flag_Inst TRUE SD1282 0 TRUE SD1286 0 TRUE Var_Result 0 FALSE THEN SP_SOCRCV TRUE U0 1...

Страница 261: ...tion S_SOCRCVS Input output argument Name Description Data type Input argument EN Executing condition Bit Un Dummy U0 String s Connection number 1 to 16 ANY16 Output argument ENO Execution result Bit d Start number of the device that stores receive data ANY16 Setting data Internal device R ZR J U G Zn Constant K H Others Bit Word Bit Word s d Device Item Setting data Setting range Setting side d 0...

Страница 262: ...rogram example The following program reads data received from the external device Structured ladder FBD ST IF Var_Flag_Inst TRUE SD1282 0 TRUE SD1286 0 TRUE THEN S_SOCRCVS TRUE U0 1 D5000 Reads data from the connection number 1 END_IF Reads data from the connection number 1 ...

Страница 263: ...ent Name Description Data type Input argument EN Executing condition Bit Un Dummy U0 String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 1 s3 Start number of the device that stores send data ANY16 Output argument ENO Execution result Bit d Variable that turns ON during one scan upon completion of the instruction d 1 also turns ON at the time of error com...

Страница 264: ... than L02SCPU and L02SCPU P Device Item Setting data Setting range Setting side s2 0 System area s2 1 Completion status The instruction completion status is stored 0 Normal completion Other than 0 Error completion error code System Device Item Setting data Setting range Setting side s3 0 Send data length Data length of the data read from the fixed buffer data area is stored number of bytes 0 to 20...

Страница 265: ...nd data MOVP TRUE 5678 Var_SendData 2 MOVP TRUE 8901 Var_SendData 3 SP_SOCSND TRUE 00 1 Var_ControlData Var_SendData 0 Var_Result Sends data to the connection number 1 END_IF IF Var_Result 0 TRUE THEN Execution finished IF Var_Result 1 FALSE THEN Normal completion SET FALSE Var_Flag_Normal Turns normal completion flag ON ELSE Error completion SET TRUE Var_Flag_Error Turns error completion flag OFF...

Страница 266: ...g condition SP_SOCCINF Input output argument Name Description Data type Input argument EN Executing condition Bit Un Dummy U0 String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 1 Output argument ENO Execution result Bit d Variable that stores connection information Array of ANY16 0 4 Setting data Internal device R ZR J U G Zn Constant K H Others Bit Wor...

Страница 267: ...ide d 0 d 1 Destination IP address The IP address of the external device is stored 1H to FFFFFFFFH 0H No destination FFFFFFFFH broadcast System d 2 Destination port No The port number of the external device is stored 1H to FFFFH FFFFH broadcast System d 3 Host station port No The port number of the host station is stored 1H to 1387H 1392H to FFFEH System d 4 Application setting area 1 Communicatio...

Страница 268: ...on number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 4 Output argument ENO Execution result Bit Setting data Internal device R ZR J U G Zn Constant K H Others Bit Word Bit Word s1 s2 Device Item Setting data Setting range Setting side s2 0 System area s2 1 Completion status The instruction completion status is stored 0 Normal completion Other than 0 Error completion error ...

Страница 269: ...tion IP address and port number of the connection number 1 which is being open Structured ladder FBD ST IF LDP TRUE Var_Flag_Inst SD1282 0 TRUE THEN MOVP TRUE H55DE Var_ControlData 2 MOVP TRUE H0A61 Var_ControlData 3 Sets destination IP address to 10 97 85 222 MOVP TRUE H2001 Var_ControlData 4 Sets destination port number to 8193 SP_SOCCSET TRUE U0 1 Var_ControlData Changes the setting of the conn...

Страница 270: ...onnection and receive data size Instruction Executing condition SP_SOCRMODE Input output argument Name Description Data type Input argument EN Executing condition Bit Un Dummy U0 String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 3 Output argument ENO Execution result Bit Setting data Internal device R ZR J U G Zn Constant K H Others Bit Word Bit Word s...

Страница 271: ...hes 256 bytes Device Item Setting data Setting range Setting side s2 0 System area s2 1 Completion status The instruction completion status is stored 0 Normal completion Other than 0 Error completion error code System s2 2 TCP Receive Mode 1 Specify the TCP receive mode 0 TCP normal receive mode 1 TCP fixed length receive mode 0 1 User s2 3 Receive Data Size Specify the receive data size of the so...

Страница 272: ...stores it Instruction Executing condition S_SOCRDATA SP_SOCRDATA Input output argument Name Description Data type Input argument EN Executing condition Bit Un Dummy U0 String s1 Connection number 1 to 16 ANY16 s2 Variable that stores control data Array of ANY16 0 1 n Number of read data 1 to 1024 words ANY16 Output argument ENO Execution result Bit d Variable that stores read data ANY16 Setting da...

Страница 273: ...ollowing program reads the receive data length of the connection number 1 Device Item Setting data Setting range Setting side s2 0 System area s2 1 Completion status The instruction application status is stored 0 Normal completion Other than 0 Error completion error code System Structured ladder FBD ST IF Var_Flag_Inst TRUE SD1282 0 TRUE SD1286 0 TRUE THEN SP_SOCRDATA TRUE 00 1 Var_ControlData 1 V...

Страница 274: ... previously set in GX Works2 and starts the specified axis refer to the following IPPSTRT1 P Axis 1 IPPSTRT2 P Axis 2 Program example The following program starts the Positioning Data No 1 of the Axis 1 when M0 turns ON Instruction Executing condition IPPSTRT1 IPPSTRT2 IPPSTRT1P IPPSTRT2P Input output argument Name Description Data type Input argument EN Executing condition Bit n Positioning data ...

Страница 275: ...ing of the specified axis refer to the following using the data stored in the devices starting from s IPDSTRT1 P Axis 1 IPDSTRT2 P Axis 2 Instruction Executing condition IPDSTRT1 IPDSTRT2 IPPSTRT1P IPDSTRT2P Input output argument Name Description Data type Input argument EN Executing condition Bit s Start number of the device in which the control data are stored Array of ANY16 0 7 Output argument ...

Страница 276: ... position switching control forward RUN 4 Speed position switching control reverse RUN 5 Current value change 6 Speed control forward RUN 7 Speed control reverse RUN 1 to 7 User s 1 Acceleration deceleration time 0 to 32767 ms s 2 Deceleration stop time 0 to 32767 ms s 3 Dwell time 0 to 65535 ms 1 s 4 Command speed 0 to 200000 pulse s 2 s 5 s 6 Positioning address movement amount 2147483648 to 214...

Страница 277: ...ample The following program simultaneously starts the axis 1 positioning data No 1 and the axis 2 positioning data No 10 when M0 turns ON Instruction Executing condition IPSIMUL IPSIMULP Input output argument Name Description Data type Input argument EN Executing condition Bit n1 Axis 1 positioning data number ANY16 n2 Axis 2 positioning data number ANY16 Output argument ENO Execution result Bit S...

Страница 278: ... Input output argument Name Description Data type Input argument EN Executing condition Bit s Start number of the device in which the control data are stored Array of ANY16 0 2 Output argument ENO Execution result Bit Setting data Internal device R ZR J U G Zn Constant Others Bit Word Bit Word s Device Item Setting data Setting range Setting side s 0 OPR type 1 Machine OPR 2 Fast OPR OP address 3 ...

Страница 279: ...edicated Instruction 277 8 Program example The following program starts the machine OPR of the axis 1 when M0 turns ON Device Item Setting data D0 OPR type Machine OPR D1 D2 Standby address 0 Ignored Structured ladder FBD ST MOV M0 1 D0 DMOV M0 0 D1 IPOPR1P M0 D0 ...

Страница 280: ...e may be applied when the set value of the JOG speed is not within 0 to 200000 Instruction Executing condition IPJOG1 IPJOG2 Input output argument Name Description Data type Input argument EN Executing condition Bit s1 Start number of the device in which the control data are stored Array of ANY16 0 3 s2 Direction specification of the JOG operation 0 Forward RUN 1 Reverse RUN Bit Output argument EN...

Страница 281: ...rd JOG operation when M0 turns ON and starts the reverse JOG operation when M1 turns ON Device Item Setting data D0 D1 JOG speed 10000 pulse s D2 JOG acceleration time 1000 ms D3 JOG deceleration time Structured ladder FBD ST DMOV SM402 10000 D0 MOV SM402 1000 D2 MOV SM402 1000 D3 OUT M0 M2 OUT M1 M3 IPJOG1 M2 AND NOT M3 OR NOT M2 AND M3 D0 M3 ...

Страница 282: ...ervo amplifier Instruction Executing condition IPABRST1 IPABRST2 Input output argument Name Description Data type Input argument EN Executing condition Bit s Start number of the device for input Array of bit 0 2 Output argument ENO Execution result Bit d Start number of the device for output Array of bit 0 2 Setting data Internal device R ZR J U G Zn Constant Others Bit Word Bit Word s d Device It...

Страница 283: ...Instruction 281 8 Program example This instruction executes the absolute position restoration of the axis 1 when M0 turns ON X20 to X22 Signals imported from the servo amplifier Y30 to Y32 Signals exported to the servo amplifier Structured ladder FBD ST IPABRST1 M0 X20 Y30 ...

Страница 284: ...pecified axis refer to the following IPSTOP1 Axis 1 IPSTOP2 Axis 2 Program example The following program stops the axis 1 when M0 turns ON Instruction Executing condition IPSTOP1 IPSTOP2 Input output argument Name Description Data type Input argument EN Executing condition Bit Output argument ENO Execution result Bit Setting data Internal device R ZR J U G Zn Constant Others Bit Word Bit Word Stru...

Страница 285: ... The restricted speed value may be applied when the set value of the new speed is not within 0 to 200000 Instruction Executing condition IPSPCHG1 IPSPCHG2 IPSPCHG1P IPSPCHG2P Input output argument Name Description Data type Input argument EN Executing condition Bit s Start number of the device in which the control data are stored Array of ANY16 0 3 Output argument ENO Execution result Bit Setting ...

Страница 286: ...g program changes the speed of the axis 1 when M0 turns ON Device Item Setting data D0 Acceleration deceleration time at speed change 2000 ms D1 Deceleration stop time at speed change 1000 ms D2 D3 New speed value 200000 pulse s Structured ladder FBD ST MOV M0 2000 D0 MOV M0 1000 D1 DMOV M0 20000 D2 IPSPCHG1P M0 D0 ...

Страница 287: ...PTPCHG2 P Axis 2 Setting data Instruction Executing condition IPTPCHG1 IPTPCHG2 IPTPCHG1P IPTPCHG2P Input output argument Name Description Data type Input argument EN Executing condition Bit s Target position change value constant or start number of the device in which the control data are stored ANY32 Output argument ENO Execution result Bit Setting data Internal device R ZR J U G Zn Constant Oth...

Страница 288: ... O FUNCTION INSTRUCTION 8 1 Positioning Function Dedicated Instruction Program example The following program changes the target position of the axis 1 to 2000 when M0 turns ON Structured ladder FBD ST IPTPCHG1P M0 2000 ...

Страница 289: ... following Program example The following program stores the most recent value to the CH 1 current value SD1880 SD1881 when M0 turns ON Instruction Executing condition ICCNTRD1 ICCNTRD2 ICCNTRD1P ICCNTRD2P Input output argument Name Description Data type Input argument EN Executing condition Bit Output argument ENO Execution result Bit Setting data Internal device R ZR J U G Zn Constant Others Bit ...

Страница 290: ... type Input argument EN Executing condition Bit s1 Ring counter lower limit value constant or start number of the device that stores the ring counter lower limit value Constant Settings which is within the range of 2147483648 to 2147483647 and s1 s1 1 s2 s2 1 Device Within the range of specified device ANY32 s2 Ring counter upper limit value constant or start number of the device that stores the r...

Страница 291: ...unction Dedicated Instruction 289 8 Program example The following program sets 100000 for the ring counter lower limit value and 100000 for the ring counter upper limit value of CH 1 when M0 turns ON Structured ladder FBD ST ICRNGWR1P M0 100000 100000 ...

Страница 292: ...reset value of CH 1 when M0 turns ON Instruction Executing condition ICPREWR1 ICPREWR2 ICPREWR1P ICPREWR2P Input output argument Name Description Data type Input argument EN Executing condition Bit s Preset value constant or start number of the device that stores the preset value Constant Settings which is within the range of 2147483648 to 2147483647 Device Within the range of specified device ANY...

Страница 293: ...xample The following program stores the latch count value 1 of CH 1 to D100 and D101 when M0 turns ON Instruction Executing condition ICLTHRD1 ICLTHRD2 ICLTHRD1P ICLTHRD2P Input output argument Name Description Data type Input argument EN Executing condition Bit n Latch count value 1 2 ANY16 Output argument ENO Execution result Bit d Start number of the device in which the latch count value is sto...

Страница 294: ...D2 P CH2 Program example The following program stores the sampling count value of CH 1 to D100 and D101 when M0 turns ON Instruction Executing condition ICSMPRD1 ICSMPRD2 ICSMPRD1P ICSMPRD2P Input output argument Name Description Data type Input argument EN Executing condition Bit Output argument ENO Execution result Bit d Start number of the device in which the sampling count value is stored ANY3...

Страница 295: ...int of CH 1 when M0 turns ON Instruction Executing condition ICCOVWR1 ICCOVWR2 ICCOVWR1P ICCOVWR2P Input output argument Name Description Data type Input argument EN Executing condition Bit n Coincidence output No n point 1 2 ANY16 s Coincidence output No n point constant or start number of the device in which coincidence output No n point is stored Constant Settings which is within the range of 2...

Страница 296: ...nstruction execution The measurement starts at the rising pulse of the ICFCNT instruction execution command and ends at the falling pulse Program example The following program executes the frequency measurement of CH 1 while M0 is ON Instruction Executing condition ICFCNT1 ICFCNT2 Input output argument Name Description Data type Input argument EN Executing condition Bit Output argument ENO Executi...

Страница 297: ...uction execution The measurement starts at the rising pulse of the ICRCNT instruction execution command and ends at the falling pulse Program example The following program stores the rotation speed measurement value of CH 1 to D100 and D101 while M0 is ON Instruction Executing condition ICRCNT1 ICRCNT2 Input output argument Name Description Data type Input argument EN Executing condition Bit Outpu...

Страница 298: ...RD2 P CH2 Program example The following program stores the measured pulse value of CH 1 to D100 and D101 when M0 turns ON Instruction Executing condition ICPLSRD1 ICPLSRD2 ICPLSRD1P ICPLSRD2P Input output argument Name Description Data type Input argument EN Executing condition Bit Output argument ENO Execution result Bit d Start number of the device that stores the measured pulse value ANY32 Sett...

Страница 299: ...t Name Description Data type Input argument EN Executing condition Bit s1 PWM output ON time setting value constant or start number of the device that stores the PWM output ON time setting value Constant Settings which is 0 or within the range of 10 to 107 0 1 s and s1 s1 1 s2 s2 1 Device Within the range of specified device ANY32 s2 PWM output cycle time setting value constant or start number of ...

Страница 300: ...TION INSTRUCTION 8 2 Counter Function Dedicated Instruction Program example The following program outputs the PWM waveform with 1 s ON time and 5 s cycle time from CH 1 while M0 is ON Structured ladder FBD ST ICPWM1 M0 10 50 ...

Страница 301: ... squares LOGTRG LOGTRGR Executing condition Argument Instruction Executing condition LOGTRG LOGTRGR Input output argument Name Description Data type Input argument EN Executing condition Bit n Data logging configuration number ANY16 Output argument ENO Execution result Bit Setting data Internal device R ZR J U G Zn Constant Others Bit Word Bit Word K H n QnUDV LCPU ST LOGTRG EN ENO n LOGTRG EN n E...

Страница 302: ...mber specified by n turns OFF When the instruction is executed while transferring data in the buffer memory to the SD memory card the instruction process is held until data transfer is complete Operation error In the following case an operation error occurs the error flag SM0 is turned ON and the corresponding error code is stored to SD0 Precautions Use the LCPU other than L02SCPU and L02SCPU P Pr...

Страница 303: ... number where the number of comments to read or the number of comments is stored ANY16 n3 The number of comments to read in a single scan or device number where the number of comments is stored ANY16 Output argument ENO Execution result Bit d1 The first number of device that stores comment read ANY16 d2 A device that turns ON for 1 scan at completion of the instruction Bit Setting data Internal de...

Страница 304: ...Universal CPU use the first five digits of the serial number are 12052 or higher Q00UJCPU Q00UCPU Q01UCPU and Q02UCPU can not be used Program example This program reads 2 comments being activated at the SFC block No 1 when X1 is turned ON and stores those to the storage device after D0 The number of comment to be read n3 in a single scan is also set in 2 Structured ladder FBD ST IF Var_Flag_Exe TR...

Страница 305: ...ng condition Bit n1 Block No of an SFC program that read comments or device number where block No is stored ANY16 n2 The device number where the number of comments to read or the number of comments is stored ANY16 n3 The number of comments to read in a single scan or device number where the number of comments is stored ANY16 Output argument ENO Execution result Bit d1 The first number of device th...

Страница 306: ...PU Q01UCPU and Q02UCPU can not be used Program example This program reads 2 comments being activated at the SFC block No 1 when X1 is turned ON and stores those to the storage device after D0 The number of comment to be read n3 in a single scan is also set in 2 Structured ladder FBD ST IF Var_Flag_Exe TRUE SM735 FALSE THEN Online program change execution command SET TRUE Var_Flag Online program ch...

Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...

Страница 308: ...sal model QCPU 9 How to read instructions 31 I I O number of module 29 IEC61131 3 9 Instruction tables 15 L LCPU 9 M MELSECNET H 9 Modules and versions applicable to instructions 13 N Network dedicated instruction 19 Network number 29 P Personal computer 9 PID control instruction 23 PID control instruction exact differential 23 Positioning function dedicated instruction 25 Positioning instruction ...

Страница 309: ...I 307 MEMO ...

Страница 310: ...CRNGWR2 P 288 ICSMPRD1 P 292 ICSMPRD2 P 292 IPABRST1 280 IPABRST2 280 IPDSTRT1 P 273 IPDSTRT2 P 273 IPJOG1 278 IPJOG2 278 IPOPR1 P 276 IPOPR2 P 276 IPPSTRT1 P 272 IPPSTRT2 P 272 IPSIMUL P 275 IPSPCHG1 P 283 IPSPCHG2 P 283 IPSTOP1 282 IPSTOP2 282 IPTPCHG1 P 285 IPTPCHG2 P 285 J J P _READ 125 J P _RECV 150 J P _REQ 157 J P _RIRD 98 J P _RIWT 102 J P _SEND 144 J P _SREAD 130 J P _SWRITE 140 J P _WRIT...

Страница 311: ...RST2 39 Z_ABRST3 39 Z_ABRST4 39 Z_BUFRCVS 66 204 ZP_BUFRCV 201 ZP_BUFSND 206 ZP_CLOSE 198 ZP_CSET 64 72 75 ZP_ERRCLR 209 ZP_ERRRD 212 ZP_MRECV 218 ZP_MSEND 221 ZP_OPEN 194 ZP_PFWRT 47 ZP_PINIT 49 ZP_PSTRT1 43 ZP_PSTRT2 43 ZP_PSTRT3 43 ZP_PSTRT4 43 ZP_TEACH1 45 ZP_TEACH2 45 ZP_TEACH3 45 ZP_TEACH4 45 ZP_UINI 89 Z_RECVS 154 ...

Страница 312: ...5ENG K Due to the transition to the e Manual the details of revision have been deleted February 2017 SH NA 080785ENG L Complete revision layout change This manual confers no industrial property rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result o...

Страница 313: ...been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could have been avoided if consumable parts battery backlight fuse etc designated in the instruction manual had been correctly serviced or replaced 5 Failure caused by external irresistible forces such as fir...

Страница 314: ...er Windows Vista and Windows XP are either registered trademarks or trademarks of Microsoft Corporation in the United States and or other countries The company names system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies In some cases trademark symbols such as or are not specified in this manual SH NA 080785ENG L ...

Страница 315: ......

Страница 316: ...ithout notice When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN ...

Отзывы: