Are these literal ICMP PING commands that you want to send to a general-purpose Ethernet device, or are you just trying to verify the network presence of a Rockwell Automation or other EtherNet/IP protocol device ?
I use MSG instructions that send the "List Identity" service to verify the presence of devices my controller is otherwise not logically connected to.
Which model of CompactLogix are you using ? The modern 5370-series have the ability to perform some Socket Interface features, but the older 1769-L32E and -L35E and their siblings don't.
The reference manual for the ControlLogix/CompactLogix Socket Interface feature is Publication ENET-AT002, available from the RA Literature Library.