Codework
A codework weapon functions similarly to a clockwork weapon in terms of charges and winding. The exception is that codework weapons generally aren’t analog weapons; they are hybrid items and thus function as magical weapons.
Clockwork
A clockwork weapon contains a highly advanced mainspring that stores energy much like a battery does for powered weapons. Each weapon lists a capacity and usage, but unlike weapons that use batteries, you can’t recharge a clockwork weapon using a generator or recharging station, and you can’t swap out the mainspring like you can swap a battery. Instead, you must manually wind the weapon as you would other clockwork items. Doing so takes 1 minute per charge, which can be done during a 10-minute rest to regain Stamina Points.
Melee clockwork weapons function largely the same as powered weapons. You can activate the power of a clockwork weapon as part of the action used to make an attack with it, and it automatically deactivates after 1 minute. If you try to attack with a melee clockwork weapon that’s out of charges, it functions as an improvised weapon (Core Rulebook 169). Similarly, a ranged clockwork weapon that has fewer remaining charges than the usage value simply doesn’t fire.
Source