Download "user manual"
Transcript
3-46 7. PLC2Way User Log Read for YOKOGAWA’s PLC The user log set with YOKOGAWA’s PLC “FA-M3/FA-M3R” connected at the MJ port can be read using the macro command TEMP_CTL. Macro [TEMP_CTL] This macro command controls the operation set in the memory addresses starting from the one specified for F0 for the number of words specified for F1. Usable Devices PLC Memory Internal Memory Constant (Words) Indirect Designation Memory Card F0 F1 TEMP_CTL: Temperature controller/PLC2Way control function TEMP_CTL F0 F1 F0 (= $u n) n n+1 User log Port CPU No. −1*1 registration number (0 - 3) number read n+2 Command 0 “n”th user log Port CPU No. −1*1 read number (0 - 3) Command 1 to 63 F1 n+4 n+5 n+6 n+7 n+8 n+9 n + 10 n + 11 Words − − − − − − − − 3 Header 0: Normal −1: Error*3 Year Month Day Hour Main code Sub code 3 Header 0: Normal −1: Error*3 Year Command Registration −1 number*2 Port CPU No. −1*1 number (0 - 3) Latest user log read n+3 Minute Second (ASCII) Month Day Hour (ASCII) (DEC) Minute Second Main code Sub code 3 (DEC) Return data: Data stored from PLC2Way → V7 series *1 Set “0” for CPU No. 1. *2 The registration number is stored in special register Z105. *3 If there is no user log in the “n + 2” memory or there is an error in communications, [−1] is stored.