 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
brindha Junior

Joined: 17 Oct 2017 Posts: 1
|
Posted: 08/06/2018 07:56 Post subject: Unable to read&write LC operand in Mitsubishi IQF PLC |
|
|
I am Unable to read & write Long Counter (64-Bit) operand in Mitsubishi IQF PLC(FX5U-32M Series) using Ethernet.
All other operands are working fine apart from LC.
This is my 3E Telegram Request structure for iQF PLC.
typedef struct
{
SR_UINT16 SubHeader; ///< 2 bytes - Specify Request (5000H) / Response (D000H)
SR_UINT8 NetworkNo; ///< 1 byte - Network number (always 0 - no routing)
SR_UINT8 PCNumber; ///< 1 byte - PC number (0xFF local , no routing)
SR_UINT16 ModuleIO; ///< 2 bytes - Destination IO number : always 0x3FF
SR_UINT8 StationNo; ///< 1 byte - Requested Station number : always 0
SR_UINT16 TelegramLen; ///< 2 bytes - Length of the telegram
SR_UINT16 Reserved; ///< 2 bytes - Reserved for future use.
SR_UINT16 Command; ///< 2 bytes - Command - Specify Read / Write operation
SR_UINT16 SubCommand; ///< 2 bytes - Sub command - Speciry Bit / Batch operation
SR_UINT8 DataAddress[3]; ///< 3 bytes - The starting address of PLC to read / write
SR_UINT8 DataTypeCode; ///< 1 byte - File types code - X, Y, M, B, F, W, T, C, D
SR_UINT16 ReqUnitLength; ///< 2 Byte - Number of units requested
SR_UINT8 Data[DATA_LEN]; ///< N Bytes - Data to send
}TelegramReq;
I have compared the telegram structure for 'W' operand and LC. W is working fine and can see the only difference between them are address and device code. Attached the snapshot of the same.
Also, I did necessary modification in PLC side to configure LC operand using GX work3.
PLC is responding with error code C05C.
C05C Error code description: The request data is incorrect. (e.g. reading or writing data in units of bits from or to a word device.
Correct the request data and resend it to the CPU module. (e.g. subcommand correction)
Please help me, in case I am missing something in telegram request structure.
[url=http://www.99poze.ro/p/09d7e1fd915451bd950dc5203c6d628d.jpg] [/url]+ |
|
| Back to top |
|
 |
vyr Junior

Joined: 06 Jun 2018 Posts: 1
|
Posted: 08/06/2018 22:00 Post subject: |
|
|
This library contains FBs providing Ethernet Socket communication (TCP/IP & UDP/IP), as well as SLMP Protocol and MC Protocol (A compatible 1E frames) communication for the MELSEC FX5U CPU built-in Ethernet port.
https://www.datafilehost.com/d/ad0734cd |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|